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

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)

Then I added 2 lines of codes to Eclipse's eclipse.ini file.

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
-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/
-startup /home/emre/eclipse//plugins/org.eclipse.equinox.launcher_1.3.100.v20150511-1540.jar
-exitdata 52000e
-vm /usr/bin/java
-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: 31957
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:
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: 4085
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: Sat Jul 24 09:06:31 GMT 2021

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

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

Back to the top