AppWorx, Dollar Universe and Sysload Community

 View Only

  • 1.  Application manager 9.3.1 on MAC

    Posted Nov 15, 2019 01:48 PM
    Hi All,

    Appworx on Mac. Getting below error while running the RunClient.jar.

    Javaw is only distributed to windows OS, not for Linux or Mac.

    AW_HOME: /Users/a212436458/Downloads/Client

    JAVA_HOME: /Users/a212436458/Downloads/jdk-11.0.5.jdk/Contents/Home

    "/Users/a212436458/Downloads/jdk-11.0.5.jdk/Contents/Home/bin/javaw" -cp ".;./jars/*" -Dappworx.debug=false -DAW_HOME="/Users/a212436458/Downloads/Client"  com.appworx.client.screen.main.AxMain

    java.io.IOException: Cannot run program ""/Users/a212436458/Downloads/jdk-11.0.5.jdk/Contents/Home/bin/javaw"": error=2, No such file or directory

                    at java.lang.ProcessBuilder.start(ProcessBuilder.java:1048)

                    at java.lang.Runtime.exec(Runtime.java:620)

                    at java.lang.Runtime.exec(Runtime.java:450)

                    at java.lang.Runtime.exec(Runtime.java:347)

                    at com.appworx.client.local.RunClient.main(RunClient.java:48)

    Caused by: java.io.IOException: error=2, No such file or directory

                    at java.lang.UNIXProcess.forkAndExec(Native Method)

                    at java.lang.UNIXProcess.<init>(UNIXProcess.java:247)

                    at java.lang.ProcessImpl.start(ProcessImpl.java:134)

                    at java.lang.ProcessBuilder.start(ProcessBuilder.java:1029)

                    ... 4 more

    End RunClient

    could you please let me know how to setup the client on MAC for AM 9.3.1.

    -Raja



    ------------------------------
    Senior Consultant
    Capgemini
    ------------------------------


  • 2.  RE: Application manager 9.3.1 on MAC

    Posted Jun 15, 2020 06:03 PM
    Edited by Paul Coleman Jun 16, 2020 08:00 AM
    You've probably figured this out by now, but I just figured out I can bypass the RunClient.jar by running something like the following:

    UC4Client.sh:

    export JAVA_HOME=/path/to/java/home
    export RUNDIR=/Applications/Directory

    $JAVA_HOME/bin/java -cp ".:./jars/*" -Dappworx.debug=true -DAW_HOME="$RUNDIR/Client" -Xmx256m com.appworx.client.screen.main.AxMain





  • 3.  RE: Application manager 9.3.1 on MAC

    Posted Jun 16, 2020 09:01 AM
    Thank you Paul for the information. 

    I was wondering if you run that UC4Client.sh script on your MAC, or on some Linux host?

    I tried to get this working on Linux, but could not get it to work.  I think you can run a script on the MAC, but I never tried that. 
    Plus I don't have a MAC, I would have to get someone to try it out for me. 

    Thank you for the help.


    Rich 



  • 4.  RE: Application manager 9.3.1 on MAC

    Posted Jun 16, 2020 09:17 AM
    Yes. On a Mac. To be clear, I've gotten it to actually launch UC4, but am now having trouble connecting because of SSL Handshake issues. So I'm not out of the woods yet.

    You need to update all paths in that script as well (I tried to make it generic).

    I'll update when I get through the SSL errors I get when I try and log in.


  • 5.  RE: Application manager 9.3.1 on MAC

    Posted Jun 16, 2020 09:37 AM
    Thank you Paul.   This is where I failed on getting it to work on Linux.    I kept getting the SSL HandShake error, and it would fail. 
    On Windows it finds them under the 
    C:\Users\<user name>\Appworx\<instance>     directories. On Windows it finds my user_keystore files properly.  But on Linux, and Mac it might not know where to look.  I came to a road block. 

    Thank you 
    Rich


  • 6.  RE: Application manager 9.3.1 on MAC
    Best Answer

    Posted Jun 16, 2020 12:38 PM
    Got it to work all the way through!  

    I found that there was a hidden directory in my user home called .AppWorx

    If you don't find that there, then I'd suggest making it.

    I copied the user_keystore and user_keystore_config into /Users/pcoleman/.Appworx and it now works.

    I'd think that on Linux, it will be the same...whatever your user home is and then that .Appworx directory.


  • 7.  RE: Application manager 9.3.1 on MAC

    Posted Nov 24, 2024 01:25 AM

    I am trying to get this to work on a Mac laptop and on a Red Hat Linux 8 system.

    In both cases I get the error cannot file class com.appworx.client.screen.main.AxMain

    Not sure what I am doing wrong.

    I created the ~/.AppWorx directory

    I have a ~/AppWorx/ tree with my MASTERNAME and under it the user_keystore and user_keystore_config

    The script I am using is below:

    ==============

    #!/bin/bash

    export JAVA_HOME=/opt/local/java/latest

    export RUNDIR="${HOME}/AM_Client"

    cd "${RUNDIR}/Client"

    $JAVA_HOME/bin/java -cp ".:./jars/*" -cp "RunCLient.jar"  -Dappworx.debug=true -DAW_HOME="$RUNDIR/Client" -Xmx256m com.appworx.client.screen.main.AxMain

    ===============

    [wichter1-sc@apptools AM_Client]$ bash -x r1

    + export JAVA_HOME=/opt/local/java/latest

    + JAVA_HOME=/opt/local/java/latest

    + export RUNDIR=/auto/home/wichter1-sc/AM_Client

    + RUNDIR=/auto/home/wichter1-sc/AM_Client

    + cd /auto/home/wichter1-sc/AM_Client/Client

    + /opt/local/java/latest/bin/java -cp '.:./jars/*' -cp RunCLient.jar -Dappworx.debug=true -DAW_HOME=/auto/home/wichter1-sc/AM_Client/Client -Xmx256m $'com.appworx.client.screen.main.AxMain\342\200\250'

    Error: Could not find or load main class com.appworx.client.screen.main.AxMain

    [wichter1-sc@apptools AM_Client]$

    ========================

    So where is this class  com.appworx.client.screen.main.AxMain located ?

     




  • 8.  RE: Application manager 9.3.1 on MAC

    Posted Dec 02, 2024 02:10 PM

    This is the script I use to launch the AppWorx GUI client on a openSUSE Leap system,  so it should work on the RedHat and the MacOS (with some adjustments).  I do not use the RunClient.jar because it's had trouble dealing with non-windows path separators in the past (i.e / vs \ ).
    Hope this helps

    #!/bin/bash
    
    #assumes this script is at the root of the client directory
    AW_HOME=$( cd $(dirname "$0") && pwd )
    echo "AW_HOME: $AW_HOME"
    
    PROP_FILE="${AW_HOME}/client.properties"
    echo "Properties file: $PROP_FILE"
    
    function prop {
        #convert line endings to prevent problems with Windows CR-LF and Unix LF
        echo $(grep -i "^${1}" $PROP_FILE|tr -d '\15\32' |cut -d'=' -f2)
    }
    
    
    if [ ! -f "$PROP_FILE" ]; then
        echo "Could not locate the client properties file."
        exit 1
    fi
    
    #grab the value for JAVA_HOME
    JAVA_HOME=$(prop java_home)
    echo "Java Home: $JAVA_HOME"
    
    #is debug enabled or not
    DEBUG=$(prop debug)
    echo "Client debug: \"$DEBUG\""
    
    #any run options
    RUN_OPTS=$(prop runOptions)
    echo "Additional options: $RUN_OPTS"
    
    #assemble the Classpath
    CP=($AW_HOME:$AW_HOME/jars/*)
    echo "Classpath: \"$CP\""
    
    cd $AW_HOME
    
    export PATH=${JAVA_HOME}/bin:$PATH
    echo "PATH is: $PATH"
    
    echo "Running: nohup java -cp \"$CP\" -Dappworx.debug=${DEBUG} -DAW_HOME=\"$AW_HOME\" $RUN_OPTS com.appworx.client.screen.main.AxMain"
    
    nohup java -cp "$CP" -Dappworx.debug=$DEBUG -DAW_HOME=\"$AW_HOME\" $RUN_OPTS com.appworx.client.screen.main.AxMain >/dev/null 2>&1 &