Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » Eclipse.ini VM / JAVA_HOME Settings(Discussion on VM / JAVA_HOME settings in Eclipse)
Eclipse.ini VM / JAVA_HOME Settings [message #931811] Wed, 03 October 2012 14:50 Go to next message
Eric Bresie is currently offline Eric BresieFriend
Messages: 44
Registered: July 2009
Member
My machine's JDK was recently updated, removing the previous version and installing a new one. Following the update I had an error when starting up Eclipse (3.5.2 on Windows 7) indicating it could not find the JRE.

Based on http://wiki.eclipse.org/FAQ_How_do_I_run_Eclipse%3F#Find_the_JVM, it indicates "Eclipse DOES NOT consult the JAVA_HOME environment variable" and suggests modifying the eclipse.ini to set the vm setting to the applicable path.

Why does Eclipse not utilize the JAVA_HOME environment variable? At the very least, if vm setting is not set, why not look to the JAVA_HOME variable as a default?

Is there a general rule of thumb when dealing with environment variables from within Eclipse that might help me understand some of this?

Does finding and specifying the default JRE from within Eclipse..Preferences...Java...Installed JRE effect the vm setting?



Eric
Re: Eclipse.ini VM / JAVA_HOME Settings [message #931830 is a reply to message #931811] Wed, 03 October 2012 15:09 Go to previous message
Russell Bateman is currently offline Russell BatemanFriend
Messages: 3265
Registered: July 2009
Location: Provo, Utah, USA
Senior Member

On 10/3/2012 8:50 AM, Eric Bresie wrote:
> My machine's JDK was recently updated, removing the previous version and
> installing a new one. Following the update I had an error when starting
> up Eclipse (3.5.2 on Windows 7) indicating it could not find the JRE.
>
> Based on
> http://wiki.eclipse.org/FAQ_How_do_I_run_Eclipse%3F#Find_the_JVM, it
> indicates "Eclipse DOES NOT consult the JAVA_HOME environment variable"
> and suggests modifying the eclipse.ini to set the vm setting to the
> applicable path.
> Why does Eclipse not utilize the JAVA_HOME environment variable? At the
> very least, if vm setting is not set, why not look to the JAVA_HOME
> variable as a default?
>
> Is there a general rule of thumb when dealing with environment variables
> from within Eclipse that might help me understand some of this?
>
> Does finding and specifying the default JRE from within
> Eclipse..Preferences...Java...Installed JRE effect the vm setting?
>
>
>
> Eric

--why I advise someone download and install a proper Sun JDK from Oracle
and put it in a private location, then link Eclipse up to it instead of
using the one already on your computer host which gets (and should get)
updated from time to time. I even have two or three different versions
of Java in support of projects where I need that sort of thing (though
this is less common in work I do now).

Preferences -> Java -> Installed JRE does not affect the JRE Eclipse
runs on (which should be specified via the -vm option in eclipse.ini).
Previous Topic:Eclipse seg fault 11 OSX
Next Topic:Not Exporting .classpath and .project files
Goto Forum:
  


Current Time: Fri Dec 19 04:45:58 GMT 2014

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

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