facebook

Problems running Maven Eclipse plugin with MyEclipse

💡
Our Forums Have Moved

For help with installation, bugs reports or feature requests, please head over to our new forums.
Genuitec Community on GitHub

  1. MyEclipse IDE
  2.  > 
  3. Installation, Configuration & Updates
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #269652 Reply

    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

    #269661

    Riyad Kalla
    Member

    Kevin,
    You did the right thing, you just have to update the actual short-cut that the all-in-one installer created, and remove that line from your eclipse.ini file and you should be all set.

    #269669

    That did the trick! Thanks!

    #269670

    Riyad Kalla
    Member

    Good deal.

Viewing 4 posts - 1 through 4 (of 4 total)
Reply To: Problems running Maven Eclipse plugin with MyEclipse

You must be logged in to post in the forum log in