简体   繁体   English

如何在NetBeans 7.4 Web Free Form应用程序中使用Java 6运行ant脚本

[英]How to use java 6 to run ant script in Netbeans 7.4 Web Free Form Application

I'm using Netbeans 7.4 Web Free Form Application (It's a project from an existing code with an ant build script). 我正在使用Netbeans 7.4 Web Free Form Application(这是来自现有代码的项目,带有ant生成脚本)。 My application require the code to be compiled using jdk 6. However Netbeans use jdk 7 when running the ant build script. 我的应用程序要求使用jdk 6编译代码。但是,在运行ant构建脚本时,Netbeans使用jdk 7。

How to make Netbeans 7.4 using jdk 6 to compile java code when running my ant build script? 在运行我的蚂蚁构建脚本时,如何使用jdk 6使Netbeans 7.4编译Java代码?

Pardon me for bad english. 请原谅我英语不好。

Granted that you already installed JDK 1.6 and selected it in NetBeans as JDK 1.6 (Tools -> Java Platforms)... 确认您已经安装了JDK 1.6并将其在NetBeans中选择为JDK 1.6(工具-> Java平台)...

Just: - Open Project properties (right clic on Project name -> Properties) - Select "Libraries" on left frame - Beside "Java Platform" clic on the dropdown list and select JDK 1.6 只是:-打开项目属性(项目名称的右方->属性)-在左侧框架中选择“库”-在下拉列表中的“ Java平台”方言旁边,然后选择JDK 1.6

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM