Java based components are unable to start despite JAVA_HOME being setup.
search cancel

Java based components are unable to start despite JAVA_HOME being setup.

book

Article ID: 429407

calendar_today

Updated On:

Products

CA Automic Workload Automation - Automation Engine

Issue/Introduction

After upgrading java, the java based processes such as the JWP, JCP, and REST but also the agent such as the Windows and Unix Agent (that utilize java in v24), are unable to start.

Trying to start the agent with the --console command returns this. 

Example: 

ucxjwx6.exe --console

Output:

Launcher process 17772 started

Press ENTER key to start...

C:\automic\Windows_24\bin is the current working directory
Checking if path C:\automic\Windows_24\bin\smgr_deployment.txt exists...
    No (The system cannot find the file specified.
)
C:\automic\Windows_24\bin is the current working directory
Attempting to delete file C:\Users\A-MALLITX\Downloads\Windows_24\bin\access_test.txt...
    Deleted
Checking if path C:\Users\A-MALLITX\Downloads\Windows_24\bin\jre.zip exists...
    No (The system cannot find the file specified.
)
Checking if path C:\automic\Windows_24\bin\ucxjoss_run.jar exists...
    Yes
The epoch mtime of C:\automic\Windows_24\bin\ucxjoss.jar in ms is 1766163640
The epoch mtime of C:\automic\Windows_24\bin\ucxjoss_run.jar in ms is 1766163640
Checking if path C:\automic\Windows_24\bin\jre exists...
    No (The system cannot find the file specified.
)
JAVA_HOME identified as: C:\Program Files\Eclipse Adoptium\jdk-17.0.16.8-hotspot;
>Command execution failed with return code: 1<

Cause

That semicolon is causing issues.

It is showing like this on your system.

And this is how it should look like.

Resolution

Delete the entry for this JAVA_HOME, then re-add it. If a semi colon at the end of it, it will turn the system variable into list mode (which you do not want).

In order for it to take effects, you have to reboot it.