Skip to Main Content

Java Programming

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

"java.lang.UnSupportedClassVersionError" with ANT

807588May 8 2009 — edited May 12 2009
Hello
I'am trying compile and run simple java project with ANT.
Compilation is pass, but during run program on the console I'am getting this exception.

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

I'am readed on this forum that:
"This exception can occur when the source is built targeting a JDK that is not supported by the JDK attempting to run it. In the above example, if the servlet was built targeting only JDK 1.5, but the web server runs JDK 1.4, the above exception will occur."

On my system(Windows XP) is instaled only JDK 1.5, i'am not instaled any other JVM.

What is the cause of this exception.

Please, Hepl me
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jun 9 2009
Added on May 8 2009
3 comments
212 views