Java app (jar) working in Windows but not Linux (made in Eclispe)

I’ve made this application in a Windows environment. In eclipse, I made an executable .jar file by going to File > Export > Executable Jar

I can launch the app in Windows by openening it with Java. However in Linux, when I run java -jar app.jar, I get this:

Exception in thread "main" java.lang.UnsupportedClassVersionError: ConfigReader (Unsupported major.minor version 50.0)
        at java.lang.ClassLoader.defineClass0(Native Method)
        at java.lang.ClassLoader.defineClass(
        at Method)
        at java.lang.ClassLoader.loadClass(
        at sun.misc.Launcher$AppClassLoader.loadClass(
        at java.lang.ClassLoader.loadClass(
        at java.lang.ClassLoader.loadClassInternal(

What does unsupported class version error mean?


The application was probably written in Java 6 and you are trying to run it in Java 5. You can either build it under Java 5 in eclipse or install Java 6 onto your linux machine

Leave a Reply

Your email address will not be published. Required fields are marked *