Computing.Net > Forums > Unix > running awt program on unix

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

running awt program on unix

Reply to Message Icon

Name: ksrao123
Date: April 21, 2004 at 08:06:23 Pacific
OS: Unix
CPU/Ram: P 3
Comment:

Hello

I am running simple awt program on windows successfully but when i run the same program on unix i am getting the following error
can any one help me please??

Exception in thread "main" java.lang.InternalError: Can't connect to X11 window server using ':0.0' as the value of the DISPLAY variable.
at sun.awt.X11GraphicsEnvironment.initDisplay(Native Method)
at sun.awt.X11GraphicsEnvironment.<clinit>(X11GraphicsEnvironment.java:54)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:115)
at java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment(GraphicsEnvironment.java:53)
at java.awt.Window.<init>(Window.java:183)
at java.awt.Frame.<init>(Frame.java:310)
at java.awt.Frame.<init>(Frame.java:289)
at ToolbarFrame1.<init>(ToolbarFrame1.java:15)
at ToolbarFrame1.main(ToolbarFrame1.java:42)



Sponsored Link
Ads by Google

Response Number 1
Name: Dlonra
Date: April 21, 2004 at 17:26:29 Pacific
Reply:

as root (probably in another window)
xhost +

still not work?, try
export DISPLAY=localhost:0.0 in java window



0
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Unix Forum Home


Sponsored links

Ads by Google


Results for: running awt program on unix

running MAC, DOS/Windoze, SGI on Unix www.computing.net/answers/unix/running-mac-doswindoze-sgi-on-unix/1528.html

info on unix www.computing.net/answers/unix/info-on-unix/2741.html

Looking for info on Unix Database called www.computing.net/answers/unix/looking-for-info-on-unix-database-called/1984.html