Thanks for all help in advanced,
Steve
>I'm trying to do some image manipulation (mainly resizing images) in a
>Linux Servlet/JSP environment, to do that I use the Java 2D API. This
>works fine on my Windows development PC, but does not work on an
>X-less Linux hosting platform. My hosting company is not running X
>and has no plans to do so.
>So my question is, it is possible to use the Java 2D API on a Linux
>box without an X server running?
See www.geocities.com/marcoschmidt.geo/java-image-coding.html#X
It's more about loading images, but you may find it interesting
nonetheless.
Please regard f'up2.
Regards,
Marco
--
Java programming tips (last modified 2001-05-17):
http://jiu.sf.net/javatips.html
--
- Torgeir
Which leads me to this question:
How is everyone else deploying servlet/JSP applications on headless
(w/out graphics) Unix/Linux servers (without running X or xbvf) where
the application can resize and alter images.
Thanks,
Steve
FYI, the offical Sun bug is at:
http://developer.java.sun.com/developer/bugParade/bugs/4281163.html
(login required)
Under the comments section, many people are cranky about this problem.
>I'm trying to do some image manipulation (mainly resizing images) in a
>Linux Servlet/JSP environment, to do that I use the Java 2D API. This
>works fine on my Windows development PC, but does not work on an
>X-less Linux hosting platform. My hosting company is not running X
>and has no plans to do so.
>So my question is, it is possible to use the Java 2D API on a Linux
>box without an X server running?
No.
We are doing generating images in servlet environment, too (Apache,
Jserv, RedHat Linux 6.2).
We are using java2d as well as 3rd party packages (kavasoft I think)
and this requires the X server to be running.
Btw. One needs to have the X server running prior to the start of the
java code / servlet.
So, sorry about that, but we didn't find any other solution.
Carsten.
You could run a virtual frame buffer (Xvfb).
Roger Lindsjö
regards
christian
Also, headless rendering in unix is supported in jdk1.4.
--
- Torgeir