Specified VM install not found: type Standard VM, name jre7

后端 未结 11 1430
伪装坚强ぢ
伪装坚强ぢ 2021-02-01 00:10

Specified VM install not found: type Standard VM, name jre7 Have you ever encountered this problem in Eclipse while building an ant file? Then this article is for you. Deleting

相关标签:
11条回答
  • 2021-02-01 00:40

    Just delete the below file

    "<Your eclipse workspace location>\.metadata\.plugins\org.eclipse.debug.core\.launches\<projectname>.xml.launch"
    

    link to post

    0 讨论(0)
  • 2021-02-01 00:42

    Just had this issue & the solution above does not work, atleast not for me.

    Instead I went the solution provided here:http://www.javaworkspace.com/VMNotFound.do

    Essentially you go to the directory C:\projects\WORKSPACE.metadata.plugins\org.eclipse.debug.core.launches

    In there search for the string of the JDK that that eclipse is moaining about & change it to the name of your installed JDK that you want to use that eclipse knows about.

    0 讨论(0)
  • 2021-02-01 00:42

    You can change what JRE the ant bulid file is launched with inside eclipse.

    Right click on the ant file in the ant view and select "Run As"->"Ant..." from the context menu.

    Then in the launch dialog select the JRE tab. Note the error message at the top if it can't find the JRE that it expects.

    Select a JRE that you have installed or manage install a new one. You can also add vm arguments (enable logging or change memory alocation) if you need to in this dialog.

    0 讨论(0)
  • 2021-02-01 00:43

    After Java update ant build failed and the below steps fixed it .

    Right Click on build.xml-Run As-External Tools Go to JRE tab and check the box to use the JRE same as workspace.

    0 讨论(0)
  • 2021-02-01 00:46
    1. Right Click on build.xml
    2. Go to "Run As" >> "External Tools Configurations..."
    3. It shall open new window
    4. Go to JRE tab
    5. Select proper JRE if missing (sometimes jre tabs shows error mark on that.)

    For more technical details or issue similar to this find my blog here.

    0 讨论(0)
  • 2021-02-01 00:47

    In my case it happen as I have changed my JRE.

    Solution :

    Right click on your ant script > Run as > External tool configurations... > Go to JRE tab > select JRE

    Hope this help.

    Thanks, Sagar Vyas

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