Saturday, November 24, 2018

Error 'java.lang.UnsupportedClassVersionError' when using the ssov3.jar


The error 'java.lang.UnsupportedClassVersionError' is encountered when the JVM (java Virtual Machine) tries to load a class and found out that the class file version is not supported and the error is thrown.

It generally occurs if a higher JDK (Java Development Kit) version  is used to compile the source file and a lower JDK version is used to run the program. A sample of a specific error detail of this is "java.lang.unsupportedclassversionerror unsupported class version 50.0" which means that it was compiled in JDK 1.6 and executed on a lower version of Java.

The ssov3.jar requires a java version of "1.6.0_29" or higher.

To get the version of java (used for execution) in the folder where the ssov3.jar is located to verify the version used when execution, kindly refer to the Windows CMD command as shown below:

First navigate to the folder where the file is located and use the command below:

C:\openssl>java - version

This will show the following details:

java version "1.6.0_25"
Java(TM) SE Runtime Environment (build 1.6.0_25-b06)
Java HotSpot(TM) 64-Bit Server VM (build 20.0-b11, mixed mode)

As an alternative way, you may try to move the ssov3.jar in C:\[Program Files]\Java\jre6\bin then execute it there using the cmd.exe (Command Prompt).

No comments:

Post a Comment