eclipse.ini -vm option

26 03 2008

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.


Actions

Information

14 responses

29 04 2008
Filipe Costa

Useful ;) !

27 06 2008
OsoRojo

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.

9 07 2008
Jim Tough

Thanks Tony! That just saved me a bit of useless troubleshooting.

18 07 2008
Karl

Awesome, thanks! Maven needed a JDK and I was so utterly confused why it didn’t work.

9 09 2008
kezug

thanks!

9 10 2008
Damn

and also be careful to put vm before vmargs!

2 11 2008
Vladas

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 :)

8 11 2008
arthurDent

the combination of how to place the path and where to place the path (thx to damn) is it – now it’s working!
thx

13 11 2008
Jeevan

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

29 03 2009
Cody Burleson

These are essential tips for using Maven Integration for Eclipse. Thanks a bunch!

1 07 2009
Amelia

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

3 08 2009
Nick DG

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

19 10 2009
mvmn

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.

22 10 2009
trekker

Awesome “note-to-self” thanks!!!

Leave a comment