Hi,
We are trying to generate excel files on AS400 using POI
While most of the functionality is working we have run into an issues with 
autoSizeColumn. 
I am getting this following error ONLY on AS400 (It works fine on Windows box)
------------------------------------------------------------------------------
Exception in thread "main" java.lang.InternalError: Can't connect to X11 window 
server using ':0.0' as the value of the DISPLAY vari
able.      
 at sun.awt.X11GraphicsEnvironment.initDisplay(Native Method)    
 at sun.awt.X11GraphicsEnvironment.access$000(X11GraphicsEnvironment.java:95) 
 at sun.awt.X11GraphicsEnvironment$1.run(X11GraphicsEnvironment.java:184)   
 at java.security.AccessController.doPrivileged(AccessController.java:192)  
 at sun.awt.X11GraphicsEnvironment.<clinit>(X11GraphicsEnvironment.java:173) 
 at java.lang.J9VMInternals.initializeImpl(Native Method)      
 at java.lang.J9VMInternals.initialize(J9VMInternals.java:196)   
 at java.lang.Class.forNameImpl(Native Method)
 at java.lang.Class.forName(Class.java:130)  
 at 
java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment
(GraphicsEnvironment.java:102)     
 at sun.font.FontManager.initSGEnv(FontManager.java:964)      
 at sun.font.FontManager.findFont2D(FontManager.java:1126)     
 at java.awt.Font.getFont2D(Font.java:392)  
 at java.awt.Font.canDisplay(Font.java:1779) 
 at java.awt.Font.canDisplayUpTo(Font.java:1844)     
 at java.awt.font.TextLayout.singleFont(TextLayout.java:578)    
 at java.awt.font.TextLayout.<init>(TextLayout.java:636)      
 -----------------------------------------------------------------------------
I am not trying to display anything ...so don't understand why the code is 
trying to obtain display.
Can someone please help!

Regards
Arunim


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to