Error - Ant Is Misconfigured And Cannot Be Run. Netbeans
run. NetBeans Forums -> NetBeans Users View previous topic :: View next topic Author Message Mr MorganJoined: 07 Aug 2013Posts: 3 Posted: Wed Aug 07, 2013 7:56 pm Post subject: ERROR - Ant is misconfigured and cannot be run. Hello I've just upgraded my copy of NetBeans 7.3 to the latest version of Java ME, but whenever I try to run a project, I get: java.io.IOException: Could not load class org.netbeans.modules.javame.profiler.ant.OpenProfiler: java.lang.UnsupportedClassVersionError: org/netbeans/modules/javame/profiler/ant/OpenProfiler : Unsupported major.minor version 51.0 at org.apache.tools.ant.module.bridge.AntBridge.loadDefs(AntBridge.java:561) at org.apache.tools.ant.module.bridge.AntBridge.createCustomDefs(AntBridge.java:538) at org.apache.tools.ant.module.bridge.AntBridge.createAntInstance(AntBridge.java:326) 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) Caused by: java.lang.UnsupportedClassVersionError: org/netbeans/modules/javame/profiler/ant/OpenProfiler : Unsupported major.minor version 51.0 at java.lang.ClassLoader.defineClass1(Native Method) at java.lang.ClassLoader.defineClassCond(ClassLoader.java:632) at java.lang.ClassLoader.defineClass(ClassLoader.java:616) at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141) at java.net.URLClassLoader.defineClass(URLClassLoader.java:283) at java.net.URLClassLoader.access$000(URLClassLoader.java:5 at java.net.URLClassLoader$1.run(URLClassLoader.java:197) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:190) at org.apache.tools.ant.module.bridge.AuxClassLoader.findClass(AuxClassLoader.java:8 at java.lang.ClassLoader.loadClass(ClassLoader.java:307) at java.lang.ClassLoader.loadClass(ClassLoader.java:248) at org.apache.tools.ant.module.bridge.AntBridge.loadDefs(AntBridge.java:550) ... 6 more Caused by: loading: org.netbeans.modules.javame.profiler.ant.OpenProfiler I have to disable the plugin for Java ME to get anything to work. I do have a version of Ant installed on my PC currently living in: C:\Program Files\NetBeans 6.9.1\java\ant Any ideas? Thanks Mr Morgan. Back to top markiewbJoined: 29 Aug 2012Posts: 852 Posted: Thu Aug 08, 2013 6:07 am Post subject: ERROR - Ant is misconfigured and cannot be run. The cl
This Site Careers Other all forums Forum: IDEs, Version Control and other tools Netbeans Ant Error Jon Parise Ranch Hand Posts: 81 posted 8 years ago Hey everyone, I have a Java SE 6 project I built using Netbeans 6.1. Today Netbeans told me it had some updates, so I installed them. One of them was for Ant. Now when I try to build my project I get the following: ERROR - Ant is misconfigured and cannot be run. java.lang.ClassNotFoundException: http://forums.netbeans.org/post-151510.html org.apache.tools.ant.input.InputHandler at java.net.URLClassLoader$1.run(URLClassLoader.java:200) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:188) at org.apache.tools.ant.module.bridge.AuxClassLoader.findClass(AuxClassLoader.java:85) at java.lang.ClassLoader.loadClass(ClassLoader.java:306) at java.lang.ClassLoader.loadClass(ClassLoader.java:251) at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:247) at org.apache.tools.ant.module.bridge.AntBridge.createAntInstance(AntBridge.java:283) at org.apache.tools.ant.module.bridge.AntBridge.getAntInstance(AntBridge.java:264) at org.apache.tools.ant.module.bridge.AntBridge.getInterface(AntBridge.java:253) at org.apache.tools.ant.module.run.TargetExecutor.run(TargetExecutor.java:460) at org.netbeans.core.execution.RunClassThread.run(RunClassThread.java:151) I'm not sure what the issue is, does anyone have any suggestions? Thanks. Damien Bertot Greenhorn Posts: 1 posted 8 years ago Hey Jon, https://coderanch.com/t/419423/vc/Netbeans-Ant-Error The same problem happened to me. I tried to uninstall and reinstall Ant (in Tools/Plugins/Installed) to no avail. What worked for me was doing a search for "ant.jar" on my Netbeans 6.1 install folder ... which returned: "C:\Program Files\NetBeans 6.1\java2\update\backup\netbeans\ant\lib" - note that it's the backup folder from the update that screwed everything up - Then you go to "Tools/Options/Miscellaneous" and look if the "Ant Home" field is empty - it was for me - if it is empty, you'll have to add the path you found in your above search, minus the "lib" folder ... hence, in my case I copied the following path:"C:\Program Files\NetBeans 6.1\java2\update\backup\netbeans\ant", and IT WORKED ;o) Good luck, Damien. Jon Parise Ranch Hand Posts: 81 posted 8 years ago I ended up just uninstalling and reinstalling all of Netbeans... I will think twice before clicking the update button again. Thanks for the info. Everything is working again for now. Chaitanya Boyapati Greenhorn Posts: 1 posted 7 years ago Originally post
here for http://stackoverflow.com/questions/18327820/error-after-installation-of-netbeans-7-3-1 a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about hiring error - developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. Join them; error - ant it only takes a minute: Sign up error after installation of netbeans 7.3.1 up vote -1 down vote favorite hello Please Just to start with am new to java ME....i just download the netbeans iDE 7.3.1 yesterday after i finish installation i try to run there sample java application but all got is this error message.. ERROR - Ant is misconfigured and cannot be run. java.io.IOException: Could not load class org.netbeans.modules.javame.profiler.ant.OpenProfiler: java.lang.UnsupportedClassVersionError: org/netbeans/modules/javame/profiler/ant/OpenProfiler : Unsupported major.minor version 51.0 at org.apache.tools.ant.module.bridge.AntBridge.loadDefs(AntBridge.java:561) at org.apache.tools.ant.module.bridge.AntBridge.createCustomDefs(AntBridge.java:538) at org.apache.tools.ant.module.bridge.AntBridge.createAntInstance(AntBridge.java:326) 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) Caused by: java.lang.UnsupportedClassVersionError: org/netbeans/modules/javame/profiler/ant/OpenProfiler : Unsupported major.minor version 51.0 at java.lang.ClassLoader.defineClass1(Native Method) at java.lang.ClassLoader.defineClassCond(ClassLoader.java:632) at java.lang.ClassLoader.defineClass(ClassLoader.java:616) at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141) at java.net.URLClassLoader.defineClass(URLClassLoader.java:283) at java.net.URLClassLoader.access$000(URLClassLoader.java:58) at java.net.URLClassLoader$1.run(URLClassLoader.java:197) at java.security.AccessCon