I need your help! What I want to do is that my Java program is running on Linux and called from telnet. The program will just draw some charts and save them as PNG file by using a pure java PNG encoder, WITHOUT displaying. But when I run it using telnet, I got this:
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 java.lang.Class.forName0(Native Method)
But if I run it from a X window on linux it will be ok. Is there any way that can help me to run my program from telnet. I am not good at linux and x server, so i do need your help! Thanks