无法安装Eclipse Oxygen,我按照这些说明安装了Java Oracle 8
sudo apt-add-repository ppa:webupd8team/java
sudo apt-get update
sudo apt-get install oracle-java8-installer
然后我下载了Eclipse Oxygen,我运行了eclipse-inst,我得到了这个:
JVM terminated. Exit code=11
/usr/bin/java
-Xms256M
-Xmx1024M
-jar /home/ly/Ly-Data/Linux Programs/eclipse-installer//plugins/org.eclipse.equinox.launcher_1.4.0.v20161219-1356.jar
-os linux
-ws gtk
-arch x86_64
-showsplash
-launcher /home/ly/Ly-Data/Linux Programs/eclipse-installer/eclipse-inst
-name Eclipse Installer
--launcher.library /home/ly/Ly-Data/Linux Programs/eclipse-installer//plugins/org.eclipse.equinox.launcher.gtk.linux.x86_64_1.1.500.v20170531-1133/eclipse_1624.so
-startup /home/ly/Ly-Data/Linux Programs/eclipse-installer//plugins/org.eclipse.equinox.launcher_1.4.0.v20161219-1356.jar
--launcher.appendVmargs
-exitdata 358010
-data @noDefault
-vm /usr/bin/java
-vmargs
-Xms256M
-Xmx1024M
-jar /home/ly/Ly-Data/Linux Programs/eclipse-installer//plugins/org.eclipse.equinox.launcher_1.4.0.v20161219-1356.jar
我搜索了它并认为这是一个位置问题,输出来自
which java
/usr/bin/java
whereis java
java: /usr/bin/java /usr/share/java /usr/lib/jvm/java-8-oracle/bin/java /usr/lib/jvm/java-8-oracle/jre/bin/java /usr/share/man/man1/java.1.gz
以下是eclipse-isnt.ini文件的内容:
-startup
plugins/org.eclipse.equinox.launcher_1.4.0.v20161219-1356.jar
--launcher.library
plugins/org.eclipse.equinox.launcher.gtk.linux.x86_64_1.1.500.v20170531-1133
--launcher.appendVmargs
--launcher.XXMaxPermSize
256M
-name
Eclipse Installer
-data
@noDefault
--launcher.GTK_version
2
-vmargs
-Xms256M
-Xmx1024M
我已经尝试添加此行:
-vm
/usr/lib/jvm/java-8-oracle/bin/java
在-vmargs之前,它仍然不起作用。 我收到此错误代码:
JVM terminated. Exit code=11
/usr/lib/jvm/java-8-oracle/bin/java
-Xms256M
-Xmx1024M
-jar /home/ly/Ly-Data/Linux Programs/eclipse-installer//plugins/org.eclipse.equinox.launcher_1.4.0.v20161219-1356.jar
-os linux
-ws gtk
-arch x86_64
-showsplash
-launcher /home/ly/Ly-Data/Linux Programs/eclipse-installer/eclipse-inst
-name Eclipse Installer
--launcher.library /home/ly/Ly-Data/Linux Programs/eclipse-installer//plugins/org.eclipse.equinox.launcher.gtk.linux.x86_64_1.1.500.v20170531-1133/eclipse_1624.so
-startup /home/ly/Ly-Data/Linux Programs/eclipse-installer//plugins/org.eclipse.equinox.launcher_1.4.0.v20161219-1356.jar
--launcher.appendVmargs
-exitdata 3c8013
-data @noDefault
-vm /usr/lib/jvm/java-8-oracle/bin/java
-vmargs
-Xms256M
-Xmx1024M
-jar /home/ly/Ly-Data/Linux Programs/eclipse-installer//plugins/org.eclipse.equinox.launcher_1.4.0.v20161219-1356.jar
感谢您的帮助。
答案 0 :(得分:0)
在使用eclipse-inst.ini文件玩弄后,我找到了问题并解决了它。我所要做的就是删除其中一个ini文件行中的数字2(无论出于什么原因,总是将jvm位置修复为usr / bin / java),所以只需替换eclipse-inst.ini文件的内容用这个:
-startup
plugins/org.eclipse.equinox.launcher_1.4.0.v20161219-1356.jar
--launcher.library
plugins/org.eclipse.equinox.launcher.gtk.linux.x86_64_1.1.500.v20170531-1133
--launcher.appendVmargs
--launcher.XXMaxPermSize
256M
-name
Eclipse Installer
-data
@noDefault
--launcher.GTK_version
-vm /usr/lib/jvm/java-8-oracle/bin/java
-vmargs
-Xms256M
-Xmx1024M
将以“-vm ...”开头的行中的路径替换为java的路径(通过键入“whereis java”命令行可以知道)。