Solved

Can't connect to X11 Windows when run swing

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

DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

Question has a verified solution.

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

In tuning file systems on the Solaris Operating System, changing some parameters of a file system usually destroys the data on it. For instance, changing the cache segment block size in the volume of a T3 requires that you delete the existing volu…
A metadevice consists of one or more devices (slices). It can be expanded by adding slices. Then, it can be grown to fill a larger space while the file system is in use. However, not all UNIX file systems (UFS) can be expanded this way. The conca…
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
In a previous video, we went over how to export a DynamoDB table into Amazon S3.  In this video, we show how to load the export from S3 into a DynamoDB table.

777 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