Menu

Problem in using jwap in embedded system

Help
Action
2007-04-18
2013-04-17
  • Action

    Action - 2007-04-18

    I am using jwap in the arm platform(S3C2410), my program works well in both Windows and Linux(FC6 JDK1.4),and I used
    Blackdown JVM 1.3 as the JVM in the arm board,
    I met this problem when the jwap thread started
    Is X11 environment a must in the arm board to run program using jwap.jar?
    Anyone has encountered similar problem? or know the answer?
    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:59)
            at java.lang.Class.forName0(Native Method)
            at java.lang.Class.forName(Class.java:120)
            at java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment(GraphicsEnvironment.java:58)
            at sun.awt.motif.MToolkit.<clinit>(MToolkit.java:57)
            at java.lang.Class.forName0(Native Method)
            at java.lang.Class.forName(Class.java:120)
            at java.awt.Toolkit$2.run(Toolkit.java:512)
            at java.security.AccessController.doPrivileged(Native Method)
            at java.awt.Toolkit.getDefaultToolkit(Toolkit.java:503)
            at java.awt.Toolkit.getEventQueue(Toolkit.java:1150)
            at java.awt.EventQueue.invokeLater(EventQueue.java:511)
            at javax.swing.SwingUtilities.invokeLater(SwingUtilities.java:1091)
            at javax.swing.Timer.post(Timer.java:342)
            at javax.swing.TimerQueue.postExpiredTimers(TimerQueue.java:195)
            at javax.swing.TimerQueue.run(TimerQueue.java:231)
            at java.lang.Thread.run(Thread.java:484)

     
    • Niko Bender

      Niko Bender - 2007-04-18

      I think this is not related to jwap, but to your application which needs some GUI. You should set the DISPLAY Variable ("DISPLAY=localhost:0.0" or similar, just google for it).´

      Niko

       

Log in to post a comment.