Mac 上的 Eclipse,获取“未找到指定的 VM 安装";尝试构建时出错 [英] Eclipse on Mac, getting "Specified VM install not found" error when trying to build
问题描述
当我尝试在我的 mac(Snow Leopard、Eclipse 3.6 - Helios)上构建 Ant 时,我收到一个错误对话框,内容为
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"一个问题.指定的虚拟机安装不找到:输入标准虚拟机,名称 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
我什至在 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.
当我进入我的首选项并转到 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.
选择Run as -> Configurations"并找到ant build.然后表明您希望此配置与 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 上的 Eclipse,获取“未找到指定的 VM 安装";尝试构建时出错的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!