In the unix environment I am developing an application using JBoss server. I am using HTMLEditorKit, BufferedImage and JPEGImageEncoder. Instead of an image, I am getting a blank jpeg in the output. I tried to set the System property headless=true in the java file. It did not work.
Will it work if the system property is set in the JBoss properties file? Is this related to XServer?
Any info on how to get this working would be greatly appreciated.
Thank you for the quick reply. I have tried the headless option. I did not get any exceptions, but I did not get the image, just a blank jpeg. I would like to try Xvfb. Can you please let me know how to use Xfvb. I am using java 1.4.1, jboss 4.0 and UNIX.
Xvfb is easy to use. You just run it like "Xvfb :2 &", and that gives you an X display named ":2". So you can then just run "DISPLAY=:2 jboss.sh" or whatever you need. Works very well and very easy to do.
Where do I start? Do I have to download anything to run Xvfb or can I just type it up in bash? I am relatively new to X concepts. Is there any better way to work with graphics on UNIX. Please let me know.
Well, it should be in /usr/X11R6/bin . If it's not, then you'll have to ask your sysadmin to install it, because the way it's written, the location is hard-coded into the binary itself. To compile it from scratch, you need the full X11R6 sources, and that's not something to be undertaken lightly!