Hi, In a previous project we used JAI on JDK 1.3 with struts to do JPG resizing/scaling and modifications on a java.awt.image.RenderedImage without any X11 side effects, so your assumption that it is a JDk 1.4 thing may be correct. (We are using this code on Win2k, Solaris8 & Red Hat Linux)
Cheers Duke On Mon, 2002-05-13 at 15:15, Micael Padraig Og mac Grene wrote: > I presently am having difficulty using the awt with servlets to do image > reconstruction work on a RedHat 7.2 Linux platfrom, because I get the > following exception, which some think is a bug in JDK 1.4, but seems to be > something Sun has tolerated intentionally > > 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><>(11GraphicsEnvironment.java:126) > at java.lang.Class.forName0(Native Method) > at java.lang.Class.forName(Class.java:130) > at java.awt.Toolkit#2.run(Toolket.java:712) > at java.security.AccessController.doPrivileged(Native Method) > at java.awt.Toolkit.getDefaultToolkit(Toolkit.java:703) > at javax.swing.ImageIcon.(init>(ImageIcon.java:81) > at javax.swing.ImageIcon.<init>(ImageIcon.java:107) > > My "ps aux" says: > > /etc/X11/X -auth /var/lib/kdm/authfiles/A:0-0Dqymv > > for the X11 server. Does anyone have an idea what I need to do at this > point? Everything works on a pc, of course. > > This is not strictly a struts problem, of course, but it is something that > struts users that deal with multimedia will need to deal with since it is > essentially a server side problem. I have no problem with leaving an X11 > server running to make this work. I cannot live with the client having to > do anything special. The problem is that I don't want to use the graphics > but do want to access the graphic functionality. > > Thanks for any assistance. > > Micael > > P.S. If you don't understand the above, please do not offer > suggestions. Thanks for that too. > > > > -- > To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> > For additional commands, e-mail: <mailto:[EMAIL PROTECTED]> > -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

