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
Original Message:
Sent: Nov 23, 2024 11:42 PM
From: Larry Wichter
Subject: Application manager 9.3.1 on MAC
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 ?
Original Message:
Sent: Jun 16, 2020 12:38 PM
From: Paul Coleman
Subject: Application manager 9.3.1 on MAC
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.
Original Message:
Sent: 06-16-2020 09:36 AM
From: Richard Blumlein
Subject: Application manager 9.3.1 on MAC
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
Original Message:
Sent: 06-16-2020 09:16 AM
From: Coleman
Subject: Application manager 9.3.1 on MAC
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.
Original Message:
Sent: 06-16-2020 09:00 AM
From: Richard Blumlein
Subject: Application manager 9.3.1 on MAC
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
Original Message:
Sent: 06-15-2020 06:03 PM
From: Coleman
Subject: Application manager 9.3.1 on MAC
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
Original Message:
Sent: 11-15-2019 01:48 PM
From: Rajarajan R
Subject: Application manager 9.3.1 on MAC
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
------------------------------