java.lang.NoClassDefFoundError: sun.awt.X11GraphicsEnvironment (initializat

Can anybody help me with this..java.lang.NoClassDefFoundError: sun.awt.X11GraphicsEnvironment (initialization failure)Thanks in AdvanceWilly
[168 byte] By [Willy_Wilsona] at [2007-11-27 6:12:02]
# 1
hum... wide questionGive more details or google: http://www.jguru.com/forums/view.jsp?EID=458349
oropezaa at 2007-7-12 17:18:52 > top of Java-index,Java Essentials,Java Programming...
# 2

Thanks,

Actually i am running a class (basically sub-class of JFrame) & generating a report displayed in that window, this window has a funtionality to generate a csv file & save it to defined location. The report is generated once in a day at particular time & when i running it at the server(unix box) it throws the error. But it works fine when i run it in my local machine. I am turning off the display option when running remotely, so that it will only create a csv file & saves.

Just wanted to know is there a way i can avoid this thing, like some validation in my code which will overlook this exception or which will not raise this exception.

Thanks in Advance

Willy

Willy_Wilsona at 2007-7-12 17:18:52 > top of Java-index,Java Essentials,Java Programming...
# 3

how do i avoid this exception? It always throws this exception when i try to run it remotely. From the above link i found out that it's the display prop which is responsible for it ,since heavyweights use native interface for display.

It always throws exception at the constructor, is there a way to avoid this thing from my code or set the prop remotely. I have tried couple of things like setProperty to true for headless mode & so.. but its not working.

It's sub-class of JFrame & display for it turned off when running it remotely. Basically it produces a report in tabular form & from it i trying to generate CSV file & save to specified location. It runs fine in local.

Can anybody help with this, its urgent?

Thanks in Advance

Willy

Willy_Wilsona at 2007-7-12 17:18:52 > top of Java-index,Java Essentials,Java Programming...