Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Can't connect to X11 Windows when run swing

Posted on 2004-08-23
4
Medium Priority
?
320 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Question has a verified solution.

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

This tech tip describes how to install the Solaris Operating System from a tape backup that was created using the Solaris flash archive utility. I have used this procedure on the Solaris 8 and 9 OS, and it shoudl also work well on the Solaris 10 rel…
Every server (virtual or physical) needs a console: and the console can be provided through hardware directly connected, software for remote connections, local connections, through a KVM, etc. This document explains the different types of consol…
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.:
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…
Suggested Courses

596 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