Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'Use 1.5 with eclipse without changing /System' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Use 1.5 with eclipse without changing /System
Authored by: rselph on Nov 16, '05 10:33:50AM
There is a way to get around this for eclipse in particular.

In a terminal, do this:

cd /Applications/eclipse/Eclipse.app/Contents/MacOS
ln -s /System/Library/Frameworks/JavaVM.framework/Versions/1.5/Home jre

Eclipse searches in ./jre first for its jvm, so this will start it up in 1.5 always. You can also put this link in /Applications/eclipse if you want the command line invocation to work the same way.

[ Reply to This | # ]

Use 1.5 with eclipse without changing /System
Authored by: adrianm on Nov 16, '05 10:52:31AM
Another way is to edit the Eclipse.app/Contents/MacOS/eclipse.ini file to include:

-vm
/System/Library/Frameworks/JavaVM.framework/Versions/1.5/Home/bin/java
at the top, along with any other vm args you might want.

Strangely, these args also exist in the Info.plist, but are seemingly ignored. I guess the eclipse people didn't bother to read up on OSX app bundles :-)

[ Reply to This | # ]