ShieldSquare Java connector is upward compatible and works for Java version >=1.6. To determine the version of Java being used, follow the steps given below.

  1. Extract ss2.jar file from the Java connector package that you downloaded from ShieldSquare portal.
  2. This will give you following .class file
    • ReadPropertiesFile.class
    • SS2.class
  3.  Run the below mentioned command on SS2.class of .class file
    javap -verbose SS2.class | find "major"

The output will be,

major version: 50 if .class file is compatible with java1.6
major version: 51 if .class file is compatible with java1.7

From the output, the version of Java can be determined.