URT Failure - Could not find or load main class UpdateReadinessTool
search cancel

URT Failure - Could not find or load main class UpdateReadinessTool

book

Article ID: 246996

calendar_today

Updated On:

Products

Data Loss Prevention Network Protect

Issue/Introduction

 

While running URT for upgrade of DLP Enforce from 15.5 to 15.8 we are getting below error.

"C:\Program Files\AdoptOpenJRE\19\bin\java" UpdateReadinessTool --username protect --password password --readiness_username Upgrade_protect --readiness_password password --service_name protect --target_version 15.8

Error: Could not find or load main class UpdateReadinessTool.

 

Cause

 

This can occur when a classpath has been configured, if this is the case even though the command line is run from the actual URT directory which contains the relevant java class files the java binary will not find these files and throw the above error.

Resolution

 

We can overcome this issue easily by using the -cp option with the java command line and using a period to specify the current directory, this instructs java to use the current directory as the classpath and hence execute successfully.

"C:\Program Files\AdoptOpenJRE\jdk8u262-b10-jre\bin\java" -cp . UpdateReadinessTool --username protect --password Password --readiness_username Upgrade_protect --readiness_password password --service_name ACMEINC --target_version 15.8