Hello -

 

I've provided some of our users with a jar I compiled with Java 1.6. The jar consists of one class. The users are running Java 7.  However, some of them are getting this error:

 

                    java.lang.UnsupportedClassVersionError: <class> bad major version at offset=6


So, I checked the following:


    - java- -verbose indicates the class was compiled with Java 6:

        minor version: 0

      major version: 50

 

 

  - java -version indicates the user is running a newer version of java:

       1.7.0_67

 

- the jar manifest indicates the following:

      Created-By: 20.13-b02 (Sun Microsystems Inc.)

 

 

If i understand correctly, this means the java.lang.UnsupportedClassVersionError exception should not be occuring.


So I am baffled - is there anything i can do to diagnose or fix this?



Thanks for your help!

FacebookTwitterLinkedin
Pin It
Joomla Tutorials for Beginners