[英]Running Eclipse in Ubuntu with JRE & JDK installed on Windows beforehand
I recently installed Ubuntu on my computer. 我最近在计算机上安装了Ubuntu。 (I'm new to Ubuntu as well).
(我也是Ubuntu的新手)。 I have eclipse, JRE & JDK installed and working on my Windows previously.
我已经安装了Eclipse,JRE和JDK,并且以前在Windows上可以使用。 I also have Wine installed on Ubuntu.
我还在Ubuntu上安装了Wine。
My question is that is there any way I can run eclipse on ubuntu without reinstalling the JRE and JDK? 我的问题是,有什么方法可以在ubuntu上运行Eclipse而无需重新安装JRE和JDK?
I tried changing the -vm directory to the correct JRE folder (...\\Java\\JRE7\\bin\\java.exe). 我尝试将-vm目录更改为正确的JRE文件夹(... \\ Java \\ JRE7 \\ bin \\ java.exe)。 Eclipse launched, but then it says Java returns exit code = 1, and exit.
Eclipse启动了,但是随后它说Java返回退出代码= 1,然后退出。
Thanks in advance. 提前致谢。
Why would you ever try to run the JVM on Wine? 你怎么可能会尝试运行酒JVM? It'll be slow, unreliable, and blow up every time JNI is used.
每次使用JNI时,它会很慢,不可靠并且会崩溃。 I suggest you install the necessary packages (
openjdk-7-jdk
should be fine) and use those. 我建议您安装必要的软件包(
openjdk-7-jdk
应该可以)并使用它们。
You might be able to do this, but I would suggest you just install the JDK directly in Ubuntu with 您也许可以做到这一点,但我建议您直接使用以下命令在Ubuntu中直接安装JDK:
sudo apt-get install openjdk-7-jdk
(from memory). (从记忆里)。 You will also need a Linux Eclipse.
您还将需要Linux Eclipse。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.