Automic Workload Automation

 View Only

  • 1.  create JRE as a symbolic link

    Posted Aug 28, 2025 05:58 AM

    since v24, the operating systems agents require OpenJDK 17. We now had the situation that CAU was not able to start the new agent via the ServiceManager.

    The situation

    The old agent was installed manually.

    Because another Java version must be used as the main version, it was not possible to modify the system path and/or JAVA_HOME. So, instead of duplicating the jre folder multiple times, it was decided to install OpenJDK 17 to a central folder and create symbolic links to agent\windows\bin instead. This saves some hundred MB disc space. As far I have seen, the agent starts without errors and operates error-free.

    CAU

    Now CAU was used to upgrade the windows agent to 24.4.1 HF2. The new agent software was successfully deployed, the old agent was stopped but the new agent did not start.

    See what has happened - starting agent using "ucxjwx6 --console" shows the error:

    Launcher process 7416 started

    Press ENTER key to start...

    C:\Automic_v24HF2\Agents\windows\bin is the current working directory
    Checking if path C:\Automic_v24HF2\Agents\windows\bin\smgr_deployment.txt exists...
        No (The system cannot find the file specified.
    )
    C:\Automic_v24HF2\Agents\windows\bin is the current working directory
    Attempting to delete file C:\Automic_v24HF2\Agents\windows\bin\access_test.txt...
        Deleted
    Checking if path C:\Automic_v24HF2\Agents\windows\bin\jre.zip exists...
        Yes
    Checking if path C:\Automic_v24HF2\Agents\windows\bin\jre exists...
        Yes
    Attempting to delete directory C:\Automic_v24HF2\Agents\windows\bin\jre...
    powershell.exe -Command Remove-Item -Recurse -Force C:\Automic_v24HF2\Agents\windows\bin\jre
    An error occured: Error while performong initialization: Powrshell returned with exit code 1
    Error while performong initialization: Powrshell returned with exit code 1
    JAVA_HOME identified as:
    >Command execution failed with return code: 1<

    Press ENTER key to exit after exception...

    As we can see, CAU uses a PowerShell command to remove the old jre folder. This seems not to work with shortcuts/links ...?

    Solution

    1. removed the linked folder
    2. started the agent manually via ServiceManager Dialog
    3. waited for the completion of CAU
    4. removed the physical jre folder (created by CAU)
    5. recreated the link

    I often see customers using symbolic links for various purposes. Sure, it saves disc space.


    CAU should also consider this in its design – what do you think?

    regards,
    Peter



    ------------------------------
    Automic Certified Professional/Expert & Broadcom Knight
    ------------------------------


  • 2.  RE: create JRE as a symbolic link

    Broadcom Employee
    Posted Sep 10, 2025 09:12 AM

    Hi Peter!

    Are you aware that with the latest service pack of the Agent a new command-line option was introduced which allows to specify the path to the used Java VM.

    e.g.

    .\ucxjwx6.exe -vm:"C:\Program Files\Eclipse Adoptium\jdk-21.0.x.y-zzz"

    Unfortunately the parameter is not yet properly documented (Unix-path used in the Windows example).

    see 

    Hope this helps

    Michael



    ------------------------------
    Michael K. Dolinek

    Engineering Program Manager | Agile Operation Division
    Broadcom Software
    ------------------------------



  • 3.  RE: create JRE as a symbolic link

    Posted Sep 22, 2025 05:56 PM

    thankyou. could you share what the service pack is? Also, are there any changes to the UNIX jobs itself? how they operate and interpret the Shell?



    ------------------------------
    Thanks Shravani
    ------------------------------



  • 4.  RE: create JRE as a symbolic link

    Broadcom Employee
    Posted Oct 01, 2025 07:06 AM

    Please have a look at the announcement of latest service pack v24.4.2

    https://community.broadcom.com/discussion/automic-automation-2442-service-pack-2-has-been-released-and-is-available-for-download 

    Michael



    ------------------------------
    Michael K. Dolinek

    Engineering Program Manager | Agile Operation Division
    Broadcom Software
    ------------------------------