I am a confirmed intelliJ user for Java programming, but I have been dabbling with eclipse recently. I’m mainly interested in it due to SpringSource’s Tool Suite and also the Scala eclipse plugin. I’m using the preconfigured sts builds from SpringSource’s website, which includes several plugins including Maven Integration. These plugins require access to a JDK (as opposed to the JRE) which is not configured by default. Starting eclipse will launch a warning of the problem:
“The Maven Integration requires that Eclipse be running in a JDK, because a number of Maven core plugins are using jars from the JDK. Please make sure the -vm option in eclipse.ini is pointing to a JDK and verify that Installed JRE’s are also using JDK installs.”
This is very good advice, but it is lacking in that it doesn’t explain how to modify the eclipse.ini to accomplish this purpose. I was surprised at the amount of searching required to find the answer, so I’m posting my findings.
The eclipse.ini file is located in the base eclipse directory. On linux, you’ll want to specify the complete path to javaw.exe. Here is a copy of my file (with SpringSource customizations):