I'm using NetBeans to build my project. The version I'm using is 1.8. However, I'm trying to build it again on a computer that can only run ant 1.6.5. Is there any way to specify in Netbeans which version of ant to use?
Asked
Active
Viewed 1.0k times
2 Answers
5
Please follow 3 easy steps as below:
Download
Ant 1.6.5
from Apache Binaries and install/extract in your local file systemGo to
Netbeans Tools > Options > Miscellaneous > Ant
Change the
Ant Home
toAnt 1.6.5 folder
created in step-1 of your local file system
EDIT:
If the above doesn't help because of your specific Net Beans, try steps below:
Go to
Help -> Help Contents
Search for
Switching Ant Version
Click the same link from left pane to get the details in right, you should see a screen as below:
Follow the instructions on the above page.

Yogendra Singh
- 33,927
- 6
- 63
- 73
-
I did as you said but my build.impl.xml is still the 1.8 ant xml file. I tried deleting it for it to be regenerated but no cigar. it also doesn't compile/run - when I press run netbeans says my program is running but nothing happens. – wonton Oct 15 '12 at 21:56
-
-
-
java 1.7.0_04. Netbeans 7.2 201207171143. Hmm, apparently there's an error message that occurs. java.lang.ClassNotFoundException: org.apache.tools.ant.taskdefs.Input$Handler at java.net.URLClassLoader$1.run(URLClassLoader.java:366) at java.net.URLClassLoader$1.run(URLClassLoader.java:355) .... Caused: java.lang.NoClassDefFoundError: org/apache/tools/ant/taskdefs/Input$Handler at java.lang.Class.getDeclaredConstructors0(Native Method) at java.lang.Class.privateGetDeclaredConstructors(Class.java:2404) at java.lang.Class.getConstructor0(Class.java:2714) – wonton Oct 16 '12 at 04:51
-
2I found the setting in `Tools > Options > Java > Ant` in version 7.2 – RustyTheBoyRobot Jul 25 '13 at 15:51