glory_k
asked on
Can't connect to X11 Windows when run swing
Hi,
When I try to run the swing application on the shell by typing java test the application will run and the windowdid display but when I run on the rc3.d when reboot it display error can't connect to X11 Windows.
I have set and export DISPLAY and able to see the xclock. I'm using jdk1.4.0_03. I login as a root. I'm running on Solaris 5.
How to fix this error?
Thanks
When I try to run the swing application on the shell by typing java test the application will run and the windowdid display but when I run on the rc3.d when reboot it display error can't connect to X11 Windows.
I have set and export DISPLAY and able to see the xclock. I'm using jdk1.4.0_03. I login as a root. I'm running on Solaris 5.
How to fix this error?
Thanks
For JDK1.4 there is a simple solution: pit -Djava.awt.headeless=true on your command line which starts java application
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
But you could probably make it work at boottime if you played around with Xvfb or maybe with VNC - but you should reconsider trying to start it at boottime.