I get the following error when trying to use the Maven Eclipse plugin with MyEclipse:
Unable to locate the Javac Compiler in:
d:\programs\MyEclipse 5.1.1 GA\jre\..\lib\tools.jar
Please ensure you are using JDK 1.4 or above and
not a JRE (the com.sun.tools.javac.Main class is required).
In most cases you can change the location of your Java
installation by setting the JAVA_HOME environment variable.
After a little research I updated the eclipse.ini file to point it to a jdk rather than the MyEclipse JRE:
-vm
D:\java\jdk1.5.0_11\bin\javaw.exe
-vmargs
-Xms128M
-Xmx512M
-XX:PermSize=64M
-XX:MaxPermSize=128M
However, I still have the Maven problem, and when I view the configuration details in MyEclipse, I see that it is still using the default (MyEclipse) JRE:
<snip>
-vm
d:\programs\MyEclipse 5.1.1 GA\jre\bin\javaw.exe
eclipse.ee.install.verify=false
eclipse.product=com.genuitec.myeclipse.product.ide
eclipse.startTime=1178128626453
eclipse.vm=d:\programs\MyEclipse 5.1.1 GA\jre\bin\javaw.exe
eclipse.vmargs=-Xms128M
-Xmx512M
-XX:PermSize=64M
-XX:MaxPermSize=128M
</snip>
JAVA_HOME on my machine is configured as follows:
d:\java\jdk1.5.0_11
I have also installed a full JDK in the Installed JRE portion of the preferences, and deleted the MyEclipse JRE from here.
Does MyEclipse override the settings in eclipse.ini? How can I get Eclipse to run with the full JDK, or configure a plugin like maven to use a specific jdk?
Thanks,
Kevin