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

后端 未结 6 1582
南笙
南笙 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: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.

提交回复
热议问题