I've been trying to install LaTeXDraw2.0.0, a java program for generating graphics in LaTeX, using the instructions in the readme file for running the program directly, but no joy. (I get same result if I try to run the installer.)
My result:
root@DD:/usr/share/latexdraw/data# sudo java -jar LaTeXDraw.jar
No protocol specified
Exception 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.access$100(X11Graph icsEnvironment.java:60)
at sun.awt.X11GraphicsEnvironment$1.run(X11GraphicsEn vironment.java:164)
at java.security.AccessController.doPrivileged(Native Method)
at sun.awt.X11GraphicsEnvironment.<clinit>(X11Graphic sEnvironment.java:140)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:186)
at java.awt.GraphicsEnvironment.getLocalGraphicsEnvir onment(GraphicsEnvironment.java:82)
at sun.awt.X11.XToolkit.<clinit>(XToolkit.java:106)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:186)
at java.awt.Toolkit$2.run(Toolkit.java:849)
at java.security.AccessController.doPrivileged(Native Method)
at java.awt.Toolkit.getDefaultToolkit(Toolkit.java:84 1)
at com.sun.java.swing.plaf.gtk.GTKLookAndFeel.isSuppo rtedLookAndFeel(GTKLookAndFeel.java:1536)
at javax.swing.UIManager.setLookAndFeel(UIManager.jav a:530)
at javax.swing.UIManager.setLookAndFeel(UIManager.jav a:589)
at latexDraw.ui.LaTeXDrawFrame.<clinit>(LaTeXDrawFram e.java:379)
at latexDraw.ui.LaTeXDraw.main(LaTeXDraw.java:36)
TIA
My result:
root@DD:/usr/share/latexdraw/data# sudo java -jar LaTeXDraw.jar
No protocol specified
Exception 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.access$100(X11Graph icsEnvironment.java:60)
at sun.awt.X11GraphicsEnvironment$1.run(X11GraphicsEn vironment.java:164)
at java.security.AccessController.doPrivileged(Native Method)
at sun.awt.X11GraphicsEnvironment.<clinit>(X11Graphic sEnvironment.java:140)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:186)
at java.awt.GraphicsEnvironment.getLocalGraphicsEnvir onment(GraphicsEnvironment.java:82)
at sun.awt.X11.XToolkit.<clinit>(XToolkit.java:106)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:186)
at java.awt.Toolkit$2.run(Toolkit.java:849)
at java.security.AccessController.doPrivileged(Native Method)
at java.awt.Toolkit.getDefaultToolkit(Toolkit.java:84 1)
at com.sun.java.swing.plaf.gtk.GTKLookAndFeel.isSuppo rtedLookAndFeel(GTKLookAndFeel.java:1536)
at javax.swing.UIManager.setLookAndFeel(UIManager.jav a:530)
at javax.swing.UIManager.setLookAndFeel(UIManager.jav a:589)
at latexDraw.ui.LaTeXDrawFrame.<clinit>(LaTeXDrawFram e.java:379)
at latexDraw.ui.LaTeXDraw.main(LaTeXDraw.java:36)
TIA