Eclipse on Mac, getting “Specified VM install not found” error when trying to build

后端 未结 6 1600
南笙
南笙 2021-02-06 22:07

When I try and do an Ant build on my mac (Snow Leopard, Eclipse 3.6 - Helios) I get an error dialog that says

\"Problem Occured\"
\'Launching proje

相关标签:
6条回答
  • 2021-02-06 22:10

    Your ant project launcher refers for some reason to a Java 5 environment.

    Select "Run as -> Configurations" and locate the ant build. Then indicate you want this configuration to run with a Java 6 JVM.

    0 讨论(0)
  • 2021-02-06 22:11

    Delete the ".metadata.plugins\org.eclipse.debug.core.launches\ build.xml.launch" file and problem is solved".

    0 讨论(0)
  • 2021-02-06 22:17

    Right click on the project and choose properties. Go to Java Compiler and make sure Compiler compliance level is set to 1.6 rather than 1.5. I think that should do the trick.

    0 讨论(0)
  • 2021-02-06 22:20

    There was a whole bunch of stuff I had wrong that I changed to fix this, but I believe the crucial piece was an %ATG_HOME%/home/localconfig/dasENV.sh file had an ATGJRE a path that was incorrect.

    0 讨论(0)
  • 2021-02-06 22:23

    This is just an update of the previously posted solution for later versions of Eclipse, like STS.

    1. If your Ant View is open, R-click on the root (otherwise Run -> External Tools -> External Tools Configuraitons)
    2. Run as -> External Tools Configurations ...
    3. Your Ant launch should be selected in the External Tools launchers, if not selected manually
    4. Go to the JRE tab
    5. Select Run in the same JRE as the workspace - you can also select a different JRE using the buttons on the right.
    6. Re-run your ant task(s) - this time you will not get the error message.
    0 讨论(0)
  • 2021-02-06 22:31

    I kept getting "Specified VM install not found: type MacOS X VM, name Java SE 6...". And i did this accidentally and it worked: Properties-Java Compiler-Installed JREs-Search Button. It did some soul searching,created yet another JRE entry and it all worked!

    0 讨论(0)
提交回复
热议问题