|
Hi...
I'm using Solaris.
And I wanna make GIF file from DB.
To do this
frame = new
Frame("");
frame.addNotify(); Image image = frame.createImage(ct.width, ct.height); I use above ..
My work Space is Windows 2000.
I compile and run successly at my computer
locally.
But When I upload my file.
Compile at there.
I Don't get successful result.
The problem is
"frame.addNotify()"
I think that function is not for X11.
the error message is
-----------------------------------------------------------------------
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 <Unloaded Method> at java.lang.Class.forName0(Native Method) at java.lang.Class.forName0(Compiled Code) at java.lang.Class.forName(Compiled Code) at java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment(GraphicsEnvi ronment.java:63) at <Unloaded Method> at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:125) at java.awt.Toolkit$2.run(Toolkit.java:499) at java.security.AccessController.doPrivileged(Native Method) at java.awt.Toolkit.getDefaultToolkit(Toolkit.java:492) at java.awt.Window.getToolkit(Window.java:401) at java.awt.Frame.addNotify(Frame.java:274) at trade.common.graph.GraphMain.<init>(GraphMain.java:40) at trade.common.graph.GraphMain.main(GraphMain.java:90) ------------------------------------------------------------------------------ What can I do?
I try to set DISPLAY parameter.
first
unsetenv DISPLAY
Don't work. the same
result
second
setenv DISPLAY 0:0
It stops (exactly
sleeps) at frame.addNotify()
third
setenv DISPLAY localhost:0.0
It stops (exactly sleeps) at frame.addNotify()
This is the all I know.
How Can I fix the problem?
========================
Thanks in advance, Shin Wooksoo |
- Re: [JAVA2D] Image Object Creation 신욱수
- Re: [JAVA2D] Image Object Creation Robbie Baldock
