For correct work on UNIX, you need to use AjaxSwing with either X-Window system or Xvfb.
Here is a step-by-step guide for setting up AJaxSwing for UNIX (in the next release this process will be more straightforward and clear) :
Before you start make sure you have Xvfb and zip packages installed.
1. Remove conf/lastKnownJdkVersion.txt if it exists.
2. Execute the following command
chmod 777 bin/setup/setup.sh
Run bin/setup/setup.sh
3. Start AjaxSwing, wait for a few minutes, then stop it.
4. Run bin/setup/setupForXvfb.sh
5. In bin/setEnv.sh replace
JAVA_OPTS="${JAVA_OPTS} -Djava.awt.headless=true"
with
JAVA_OPTS="${JAVA_OPTS} -Djava.awt.headless=false"
In conf/default.properties set
agent.usePlatformGraphicsEnvironment=true
6. Start AJS with the following command (it's just an example, don't start AjaxSwing like this each time)
Xvfb :0 -screen 0 1920x1080x24 & ./startServer.sh
or start Xvfb in the background before running AJS
It's better to execute Xvfb on server's startup and then just start AjaxSwing with ./startServer.sh