Bad version number in .class file

[] [] [] []

Symptom
When working with VC application with WD component as a black box there is an error caused by the incompatibility between the JDK version.
“java.lang.UnsupportedClassVersionError: Bad version number in .class file
[at java.lang.ClassLoader.defineClass1(Native Method)]
is an error that you may face in running a compiled java class file.

Other terms
This happens only if WD component is used as BlackBox in VC and not otherwise.
Reason and Prerequisites
The reason for this is that the Server is of different version and the IDE would be running on a different java version.
Solution
Solution is to run the IDE on the Java version supported by server and also compile the projects in the same version.

[Slashdot] [Digg] [Reddit] [del.icio.us] [Facebook] [Technorati] [Google] [StumbleUpon]

Leave a Comment