sudo ./ returns java: no such file or directory
search cancel

sudo ./ returns java: no such file or directory


Article ID: 216332


Updated On:


CA Workload Automation AE

Issue/Introduction does not work using sudo 


cd /opt/CA/WorkloadAutomationAE/wcc

sudo ./

./ line 2: /jre/bin/java: No such file or directory


Release : 12

Component : CA Workload Automation AE (AutoSys)

Resolution has some environment variables which are sourced from /etc/profile.CA file.   So sourcing /etc/profile.CA  file is needed before running the script.  sudo ./  does not source the above file and so the error. 


One option is to run the command like this instead:

sudo -- sh -c  ". /etc/profile.CA; ./"


It should now show the output like below

Product Name:        AutoSys Web UI
Copyright:           Copyright (c) 2020 Broadcom All rights reserved.
Release:             12.0
Service Pack:        01
Maintenance Level:   00
Build Number:        1142
Volume Label:        ae-webui-12.0.01-11-29
Platform:            Linux