-1

你好,请从我刚开始接触java ME....我昨天刚刚下载了netbeans iDE 7.3.1,在我完成安装后,我尝试在那里运行示例java应用程序,但得到的只是这个错误消息..

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

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

4

1 回答 1

0

据此,“这些类是为比您尝试运行的更新的 JVM 编译的。使用更新的 JDK。”

于 2013-08-20T06:02:25.887 回答