Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have NetBeans 7.01 from Debian repository - all works. But I have a problem with NetBeans 7.3 from the official site (installed on the same machine) - I can't compile anything:

ERROR - Ant is misconfigured and cannot be run. java.lang.ClassNotFoundException: org.apache.tools.ant.module.bridge.impl.BridgeImpl at java.net.URLClassLoader$1.run(URLClassLoader.java:366) at java.net.URLClassLoader$1.run(URLClassLoader.java:355) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:354) at org.apache.tools.ant.module.bridge.AntBridge$MainClassLoader.findClass(AntBridge.java:647) at java.lang.ClassLoader.loadClass(ClassLoader.java:423) at java.lang.ClassLoader.loadClass(ClassLoader.java:356) at org.apache.tools.ant.module.bridge.AntBridge.createAntInstance(AntBridge.java:299) at org.apache.tools.ant.module.bridge.AntBridge.getAntInstance(AntBridge.java:279) at org.apache.tools.ant.module.bridge.AntBridge.getInterface(AntBridge.java:268) at org.apache.tools.ant.module.run.TargetExecutor.run(TargetExecutor.java:541) at org.netbeans.core.execution.RunClassThread.run(RunClassThread.java:153)

Lubuntu x32, all updates. Nimbus plugin.

In Options -> Java -> Ant -> ant Home I can't choose a valid folder. I tried /usr/share/ant, but I get the above error with that even though I have ant.jar in that directory.

share|improve this question

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.