Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » making eclipse follow the java_home variable
making eclipse follow the java_home variable [message #548226] Wed, 21 July 2010 07:46 Go to next message
No real name is currently offline No real nameFriend
Messages: 5
Registered: July 2010
Junior Member
I get a warning message when starting eclipse

Eclipse is running in a JRE, but a JDK is required
Some Maven plugins may not work when importing projects or updating source folders.

I could set the -vm path in the eclipse.ini file to just point to the correct JDK, however I am preparing a package that will be used by several persons on different computers.

Thus I would like to set -vm to follow the JAVA_HOME environment varible instead. How do I do this?
Re: making eclipse follow the java_home variable [message #548352 is a reply to message #548226] Wed, 21 July 2010 14:16 Go to previous messageGo to next message
Eric Rizzo is currently offline Eric RizzoFriend
Messages: 2411
Registered: July 2009
Senior Member
On 7/21/10 3:46 AM, henrik.sjostrom@scila.se wrote:
> I get a warning message when starting eclipse
>
> Eclipse is running in a JRE, but a JDK is required
> Some Maven plugins may not work when importing projects or updating
> source folders.
>
> I could set the -vm path in the eclipse.ini file to just point to the
> correct JDK, however I am preparing a package that will be used by
> several persons on different computers.
> Thus I would like to set -vm to follow the JAVA_HOME environment varible
> instead. How do I do this?

You can't; this bug has a request for it:
https://bugs.eclipse.org/bugs/show_bug.cgi?id=94087

The good news is that you can include the JDK in the package that you're
preparing. If you create a directory <eclipse-home>/jre and put the JDK
in there, Eclipse will use that by default.

Hope this helps,
Eric
Re: making eclipse follow the java_home variable [message #548781 is a reply to message #548226] Thu, 22 July 2010 23:58 Go to previous messageGo to next message
Nilesh is currently offline NileshFriend
Messages: 12
Registered: June 2010
Junior Member
Hello,
this may be unrelated, but instead of sticking the JDK into a directory named JRE, i just changed my JRE installed directory location to point to my JDK, and it worked.
Re: making eclipse follow the java_home variable [message #549355 is a reply to message #548226] Mon, 26 July 2010 14:01 Go to previous message
No real name is currently offline No real nameFriend
Messages: 5
Registered: July 2010
Junior Member
I solved it with a batch script that changes the line after -vm to the value of the java_home variable, seems to have worked so far.
Previous Topic:Eclipse Helios and XP professional
Next Topic:Topics disappear
Goto Forum:
  


Current Time: Sun Dec 21 01:10:53 GMT 2014

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

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