H
hrpreet
Hi All,
I'm trying to run a standalone application on solaris machine
,encountered the following problem.
How to go about it.
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.<clinit>(X11GraphicsEnvironment.java:1
34)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:141)
at
java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment(GraphicsEnvi
ronment.java:62)
at sun.awt.motif.MToolkit.<clinit>(MToolkit.java:81)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:141)
at java.awt.Toolkit$2.run(Toolkit.java:748)
at java.security.AccessController.doPrivileged(Native Method)
at java.awt.Toolkit.getDefaultToolkit(Toolkit.java:739)
at java.awt.Toolkit.getEventQueue(Toolkit.java:1519)
at java.awt.EventQueue.isDispatchThread(EventQueue.java:651)
at
javax.swing.SwingUtilities.isEventDispatchThread(SwingUtilities.java:
1238)
at javax.swing.text.StyleContext.reclaim(StyleContext.java:419)
at
javax.swing.text.StyleContext.addAttribute(StyleContext.java:276)
at
javax.swing.text.html.StyleSheet.addAttribute(StyleSheet.java:538)
at
javax.swing.text.StyleContext$NamedStyle.addAttribute(StyleContext.ja
va:1468)
at
javax.swing.text.StyleContext$NamedStyle.setName(StyleContext.java:12
78)
at
javax.swing.text.StyleContext$NamedStyle.<init>(StyleContext.java:122
6)
at javax.swing.text.StyleContext.addStyle(StyleContext.java:88)
at javax.swing.text.StyleContext.<init>(StyleContext.java:68)
at javax.swing.text.html.StyleSheet.<init>(StyleSheet.java:147)
at
javax.swing.text.html.HTMLEditorKit.getStyleSheet(HTMLEditorKit.java:
355)
at
javax.swing.text.html.HTMLEditorKit.createDefaultDocument(HTMLEditorK
it.java:186)
at SolMetaTag.main(SolMetaTag.java:33)
Thanks
I'm trying to run a standalone application on solaris machine
,encountered the following problem.
How to go about it.
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.<clinit>(X11GraphicsEnvironment.java:1
34)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:141)
at
java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment(GraphicsEnvi
ronment.java:62)
at sun.awt.motif.MToolkit.<clinit>(MToolkit.java:81)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:141)
at java.awt.Toolkit$2.run(Toolkit.java:748)
at java.security.AccessController.doPrivileged(Native Method)
at java.awt.Toolkit.getDefaultToolkit(Toolkit.java:739)
at java.awt.Toolkit.getEventQueue(Toolkit.java:1519)
at java.awt.EventQueue.isDispatchThread(EventQueue.java:651)
at
javax.swing.SwingUtilities.isEventDispatchThread(SwingUtilities.java:
1238)
at javax.swing.text.StyleContext.reclaim(StyleContext.java:419)
at
javax.swing.text.StyleContext.addAttribute(StyleContext.java:276)
at
javax.swing.text.html.StyleSheet.addAttribute(StyleSheet.java:538)
at
javax.swing.text.StyleContext$NamedStyle.addAttribute(StyleContext.ja
va:1468)
at
javax.swing.text.StyleContext$NamedStyle.setName(StyleContext.java:12
78)
at
javax.swing.text.StyleContext$NamedStyle.<init>(StyleContext.java:122
6)
at javax.swing.text.StyleContext.addStyle(StyleContext.java:88)
at javax.swing.text.StyleContext.<init>(StyleContext.java:68)
at javax.swing.text.html.StyleSheet.<init>(StyleSheet.java:147)
at
javax.swing.text.html.HTMLEditorKit.getStyleSheet(HTMLEditorKit.java:
355)
at
javax.swing.text.html.HTMLEditorKit.createDefaultDocument(HTMLEditorK
it.java:186)
at SolMetaTag.main(SolMetaTag.java:33)
Thanks