开发者

JDK version problem

开发者 https://www.devze.com 2023-02-07 13:50 出处:网络
I am looking for clarification in jdk versions. I am getting error java.lang.UnsupportedClassVersionError:Bad version number in .class file\"

I am looking for clarification in jdk versions.

I am getting error

java.lang.UnsupportedClassVersionError:Bad version number in .class file"

开发者_JS百科

I hope this error is for different jdk version. I am having myeclipse6.0.1 and weblogic10.3.

Now, in my systems has jdk1.5 but weblogic has jdk1.6, as well myeclipse supporting 1.5 only.

I read the all forums and they said compile is different version and running different version.

So, here i thought program compliling 1.5 and running 1.6.

Is it correct ?


This means that the Java program was compiled for a newer version of Java than you are trying to run it with.

The easiest way to be certain is to use the same version of Java for compiling and building as is to be used on the final system. For you, this is most likely Java 5.

0

精彩评论

暂无评论...
验证码 换一张
取 消