Specified VM install not found: type Standard VM, name Java
2013-11-21 09:55
501 查看
Specified VM install not found: type Standard VM, name Java
下了一个新项目,使用SpringSource中执行ant脚本时,莫名提示以下错误:Specified VM install not found: type Standard VM, name Java解决方案:
需要清除%ecliplse workspace%/.metadata/.plugins/org.eclipse.debug.core .launches/*. 下的所有文件,才能正常运行。
一个launches文件例子,带下划线部分为关键
<?xml version="1.0" encoding="UTF-8" standalone="no"?> <launchConfiguration type="org.eclipse.ant.AntLaunchConfigurationType"> <booleanAttribute key="org.eclipse.ant.ui.DEFAULT_VM_INSTALL" value="false"/> <listAttribute key="org.eclipse.debug.core.MAPPED_RESOURCE_PATHS"/> <listAttribute key="org.eclipse.debug.core.MAPPED_RESOURCE_TYPES"/> <stringAttribute key="org.eclipse.jdt.launching.CLASSPATH_PROVIDER" value="org.eclipse.ant.ui.AntClasspathProvider"/> <stringAttribute key="org.eclipse.jdt.launching.MAIN_TYPE" value="org.eclipse.ant.internal.launching.remote.InternalAntRunner"/> <stringAttribute key="org.eclipse.jdt.launching.PROJECT_ATTR" value="checkPro-as-build"/> <stringAttribute key="org.eclipse.jdt.launching.SOURCE_PATH_PROVIDER" value="org.eclipse.ant.ui.AntClasspathProvider"/> <stringAttribute key="org.eclipse.jdt.launching.VM_INSTALL_NAME" value="jre6"/> <stringAttribute key="org.eclipse.jdt.launching.VM_INSTALL_TYPE_ID" value="org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType"/> <stringAttribute key="org.eclipse.ui.externaltools.ATTR_LOCATION" value="${workspace_loc:/checkPro-as-build/build.xml}"/> <stringAttribute key="process_factory_id" value="org.eclipse.ant.ui.remoteAntProcessFactory"/> </launchConfiguration>
springSource启动时会加载对应项目的launches文件,如果这其中规定了启动jre,则在springSource界面上定的Preference/java/Compiler规定的Java环境是没有作用的。
相关文章推荐
- 执行ant脚本时,提示 Specified VM install not found: type Standard VM, name Java
- Specified VM install not found: type Standard VM, name Java 如何解决
- 用ant打包出现:Specified VM install not found: type Standard VM, name jdk1.6..解决办法
- Specified VM install not found: type Standard VM, name jdk1.6_ 的疑问
- Specified VM install not found: type Standard VM, name jre7
- Specified VM install not found: type Standard VM, name jdk1.6...
- Specified VM install not found: type Standard VM, name jre1.8
- Ant 构建错误 Specified VM install not found: type Standard VM, name jdk1.6. 最靠谱
- Specified VM install not found: type Standard VM, name jdk x.x
- Specified VM install not found: type Standard VM, name jdk1.7
- Specified VM install not found: type Standard VM, name jdk1.6...
- Specified VM install not found: type Standard VM, name jre1.8.0_45
- Specified VM install not found: type Standard VM, name jdk1.6.0_05
- 关于出现Specified VM install not found: type Standard VM, name jdk1.5.0_04问题的解决办法
- 运行行ant 出现Specified VM install not found: type Standard VM, name
- 运行ant的时候出现 Specified VM install not found: type Standard VM, name。。。。
- Specified VM install not found: type Standard VM, name jdk1.6...
- Specified VM install not found: type Standard VM, name jdk1.7
- Specified VM install not found: type Standard VM, name jre
- ant 错误 Specified VM install not found: type Standard VM, name jdk1.6.0_27