Specified VM install not found: type Standard VM,

2020-05-18 04:29发布

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 and recreating the workspace is not the solution. There is an easy solution to fix this issue without recreating the workspace.

enter image description here

标签: java eclipse ant
10条回答
Explosion°爆炸
2楼-- · 2020-05-18 04:49

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

查看更多
【Aperson】
3楼-- · 2020-05-18 04:55

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.

查看更多
一夜七次
4楼-- · 2020-05-18 05:00

Removed below file and build maven project again, worked for me.

.metadata.plugins\org.eclipse.debug.core.launches\.xml.launch"

查看更多
Explosion°爆炸
5楼-- · 2020-05-18 05:02

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.

查看更多
我只想做你的唯一
6楼-- · 2020-05-18 05:03

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.

查看更多
等我变得足够好
7楼-- · 2020-05-18 05:05
  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.

查看更多
登录 后发表回答