[java]
ERROR - Ant is misconfigured and cannot be run.
java.lang.IllegalStateException: Wrong class loader is finding Ant: sun.misc.Launcher$ExtClassLoader@cac268
at org.apache.tools.ant.module.bridge.AntBridge.createAntInstance(AntBridge.java:302)
at org.apache.tools.ant.module.bridge.AntBridge.getAntInstance(AntBridge.java:278)
at org.apache.tools.ant.module.bridge.AntBridge.getInterface(AntBridge.java:267)
at org.apache.tools.ant.module.run.TargetExecutor.run(TargetExecutor.java:539)
at org.netbeans.core.execution.RunClassThread.run(RunClassThread.java:154)
[/java]
Running win7 with java6. This is the error I’m receiving. Folks, what am I missing? Any help would be highly appreciated. I can’t even build/run a basic project.
Have you installed anything in your JRE’s extension directory? “jrelibext”
I’ve never seen that kind of error before but it’s hinting at maybe some ant classes being in the extensions directory. It’s a stab in the dark, though.
1 Like
You’re 100% correct. I dropped an ant jar in the extensions directory some time last year for a Spring project. I removed that shortly after posting this thread and jMonkeyPlatform started working flawlessly. Thanks!
Heh, “psychic java guru” ^^