jedit doesn't work with root
Submitted by Wednesday, 14 October, 2009 - 17:50
on
when i'm trying to start jedit with root, i getting error, but when starting with simple user it works! error here:
[root@tomas tomas]# jedit
No protocol specified
[error] main: Exception in thread "main"
[error] main: java.lang.InternalError: Can't connect to X11 window server using ':0.0' as the value of the DISPLAY variable.
[error] main: at sun.awt.X11GraphicsEnvironment.initDisplay(Native Method)
[error] main: at sun.awt.X11GraphicsEnvironment.access$100(X11GraphicsEnvironment.java:52)
[error] main: at sun.awt.X11GraphicsEnvironment$1.run(X11GraphicsEnvironment.java:155)
[error] main: at java.security.AccessController.doPrivileged(Native Method)
[error] main: at sun.awt.X11GraphicsEnvironment.(X11GraphicsEnvironment.java:131)
[error] main: at java.lang.Class.forName0(Native Method)
[error] main: at java.lang.Class.forName(Class.java:169)
[error] main: at java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment(GraphicsEnvironment.java:68)
[error] main: at javax.swing.RepaintManager.(RepaintManager.java:179)
[error] main: at javax.swing.JComponent.repaint(JComponent.java:4734)
[error] main: at java.awt.Component.repaint(Component.java:3081)
[error] main: at javax.swing.JComponent.setBackground(JComponent.java:2705)
[error] main: at org.gjt.sp.jedit.gui.SplashScreen.(SplashScreen.java:35)
[error] main: at org.gjt.sp.jedit.GUIUtilities.showSplashScreen(GUIUtilities.java:1519)
[error] main: at org.gjt.sp.jedit.jEdit.main(jEdit.java:299)
can anybody help me? Arch Linux