(Answer) (Category) FAQ-O-Matic : (Category) Linux- and Solaris-specific : (Category) Installation :
Exception in thread "main" java.lang.InternalError: Can't connect to X11window server using ':0.0' as the value of the DISPLAY variable.
X11 protocols can use several different connection methods to make connections between an X11 application and the X11 server controlling the display. If you set DISPLAY=hostname:0.0, X11 uses an IP network socket to make the connection. If you set DISPLAY=:0.0, X11 assumes the machine running the application is also running the display, and it uses a 'unix' socket instead.

Sun's JVM will use only IP Network sockets to access the display. So, you must set the DISPLAY variable to contain either the hostname, or its ip address.

So,

   export DISPLAY=tardis.aravox.com:0.0

works, but

   export DISPLAY=:0.0

will not.

Many login scripts use the latter by default because it's faster.

I use a custom JB launcher which, among other things, overrides Red Hat's default DISPLAY setting with one suitable for Java:

  export DISPLAY=`uname -n`:0.0
This gets it set properly no matter what machine I move that script to.
2001-Nov-18 12:21pm gyles19@visi.com
[Append to This Answer]
2001-Nov-18 12:21pm
Previous: (Answer) On what Linux distributions does Sun support SDK 1.3.1?
Next: (Answer) What is JBCheck and what does it do?
This document is: http://www.visi.com/~gyles19/cgi-bin/fom.cgi?file=288
[Search] [Appearance]
This is a Faq-O-Matic 2.709.
This FAQ administered by gyles19@visi.com.

Other JBuilder Links

Java Community
Java Tools
Code Central
JB OpenTools
Community
Recent
Threads
Borland Chat
Chat FAQ
Feature Matrices
3.0 |  3.5 |  4.0
5.0 |  6.0 |  7.0
Shop for
JBuilder
JBuilder
Downloads
and reg keys
Report Piracy
Online Manuals
4.0 |  5.0 |  6.0
7.0
Borland
DevSupport's
Bug/RFE Form

Quality Central Client
JB Patches &
Updates
JBuilder FAQs TIs
JBuilder
Newsgroups
Tamaracka's
News Archive
Mr. Haki's
JBuilder Machine
JGuru's
JBuilder FAQ
Sun's Bug
Parade
Netring Home - About - Privacy
The
JBuilder Netring Logo
The Borland JBuilder Netring by JBuilder FAQ-O-Matic
[ Join Now | List Sites | Random | << Prev | Next >> ]
[ Previous 5 Sites | Skip Previous | Skip Next | Next 5 Sites ]