日食3.7,蚂蚁,爪哇1.7 [英] Eclipse 3.7, Ant, Java 1.7

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

问题描述

我经历了从我的计算机上卸载所有Java。然后我安装JavaSE的JDK1.7。然后我修改Eclipse配置,因此将启动并打开它。我有一个Ant脚本来建立我的项目,我想建立我的项目针对1.7,但每当我运行该脚本,它说:

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

在Eclipse中安装的JRE是1.7,没有别的。我不能为我的生活找到如何改变什么蚂蚁所期待的。

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.

推荐答案

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

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.

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

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