XOG Client 15.5.1 or higher throws UnsupportedClassVersionError

book

Article ID: 128974

calendar_today

Updated On:

Products

Clarity PPM SaaS Clarity PPM On Premise

Issue/Introduction

After installing the 15.5.1 (or higher) version of the XOG client, and attempting to run 'xog -propertyfile test.properties' from a command line, the following Java error is thrown. 

Exception in thread "main" java.lang.UnsupportedClassVersionError: com/niku/xog/ 
client/XOGClient has been compiled by a more recent version of the Java Runtime 
(class file version 55.0), this version of the Java Runtime only recognizes clas 
s file versions up to 52.0 ...

Cause

The 15.5.1 XOG Client (or higher) requires JAVA 11 to be installed and set on the Java_Home under the Environment Variables. When using Java 11, a separate JRE is no longer required so the JDK can now be used.

Environment

Clarity PPM 15.8.1
Clarity PPM 15.8
Clarity PPM 15.7
Clarity PPM 15.6.1

Resolution

After downloading and installing JDK 11, the following steps can be used to set the Java_Home variable:

  1. Click on the Start menu and right click on Computer
  2. Go to Advanced System Settings
  3. Click on the Environment Variables button
  4. Under the System Variables, edit the 'Java_Home' variable, or create one with this name if one does not already exist
  5. For the Variable Value, enter the path to the JDK 11 folder -- will be something like : C:\Program Files\Java\jdk-11.0.2
  6. Again under the System Variables, edit the 'Path' variable and add the following to the beginning, if not found anywhere on the Path variable value already: %java_home%\bin;
  7. Close out of any command line that is currently open, and retry the XOG command