[英]Eclipse Oxygen Oracle java 8
Can't install Eclipse Oxygen, I installed Java Oracle 8 following these instructions 无法安装Eclipse Oxygen,我按照以下说明安装了Java Oracle 8
sudo apt-add-repository ppa:webupd8team/java
sudo apt-get update
sudo apt-get install oracle-java8-installer
then I downloaded Eclipse Oxygen , I run the eclipse-inst and I get this : 然后我下载了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
I searched about it and thought it was a location problem, output from 我搜索了一下,并认为这是一个位置问题,来自
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
Here is the content of the eclipse-isnt.ini file : 这是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
I already tried to add this line : 我已经尝试添加此行:
-vm
/usr/lib/jvm/java-8-oracle/bin/java
right before -vmargs line, and it still doesn't work. -vmargs行之前,它仍然不起作用。 I get this error code : 我收到此错误代码:
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
Thanks for the help. 谢谢您的帮助。
after toying around with the eclipse-inst.ini file i find the porblem and solved it. 经过eclipse-inst.ini文件,我找到了问题并解决了。 all i had to do was to delete the number 2 on one of the ini file lines (which was, for whatever reason always fixing the jvm location to usr/bin/java), so just replace the content of eclipse-inst.ini file with this one : 我要做的就是删除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
replace the path in the line beginning with "-vm ..." with your path to java (which you can know by typing the "whereis java" command line). 用您的Java路径替换以“ -vm ...”开头的行中的路径(您可以通过键入“ whereis java”命令行来知道)。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.