MyException - 我的异常网
当前位置:我的异常网» J2EE » java.lang.UnsupportedClassVersionError: Bad vers

java.lang.UnsupportedClassVersionError: Bad version number in .class file(2)

www.MyException.Cn  网友分享于:2013-11-11  浏览:962次

能用的话就顶哈..........
------解决方案--------------------
探讨
楼上的能用么???

------解决方案--------------------
Java code

[color=#FF0000]java.lang.UnsupportedClassVersionError: Bad version number in .class file
    at java.lang.ClassLoader.defineClass1(Native Method)
    at java.lang.ClassLoader.defineClass(Unknown Source)
    at java.security.SecureClassLoader.defineClass(Unknown Source)
    at java.net.URLClassLoader.defineClass(Unknown Source)
    at java.net.URLClassLoader.access$100(Unknown Source)
    at java.net.URLClassLoader$1.run(Unknown Source)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(Unknown Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at java.lang.ClassLoader.loadClassInternal(Unknown Source)
Exception in thread "main" [/color]

------解决方案--------------------
@用不了 
告诉一下具体方法 
import的东西去哪找

http://download.csdn.net/source/1148854 
这里有个jar包,你下了放在你的classpath里就行了 

------解决方案--------------------
java.lang.UnsupportedClassVersionError: Bad version number in .class file
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(Unknown Source)
at java.security.SecureClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.access$100(Unknown Source)
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClassInternal(Unknown Source)
Exception in thread "main"
UnsupportedClassVersionError
这个是 jdk版本问题,需要jdk1.6才行啊.....
应该是能用吧
------解决方案--------------------
探讨
@用不了
告诉一下具体方法
import的东西去哪找

http://download.csdn.net/source/1148854
这里有个jar包,你下了放在你的classpath里就行了

------解决方案--------------------
phone--你的手机号,必须是开通了移动的飞信的
password--你开通飞信业务时候设置的密码
这个安全放心,手机在你手上,密码可随时通过手机修改,所以没人能盗的了

下jdk1.6
java -version 
看看是不是1.6版本的
cd 命令到放了ExamapleMain.java和fetion.jar的目录里
修改下ExamapleMain.java代码里的phone,password
编译
javac -classpath "%classpath%;./fetion.jar" ExamapleMain.java
运行
java -classpath "%classpath%;./fetion.jar" ExamapleMain



------解决方案--------------------
Exception in thread "main" java.lang.NoClassDefFoundError: feitio
Caused by: java.lang.ClassNotFoundException: feition.jar
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Met
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Sou
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClassInternal(Unknown Source
Could not find the main class: feition.jar. Program will exit.

文章评论

软件开发程序错误异常ExceptionCopyright © 2009-2015 MyException 版权所有