BufferedImage.createGraphics() from a servlet
Roberto Nunnari
roberto.nunnari at supsi.ch
Tue Dec 21 17:21:11 PST 2004
Hi all.
I'm having trouble running a simple servlet that does the
following:
BufferedImage image = new BufferedImage(100, 20, BufferedImage.TYPE_3BYTE_BGR);
Graphics2D g = image.createGraphics();
This are the facts:
-bash-2.05b# uname -a
FreeBSD jupiter.noonlights.net 5.2.1-RELEASE-p9 FreeBSD 5.2.1-RELEASE-p9 #3: Sat
Aug 14 06:30:22 CEST 2004
root at jupiter.noonlights.net:/usr/obj/usr/src/sys/JUPITER i386
-bash-2.05b# XFree86 -version
XFree86 Version 4.3.0
...
-bash-2.05b# java -version
java version "1.4.2-p6"
Java(TM) 2 Runtime Environment, Standard Edition (build
1.4.2-p6-root_09_aug_2004_03_45)
Java HotSpot(TM) Client VM (build 1.4.2-p6-root_09_aug_2004_03_45, mixed mode)
-bash-2.05b# pkg_info |grep wrapper
javavmwrapper-1.4 Wrapper script for various Java Virtual Machines
wrapper-1.0_3 Wrapper for XFree86-4 server
note that I don't have a monitor attached, but the server
is running..
-bash-2.05b$ startx -listen_tcp &
-bash-2.05b$ xhost +
.. if I enable xdm in /etc/ttys then I get connection refused
messages from the Xserver..
can any kind soul help me out?
Thank you.
--
Roberto Nunnari -software engineer-
Scuola Universitaria Professionale della Svizzera Italiana
Dipartimento Tecnologie Innovative
http://www.dti.supsi.ch
SUPSI-DTI
Via Cantonale tel: +41-91-6108561
6928 Manno """ fax: +41-91-6108570
Switzerland (o o)
=======================oOO==(_)==OOo========================
More information about the freebsd-java
mailing list