com.twelvemonkeys.servlet.image.package.html Maven / Gradle / Ivy
Contains various image-outputting servlets, that should run under any servlet engine. To create your own image servlet, simply subclass the servlet
ImageServlet
. Optionally implement the interface
ImagePainterServlet
, if you want to do painting.
Some of these methods may require use of the native graphics libraries
supported by the JVM, like the X libraries on Unix systems, and should be
run with JRE 1.4 or later, and with the option:
-Djawa.awt.headless=true
See the document
AWT Enhancements and bugtraq report
4281163 for more information on this issue.
If you cannot use JRE 1.4 for any reason, or do not want to use the X
libraries, a possibilty is to use the
PJA package (com.eteks.pja),
and start the JVM with the following options:
-Xbootclasspath/a:<path to pja.jar>
-Dawt.toolkit=com.eteks.awt.PJAToolkit
-Djava.awt.graphicsenv=com.eteks.java2d.PJAGraphicsEnvironment
-Djava.awt.fonts=<path where True Type fonts files will be loaded from>
Please note that creation of PNG images (from bytes or URL's) are only
supported in JRE 1.3 and later, trying to load them from an earlier version,
will result in errors.
@see com.twelvemonkeys.servlet.image.ImageServlet
@see com.twelvemonkeys.servlet.image.ImagePainterServlet
© 2015 - 2025 Weber Informatics LLC | Privacy Policy