This content has been marked as final. Show 4 replies
My Linux/Unix skills are pretty basic, but you may need to
a) export your DISPLAY setting or
b) If you're not running X Windows, then I read recently of a "-headless" mode for Java under Linux. Maybe try that switch on the command line.
I don't have X11 server installed
Do I have to install X11? Even if my program is executed in the Apache webserver ?
This error with awt/motif/MToolkit can be originated by mistake above ?
Thanks for your help
Maybe have a look at this and the java.awt.headless=true setting ?
Thats as much as I can tell you, it's not my area really.
If there is an X-server some where nearby, you can point your DISPLAY variable at it. Since I presume you aren't actually displaying anything the humnan sitting at that X-Server wont notice anything. You may need to do an 'xhost +<...>' on the X-Server in order to get access.
Since you're running 1.3 the -Djava.awt.headless=true option isn't available.
You might also look at Xvfb which is a headless X-Server for just such emergencies