在命令提示符下运行“ant dist”命令时出现上述异常。我已经安装了 ruby & sencha 命令。我在我的系统中使用 java "1.5.0.06" 和 jre 6。
sencha-app-refresh:
[attrib] Applied attrib to 432 files and 0 directories.
[attrib] Applied attrib to 18 files and 0 directories.
[exec] java.lang.UnsupportedClassVersionError: Bad version number in .class file
[exec] at java.lang.ClassLoader.defineClass1(Native Method)
[exec] at java.lang.ClassLoader.defineClass(ClassLoader.java:620)
[exec] at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
[exec] at java.net.URLClassLoader.defineClass(URLClassLoader.java:260)
[exec] at java.net.URLClassLoader.access$100(URLClassLoader.java:56)
[exec] at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
[exec] at java.security.AccessController.doPrivileged(Native Method)
[exec] at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
[exec] at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
[exec] at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:268)
[exec] at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
[exec] at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
[exec] Exception in thread "main"
sencha-app-build:
[exec] java.lang.UnsupportedClassVersionError: Bad version number in .class file
[exec] at java.lang.ClassLoader.defineClass1(Native Method)
[exec] at java.lang.ClassLoader.defineClass(ClassLoader.java:620)
[exec] at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
[exec] at java.net.URLClassLoader.defineClass(URLClassLoader.java:260)
[exec] at java.net.URLClassLoader.access$100(URLClassLoader.java:56)
[exec] at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
[exec] at java.security.AccessController.doPrivileged(Native Method)
[exec] at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
[exec] at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
[exec] at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:268)
[exec] at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
[exec] at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
[exec] Exception in thread "main"
从命令提示符运行“sencha.exe”时出现同样的异常。
请帮我解决这个问题。谢谢。