Java Mailing List Archive

http://www.junlu.com/

Home » Home (12/2007) » Tomcat Users »

RES: Off-topic - Java and X11 Window Server

Jose Euclides da Silva Junior - DATAPREVRJ

2004-01-07


Dear Patrick,
Where (and HOW ) should i set it?
Thanks in advance,
José Euclides Junior
Projeto DOP201
Infra-estrutura J2EE para as aplicações corporativas da Previdência Social


-----Mensagem original-----
De: Patrick Willart [mailto:patrick@(protected)]
Enviada em: quarta-feira, 7 de janeiro de 2004 16:51
Para: Tomcat Users List
Assunto: RE: Off-topic - Java and X11 Window Server


I am not an expert on any *nix system, but faced the same problem once.

I had to set to DISPLAY varirable to :1.0 (export DISPLAY=:1.0). It is
important that this is set for the same user that is running Tomcat.

grts,

Patrick

-----Original Message-----
From: Jose Euclides da Silva Junior - DATAPREVRJ
[mailto:Jose.Euclides@(protected)]
Sent: Wednesday, January 07, 2004 10:55 AM
To: 'tomcat-user@(protected)'
Subject: Off-topic - Java and X11 Window Server


Hi guys,
Have anybody ever seen this error before? The X11 seems to be alive at my
environment --> Conectiva Linux. The target Java app,GraficoBig, works with
a free package, called org.jfree.char and org.jfree.gui.

500 Internal Server Error
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:54)
 at java.lang.Class.forName0(Native Method)
 at java.lang.Class.forName (Class.java:115)
 at
java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment(GraphicsEnvironment
.java:53)
 at java.awt.Window.<init>(Window.java:183)
 at java.awt.Frame.<init>(Frame.java:310)
 at java.awt.Frame.<init>(Frame.java:289)
 at javax.swing.JFrame.<init>(JFrame.java:167)
 at org.jfree.ui.ApplicationFrame.<init>(Unknown Source)
 at mypackage2.GraficoBig.<init>(GraficoBig.java:26)
 at _Jspbig._jspService(_Jspbig.java:128)
 [SRC:Jspbig.jsp:118]
regards,
José Euclides Junior
Projeto DOP201
Infra-estrutura J2EE para as aplicações corporativas da Previdência Social



---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@(protected)
For additional commands, e-mail: tomcat-user-help@(protected)


---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@(protected)
For additional commands, e-mail: tomcat-user-help@(protected)


---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@(protected)
For additional commands, e-mail: tomcat-user-help@(protected)



©2008 junlu.com - Jax Systems, LLC, U.S.A.