|
Re: Eclipse.ini VM / JAVA_HOME Settings [message #931830 is a reply to message #931811] |
Wed, 03 October 2012 15:09 |
|
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).
|
|
|
Powered by
FUDForum. Page generated in 0.08004 seconds