I have four or five difference java installations on my Linux computer. I have set the JAVA_HOME in the bash_profile and bashrc to point to the latest version but whenever I install eclipse it finds a really old version that was installed and ignores the $JAVA_HOME. Is there another system variable it’s looking at to pick that one? How do I fix this?
Share
When launching, Eclipse looks for a JVM first in a
jre/directory directly below the locaiton of theeclipseexecutable. If that isn’t found, it will consult theeclipse.inifile. If there’s no-vmargument ineclipse.ini, it will look on the system$PATHenvironment variable to find a java executable. As you probably know, the command “which java” will show you what java executable is found first on your$PATH.This is all described in these pages:
But you should take note that the overwhelmingly recommended way to get Eclipse to use a specific JVM is to specify it in
eclipse.inias described here.