日食在Mac上,让"指定的虚拟机上安装未发现"试图建立时的错误 [英] Eclipse on Mac, getting "Specified VM install not found" error when trying to build
问题描述
当我尝试和我的Mac上做一个Ant构建(雪豹是,Eclipse 3.6 - 太阳神),我得到一个错误对话框,说:
When I try and do an Ant build on my mac (Snow Leopard, Eclipse 3.6 - Helios) I get an error dialog that says
发生问题结果
启动PROJECTNAME的build.xml遇到
一个问题。指定的虚拟机上安装不
发现:类型标准VM,名jdk1.5.0_14
"Problem Occured"
'Launching projectName build.xml' has encountered a problem. Specified VM install not found: type Standard VM, name jdk1.5.0_14
我甚至不能找到任何preferences在Eclipse中,指定其使用jdk1.5.0_14设置。
I can't even find any preferences setting in Eclipse that specifies for it to use jdk1.5.0_14.
当我走进我的preferences去了Java部分,看着已安装的JRE,我指定的只有一个是1.6.0。它是在哪里得到的设置,试图用1.5? (还是我找错了树?)
When I went into my preferences and went to the Java section and looked at the Installed JREs, the only one I have specified is 1.6.0. Where is it getting the setting to try and use 1.5? (Or am I barking up the wrong tree?)
推荐答案
您Ant项目启动是指由于某种原因到Java 5的环境。
Your ant project launcher refers for some reason to a Java 5 environment.
选择运行方式 - >配置,然后找到Ant构建。然后指定你想要这个配置与Java 6 JVM上运行。
Select "Run as -> Configurations" and locate the ant build. Then indicate you want this configuration to run with a Java 6 JVM.
这篇关于日食在Mac上,让"指定的虚拟机上安装未发现"试图建立时的错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!