Eclipse 3.7,Ant,Java 1.7 [英] Eclipse 3.7, Ant, Java 1.7

查看:138
本文介绍了Eclipse 3.7,Ant,Java 1.7的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我从电脑中浏览并卸载了所有Java。然后我安装了JavaSE JDK1.7。然后我修改了Eclipse配置,以便它启动并打开它。我有一个Ant脚本来构建我的项目,我想要建立我的项目为1.7,但每当我运行脚本,它说

 启动PROJECT build.xml遇到问题。 

未找到指定的VM安装:键入标准VM,名称jdk1.6.0_21

Eclipse中安装的JRE是1.7,没有别的。我不能为我的生活找到如何改变蚂蚁正在寻找的东西。

解决方案

这是因为你还有旧的JDK中的JDK配置为外部工具配置中的JRE - 通过工具栏中此按钮旁边的箭头菜单将其打开:,然后将其更改为Java 7 JDK。


I went through and uninstalled all Java from my computer. Then I installed JavaSE JDK1.7. I then modified Eclipse configuration so it would start and opened it up. I have an Ant script to build my project and I want to build my project against 1.7, but whenever I run the script, it says

'Launching PROJECT build.xml' has encountered a problem.

Specified VM install not found: type Standard VM, name jdk1.6.0_21

The installed JRE in Eclipse is 1.7 and nothing else. I cannot for the life of me find how to change what Ant is looking for.

解决方案

This is because you still have the old JDK configured as JRE in the External Tools Configuration" in eclipse - open it via the arrow menu next to this button in the toolbar: , then change it to the Java 7 JDK.

这篇关于Eclipse 3.7,Ant,Java 1.7的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆