If you're running this from a shell you should be able to do
export DISPLAY=<hostname>:0.0
Then start your app and it will find the variable named DISPLAY.
-M@
On Fri, 29 Mar 2002, xuguang chen wrote:
> Hi everyone,
> Does anyone know how to set DISPLAY VARIABLE?My ipaq give me the following
> error message:eption 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:5
> 9)
> at java.lang.Class.forName0(Native Method)
> at java.lang.Class.forName(Class.java:120)
> at
> java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment(GraphicsEnvi
> ronment.java:58)
> at java.awt.Window.<init>(Window.java:186)
> at java.awt.Frame.<init>(Frame.java:315)
> at java.awt.Frame.<init>(Frame.java:294)
> at javax.swing.JFrame.<init>(JFrame.java:172)
> at SwingHello.<init>(SwingHello.java:14)
> at SwingHello.main(SwingHello.java:43)
> Thanks.
> Chen
>
>
> _________________________________________________________________
> MSN Photos is the easiest way to share and print your photos:
> http://photos.msn.com/support/worldwide.aspx
>
> _______________________________________________
> The Familiar Linux Distribution
> Familiar mailing list
> Familiar@handhelds.org
> http://handhelds.org/mailman/listinfo/familiar
> irc://irc.openprojects.net #familiar
>
Received on Fri Mar 29 02:16:41 2002
This archive was generated by hypermail 2.1.8 : Tue May 04 2004 - 09:44:42 EDT