Link to home
Start Free TrialLog in
Avatar of chima
chima

asked on

-vm in eclipse.ini pointing to JDK

Hello
It is obvious that -vm is not pointing to the JDK, so I ask how shall I do this?  I searched the interent to a solution, but did not find one.  I have the eclipse.ini open, and do not see a -vm setting.  
A verification that Eclipse is asking for; is to verify that JRE is using the JDK.  How shall I do this?
This is the message I am getting;
Eclipse is running in a JRE, but a JDK is required
  Some Maven plugins may not work when importing projects or updating source folders.
ASKER CERTIFIED SOLUTION
Avatar of for_yan
for_yan
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Avatar of CEHJ
CEHJ
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of chima
chima

ASKER

yan; I made a search for the jvm.dll file and I find it in three places;
C:\Program Files\Java\jre6\bin\client\jvm.dll
C:\Program Files\Java\jdk1.6.0_23\jre\bin\client\jvm.dll
C:\Program Files\Java\jdk1.6.0_23\jre\bin\server\jvm.dll
So I would think that this would work for the ini file;
-vm
C:\Program Files\Java\jre6\bin\client\jvm.dll
C:\Program Files\Java\jdk1.6.0_23\jre\bin\client\jvm.dll
C:\Program Files\Java\jdk1.6.0_23\jre\bin\server\jvm.dll

Please let me know if the -vm will NOT search the 2nd and 3rd paths.

CEHJ, I will set the environment variables as well,
thanks
I think you should leave just one inside one of JDK's
Avatar of chima

ASKER

Yan, which one?  The first one?
I think it does not matter much.
You can read this one:
(they mostly say that no much difference):

http://stackoverflow.com/questions/198577/real-differences-between-java-server-and-java-client
But of couse I mean the ones inide JDK, not JRE.

Use this one:
C:\Program Files\Java\jdk1.6.0_23\jre\bin\client\jvm.dll

>>CEHJ, I will set the environment variables as well,

That's ALL you should need to set. Setting JAVA_HOME should make it use the correct vm
... what's more - you should avoid setting -vm it or it could simply break when you upgrade java