Note to self when configuring the “-vm” option in eclipse.ini… Place the path to your jdk on a new line i.e.
...
-vm
C:\programs\Java\jdk1.6.0\bin
...
and not:
...
-vm C:\programs\Java\jdk1.6.0\bin
...
Also to see what configuration options stuck goto menu item: Help -> About Eclipse Platform, then click Configuration Details button.
Useful
!
Good tip. Also, it’s important to remember to specify the bin dir and NOT the executable as is suggested in the documentation here: http://help.eclipse.org/help31/index.jsp?topic=/org.eclipse.platform.doc.user/tasks/running_eclipse.htm. If you give eclipse the full path to javaw.exe as noted in that doc, it’ll basically ignore it and load the jre off the OS path. Telltale hint… your config will show two -vm entries.
Thanks Tony! That just saved me a bit of useless troubleshooting.
Awesome, thanks! Maven needed a JDK and I was so utterly confused why it didn’t work.
thanks!
and also be careful to put vm before vmargs!
WTH I did not expect such glorified tool to have so stupid flaws. Anyways thanks everybody for comments! I got away only spending half an hour on that
the combination of how to place the path and where to place the path (thx to damn) is it – now it’s working!
thx
A good tip.
One can start eclipse with the “-configuration” parameter so that the “configuration” folder is created elsewhere (not in the eclipse folder)
I am using c:\>eclipse\eclipse.exe -configuration %APPDATA\eclipse34
Any clues as to how to take this command line param to the eclipse.ini?
~g1
These are essential tips for using Maven Integration for Eclipse. Thanks a bunch!
Thanks! This is a very useful blog, I had been wondering for almost an hour why my -vm argument wasn’t getting picked up at all. It looks like if you add it in the same way all the other parameters are added (on one line), it’s just overridden by another -vm coming from who knows where. I wonder why this behaves this way?
Anyway thanks again
In Linux if you have put a JDK in your home dir, you have to put the full path, not the shortcut “~”.
Eg.
-vm
/home/nick/apps/java
NOT
-vm
~/apps/java
God, this just saved my head from banging the wall. Why is eclipse.ini so strange?..
2OsoRojo:
> specify the bin dir and NOT the executable
> If you give eclipse the full path to javaw.exe as noted in that doc,
> it’ll basically ignore it
Hmm. Just tried it with Eclipse 3.5 under Win and it works right the opposite for me – “-vm” is only minded when I specify full path to javaw.exe.
Awesome “note-to-self” thanks!!!