I Cannot run jar file in kubuntu terminal
===

I thinks it is some problems in my java installation but i don't know what is the problem and how can i fix it

I can run jar file with openjdk in visual mode but in terminal i cannot run jar files
for example you can see this below


    root@mohammad-Inspiron-1564:/media/storage/Linux/Freedom# java -jar freedom.jar 
    No protocol specified
    No protocol specified
    Exception in thread "main" java.lang.InternalError: Can't connect to X11 window server using ':0' as the value of the DISPLAY variable.
            at sun.awt.X11GraphicsEnvironment.initDisplay(Native Method)
            at sun.awt.X11GraphicsEnvironment.access$200(X11GraphicsEnvironment.java:65)
            at sun.awt.X11GraphicsEnvironment$1.run(X11GraphicsEnvironment.java:110)
            at java.security.AccessController.doPrivileged(Native Method)
            at sun.awt.X11GraphicsEnvironment.<clinit>(X11GraphicsEnvironment.java:74)
            at java.lang.Class.forName0(Native Method)
            at java.lang.Class.forName(Class.java:186)
            at java.awt.GraphicsEnvironment.createGE(GraphicsEnvironment.java:102)
            at java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment(GraphicsEnvironment.java:81)
            at java.awt.Window.initGC(Window.java:466)
            at java.awt.Window.init(Window.java:486)
            at java.awt.Window.<init>(Window.java:535)
            at java.awt.Frame.<init>(Frame.java:420)
            at javax.swing.JFrame.<init>(JFrame.java:218)
            at de.resolution.emsgui.LanguageSelector.showButtonGrid(LanguageSelector.java:27)
            at de.resolution.emsgui.LanguageSelector.<init>(LanguageSelector.java:19)
            at emsgui.main(emsgui.java:46)

perhaps i should re-install mu kubuntu :((

thnx
Mohammad
