0 Replies Latest reply: Feb 19, 2010 10:16 AM by 843804 RSS

    jar application for sun server

    843804
      dears
      i'm trying to build a sample java application to run it on sun server. i'm using netbeans 6.5 to build the application using windows environment.
      unfortunately, when i'm trying to run it on sun server i receive this error "

      {code}
      Exception in thread "main" java.lang.InternalError: Can't connect to X11 window server using '192.168.7.40:0' as the value of the DISPLAY variable.
      at sun.awt.X11GraphicsEnvironment.initDisplay(Native Method)
      at sun.awt.X11GraphicsEnvironment.access$000(X11GraphicsEnvironment.java:53)
      at sun.awt.X11GraphicsEnvironment$1.run(X11GraphicsEnvironment.java:142)
      at java.security.AccessController.doPrivileged(Native Method)
      at sun.awt.X11GraphicsEnvironment.<clinit>(X11GraphicsEnvironment.java:131)
      at java.lang.Class.forName0(Native Method)
      at java.lang.Class.forName(Class.java:164)
      at java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment(GraphicsEnvironment.java:68)
      at java.awt.Window.init(Window.java:271)
      at java.awt.Window.<init>(Window.java:319)
      at java.awt.Frame.<init>(Frame.java:419)
      at java.awt.Frame.<init>(Frame.java:384)
      at javax.swing.JFrame.<init>(JFrame.java:145)
      at uumixer.UUmixer.<init>(UUmixer.java:23)
      at uumixer.UUmixer.main(UUmixer.java:21)

      {code}

      note: i didn't use any interface of GUI, this the first time that i use sun server


      plz its urgent