安装netbeans 7.3.1后出错

时间:2013-08-20 05:49:41

标签: java netbeans-7

你好请刚开始我是java ME的新手....我刚刚完成安装后下载了netbeans iDE 7.3.1我试着在那里运行示例java应用程序但是所有得到的都是这个错误消息.. < / p>

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.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
    at org.apache.tools.ant.module.bridge.AuxClassLoader.findClass(AuxClassLoader.java:88)
    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

请帮助我,我不知道从哪里开始

1 个答案:

答案 0 :(得分:0)

根据this,“为新JVM编译类而不是尝试运行。使用较新的JDK。”