hi everyone,
i have written a servlet that works wonderful on my localmachine. but i have
big problems running it at startcom.org:
the piece of code where all happens:
private BufferedImage img = new BufferedImage(WIDTH,HEIGHT,
BufferedImage.TYPE_INT_RGB);
private Graphics kurvenGraphics = img.getGraphics();
the stacktrace of the server (see it at
http://gibbsnich.startcom.org:4080/maw/kurve?page=img&xWert1=-20&yWert1=-20&
xWert2=0&yWert2=0&func=x2):
java.lang.NoClassDefFoundError
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:120)
at
java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment(GraphicsEnvironment
.java:58)
at java.awt.image.BufferedImage.createGraphics(BufferedImage.java:1011)
at java.awt.image.BufferedImage.getGraphics(BufferedImage.java:1001)
at maw.kurve.Kurve.<init>(KurvenServlet.java:123)
at maw.kurve.KurvenServlet.printImagePage(KurvenServlet.java:79)
at maw.kurve.KurvenServlet.doGet(KurvenServlet.java:68)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:865)
in java.awt.GraphicsEnvironment this seems to be the important part:
String nm = (String) java.security.AccessController.doPrivileged (new
sun.security.action.GetPropertyAction ("java.awt.graphicsenv", null));
...
localEnv = (GraphicsEnvironment) Class.forName(nm).newInstance();
...
the webmaster of startcom.org told me that the problem is that they don't
run a x-window-server on their server. now my question is what can i do to
create a BufferedImage without the need of a x-window-server (i prefer
windows so i don't know why a x-window-server is actually needed to create a
GraphicsEnvironment object, maybe somebody can explain me that, too)?
thanks in advance!
Michael Weller
___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".
Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html