Could not find or load main class error when encrypting user_keystore_config file in Windows
book
Article ID: 131547
calendar_today
Updated On:
Products
CA Automic Applications Manager (AM)
Issue/Introduction
When running the command to create and encrypt the user_keystore_config file as detailed in the documentation linked
here, the below error is seen:
Error: Could not find or load main class com.appworx.util.EncryptKeystoreFile
Environment
Release: AAMLMA99000-9.3-Automic Applications Manager-Linux Master/Agent License
Component:
Cause
The file separator in Linux is a colon while in Windows, it is a semicolon.
Resolution
Change the file separator in the encryption command from a colon to semicolon as seen below.
*Original*
java -DAW_HOME=${AW_HOME} -cp AppWorx.jar:uc4-ra.jar com.appworx.util.EncryptKeystoreFile password
*Update*
java -DAW_HOME=${AW_HOME} -cp AppWorx.jar;uc4-ra.jar com.appworx.util.EncryptKeystoreFile password
Feedback
thumb_up
Yes
thumb_down
No