OWB: 'Cannot start or find the Java' Error due to Env Variable Setting

book

Article ID: 201657

calendar_today

Updated On:

Products

Clarity PPM On Premise Clarity PPM SaaS

Issue/Introduction

Users are having issues connecting to OWB in Clarity. When installing Open Workbench (OWB) the documentation states that Java Version 1.11 is required for OWB but when they only have 1.11 installed OWB will not open and it fails with the below:

Cannot start or find the Java 1.8 JRE (1). The 1.8 JRE may not have been installed or the registry may be incorrect. 

When they install Java 1.8 and launch OWB, the below error instead shows:

Exception in thread "main" java.lang.UnsupportedClassVersionError: class 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

Cause

This is due to an issue with the Java info in Environment Variables.

Environment

Release : All

Component : CA PPM OPEN WORKBENCH (OWB)

Resolution

Check to make sure Environment Variables are set correctly:

  • Make Only one Java path exists in the Path Environment Variable. If there are two (IE jdk 11 and JRE 1.8), this can cause the error.
  • If that isn't the cause, check to make sure the Path variable has the JDK 11 path set
    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;

Note: Step 6 may not be required depending on your Windows version. 

Additional Information

See also: