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

查看:35
本文介绍了Eclipse 3.7、Ant、Java 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,没有别的.我一生都找不到如何改变 Ant 正在寻找的东西.

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.

推荐答案

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

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天全站免登陆