|
|
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.0This 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: |
|
| Next: |
|
| ||||||||
|
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 |
|||||||||||||||||
|
|||||||||||||||||