Solved

Can't connect to X11 Windows when run swing

Posted on 2004-08-23
4
289 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

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Attention: This article will no longer be maintained. If you have any questions, please feel free to mail me. jgh@FreeBSD.org Please see http://www.freebsd.org/doc/en_US.ISO8859-1/articles/freebsd-update-server/ for the updated article. It is avail…
When you do backups in the Solaris Operating System, the file system must be inactive. Otherwise, the output may be inconsistent. A file system is inactive when it's unmounted or it's write-locked by the operating system. Although the fssnap utility…
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…
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.

856 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