JWP and JCP will not start from the service manager (smgr / servicemanager) on unix/linux
When attempt to start the process, the smgr shows the process staying as red or stopped
smgr log shows:
20210628/151506.466 - U00022004 Starting process 'UC4 JWP' ...
20210628/151506.466 - U00022005 ... with command line '/usr/wrongjavadir/java -d64 -Xmx2G -jar ucsrvjp.jar -I/opt/dem/smgr/bin/../../AutomationEngine/bin/ucsrv.ini -svc0x18edc60ort'.
20210628/151506.466 - U00022006 ... and start directory '/opt/dem/smgr/bin/../../AutomationEngine/bin'.
20210628/151506.466 - ERROR: errno '2' returned: No such file or directory
20210628/151506.466 - U00022007 Process 'UC4 JWP' (ID '174752') successfully started.
20210628/151506.466 - U00022012 Process 'UC4 JWP' (ID '174752') ended.
20210628/151506.466 - U00022022 Process 'UC4 JWP' ended, exit code='0'.
No log is generated for JWP, JCP or any other Java components (like RA FTP, SAP agent, db service, sql agent, etc...)
Release : 12.3
Component : AUTOMATION ENGINE
This is caused by the incorrect java bin directory being pointed to.
Troubleshooting steps:
Running a which java and making sure that it matches the path to java above also helps confirm where java should be pointed to
If the correct java returns from running the command: which java
Alternatively,
3. In the "Command" field, use the correct full path to java, for example, if this is "/opt/java/jdk/bin/", update the Start Command to: /opt/java/jdk/bin/java -d64 -Xmx2G ...