XOG client fails with Java error XOGClient has been compiled by a more recent version of the Java Runtime

book

Article ID: 141456

calendar_today

Updated On:

Products

CLARITY PPM FOR ITG CLARITY PPM FEDERAL Clarity PPM On Premise

Issue/Introduction

Calling XOG is failing with error: 

C:\Program Files (x86)\CA\PPM\CA PPM XOG\bin>xog -propertyfile clarity.properties

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 class file versions up to 52.0

        at java.lang.ClassLoader.defineClass1(Native Method)

        at java.lang.ClassLoader.defineClass(Unknown Source)

        at java.security.SecureClassLoader.defineClass(Unknown Source)

        at java.net.URLClassLoader.defineClass(Unknown Source)

        at java.net.URLClassLoader.access$100(Unknown Source)

        at java.net.URLClassLoader$1.run(Unknown Source)

        at java.net.URLClassLoader$1.run(Unknown Source)

        at java.security.AccessController.doPrivileged(Native Method)

        at java.net.URLClassLoader.findClass(Unknown Source)

        at java.lang.ClassLoader.loadClass(Unknown Source)

        at java.lang.ClassLoader.loadClass(Unknown Source)

        at java.lang.Class.forName0(Native Method)

        at java.lang.Class.forName(Unknown Source)

        at com.werken.forehead.Forehead.setupEntry(Forehead.java:298)

        at com.werken.forehead.Forehead.config(Forehead.java:256)

        at com.werken.forehead.Forehead.config(Forehead.java:131)

        at com.werken.forehead.Forehead.main(Forehead.java:579)

C:\Program Files (x86)\CA\PPM\CA PPM XOG\bin>java -version

java version "1.8.0_192"

Java(TM) SE Runtime Environment (build 1.8.0_192-b12)

Java HotSpot(TM) 64-Bit Server VM (build 25.192-b12, mixed mode)

 

C:\Program Files (x86)\CA\PPM\CA PPM XOG\bin>

Environment

Release : Clarity releases working on Java 11

Resolution

You have to use Java 11 with XOG for it to work. Go to Control Panel - System - Environmental variables and ensure you have set up Java 11 in the PATH as well as JAVA_HOME in the environmental variables. 

Then close and reopen Command Prompt and try again and this should work