Wednesday 1 October 2008

Annoying Eclipse Configuration

I needed to get Eclipse to use a JDK instead of a JRE so I could play around with Maven.

Easy peasy? Well, no, not exactly...

"Just specify a -vm option in your eclipse.ini, and Bob is your uncle", they stated. Hah!
  • I put the option in with a blank line seperator. Doesn't work.
  • I delete the blank line after reading a blog entry. Doesn't work.
  • Hmm, it keeps defaulting to my JRE, maybe I will uninstall that so I can "debug". Que slow Windows uninstallation...
  • Now I get error messages. Maybe it is the space in Program Files? I'll put a %20 in there. Doesn't work.
  • I discover option values go onto a new line (how obscure). Combinatorials ensue. Still doesn't work.
Turns out it won't work if you don't -vm option before the -vmargs option. Why??? Worse, it will just silently die/ ignore/ not warn you. Perhaps they should work on their error messages?

But i'm not ashamed to have wasted half an hour. Others have wasted time on this stuff too.

Isn't there a standard or convention for text-based config files, and couldn't someone get Eclipse to use it?

2 comments:

Kerry Jones said...

I simply modified my Eclipse shortcut to be this.

"C:\Program Files\Eclipse Ganymede Reporting\eclipse\eclipse.exe" -vm T:\Java\jdk1.6.0_06\bin\javaw

LasseWesth said...

Well, if we all took shortcuts, there would be nothing to rant about!