Solved

Can't connect to X11 Windows when run swing

Posted on 2004-08-23
4
268 Views
Last Modified: 2013-12-27
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
0
Comment
Question by:glory_k
4 Comments
 
LVL 10

Expert Comment

by:Nukfror
ID: 11871886
Its not an error - the problem is there isn't an Xserver at boot time.  Since your applicaton wants to talk to an Xserver you really need to ask yourself if its really appropriate to try to start it up in the rc3.d scripts in the first place - IMHO the answer is no.  Boottime applications shouldn't be expecting to talk to an Xserver.

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.
0
 
LVL 19

Expert Comment

by:ramazanyich
ID: 11875903
For JDK1.4 there is a simple solution: pit -Djava.awt.headeless=true on your command line which starts java application
0
 

Accepted Solution

by:
CetusMOD earned 0 total points
ID: 12211290
PAQed - no points refunded (of 20)

CetusMOD
Community Support Moderator
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

I have been running these systems for a few years now and I am just very happy with them.   I just wanted to share the manual that I have created for upgrades and other things.  Oooh yes! FreeBSD makes me happy (as a server), no maintenance and I al…
Java performance on Solaris - Managing CPUs There are various resource controls in operating system which directly/indirectly influence the performance of application. one of the most important resource controls is "CPU".   In a multithreaded…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:

760 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now