That still won't help in a server environment where X may not even be 
installed. I believe JDK 1.4 introduced the ability to do some of these 
operations to an offscreen buffer - check out the what's new if you are 
interested.

- Brett

Richard Yee wrote:
> Micael,
> Is your display variable set to the machine that you are running on? It 
> should be <the IP address of your machine>:0.0.
> 
> Regards,
> 
> Richard
> 
> At 10:15 PM 5/12/2002 -0700, you 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]>


-- 
| Brett Porter <[EMAIL PROTECTED]> .
. f2 network ~ everything essential      |
                                         --



--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to