Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » Java Path Settings on Linux(Eclipse can't start if I add -vm and PATH lines to the eclipse.ini)
Java Path Settings on Linux [message #1755497] Fri, 03 March 2017 19:59 Go to next message
Human Surname is currently offline Human SurnameFriend
Messages: 1
Registered: March 2017
Junior Member
Hello,

My operating system is openSUSE Leap 42.1. I installed both JRE and JDK. Here are the results of some useful commands.

void@linux:~> java -version
java version "1.8.0_121"
Java(TM) SE Runtime Environment (build 1.8.0_121-b13)
Java HotSpot(TM) 64-Bit Server VM (build 25.121-b13, mixed mode)

void@linux:~> whereis java
java: /usr/bin/java /usr/lib64/java /etc/java /usr/share/java

void@linux:~> readlink -f $(which java)
/usr/java/jdk1.8.0_121/bin/java


Then I added 2 lines of codes to Eclipse's eclipse.ini file.
-vm
/usr/java/jdk1.8.0_121/bin/java


It failed. So I changed the last part with /usr/bin/java. It failed again. And here is the failure of first trial:

JVM terminated. Exit code=1
/usr/bin/java
-Dosgi.requiredJavaVersion=1.7
-XX:MaxPermSize=256m
-Xms256m
-Xmx1024m
-vm /usr/java/jdk1.8.0_121/bin/java
-jar /home/emre/eclipse//plugins/org.eclipse.equinox.launcher_1.3.100.v20150511-1540.jar
-os linux
-ws gtk
-arch x86_64
-showsplash /home/emre/eclipse//plugins/org.eclipse.platform_4.5.2.v20160212-1500/splash.bmp
-launcher /home/emre/eclipse/eclipse
-name Eclipse
--launcher.library /home/emre/eclipse//plugins/org.eclipse.equinox.launcher.gtk.linux.x86_64_1.1.300.v20150602-1417/eclipse_1612.so
-startup /home/emre/eclipse//plugins/org.eclipse.equinox.launcher_1.3.100.v20150511-1540.jar
--launcher.appendVmargs
-exitdata 52000e
-product org.eclipse.epp.package.java.product
-vm /usr/bin/java
-vmargs
-Dosgi.requiredJavaVersion=1.7
-XX:MaxPermSize=256m
-Xms256m
-Xmx1024m
-vm /usr/java/jdk1.8.0_121/bin/java
-jar /home/emre/eclipse//plugins/org.eclipse.equinox.launcher_1.3.100.v20150511-1540.jar
Re: Java Path Settings on Linux [message #1755707 is a reply to message #1755497] Tue, 07 March 2017 06:54 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 31364
Registered: July 2009
Senior Member
Try /usr/java/jdk1.8.0_121/bin without the direct reference to the executable. Or you can set JAVA_HOME to point to that and not set it in the eclipse.ini. Or you can try the installer, which generates the -vm option and should do so correctly.

Ed Merks
Professional Support: https://www.macromodeling.com/
Re: Java Path Settings on Linux [message #1755768 is a reply to message #1755497] Tue, 07 March 2017 18:09 Go to previous message
Nitin Dahyabhai is currently offline Nitin DahyabhaiFriend
Messages: 3794
Registered: July 2009
Senior Member

Where in the file did you add them? What's the resulting file look like in its entirety?

Nitin Dahyabhai
Eclipse Web Tools Platform
Previous Topic:m2e plugin missing connectors
Next Topic:Install Pluginsby ID
Goto Forum:
  


Current Time: Tue Aug 11 01:23:24 GMT 2020

Powered by FUDForum. Page generated in 0.03776 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top