Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 15 Jan 2003 10:38:57 +0100
From:      Fredrick Nilsson <fredrick.nilsson@framfab.se>
To:        'Achilleus Mantzios' <achill@matrix.gatewaynet.com>
Cc:        freebsd-java@FreeBSD.ORG
Subject:   RE: tomcat - java.awt - headless
Message-ID:  <CB1D80DAEB179D4C9A73C648F3C2B557027602@sestoex02.framfab.se>

next in thread | raw e-mail | index | archive | help
yes, it's jdk 1.4.x im using. unfortunately i cannot relay to that an xvfb
is installed on the server, since it's up to the hosting company. so i would
prefer if i could solve this problem in some other manner.

thanks anyway :)

-----Original Message-----
From: Achilleus Mantzios [mailto:achill@matrix.gatewaynet.com]
Sent: Wednesday, January 15, 2003 14:23
To: Fredrick Nilsson
Cc: freebsd-java@FreeBSD.ORG
Subject: Re: tomcat - java.awt - headless


On Wed, 15 Jan 2003, Fredrick Nilsson wrote:

> hi,
>
> im trying to use java.awt and javax.swing classes in tomcat that runs on a
> "X-less" server. I think that i have tried all possible ways to accomplish
> this, but none works.

Is this jdk 1.4.x that you use???

For jdk 1.3.x (that definetaly needs X) a good solution is X Virtual Frame
Buffer (xvfb).

You run it like :

% Xvfb :1 -screen 0 800x600x24 &

and then in your tomcat/jboss/jetty (your favorite app server) start up
script you add
export DISPLAY=unix:1.0

(i use server side awt, with no problem, xvfb actually gets graphics drawn
faster than X running on a  real graphics card)

>
> this is what i have tested.
>
> enviroment variables:
>
> both JAVA_OPTS and CATALINA_OPTS set to -Djava.awt.headless=true (tested
> both individually and together)
>
> code:
>
> System.setProperty("java.awt.headless", "true");
>
> none of these methods works 100%, during my tests, it works from time to
> time, but i cant recreate so that it will work allways. is there anybody
> else that have had the same problems, and if then, what was the solution?
>
> .f
>
> To Unsubscribe: send mail to majordomo@FreeBSD.org
> with "unsubscribe freebsd-java" in the body of the message
>

==================================================================
Achilleus Mantzios
S/W Engineer
IT dept
Dynacom Tankers Mngmt
Nikis 4, Glyfada
Athens 16610
Greece
tel:    +30-10-8981112
fax:    +30-10-8981877
email:  achill@matrix.gatewaynet.com
        mantzios@softlab.ece.ntua.gr

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-java" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CB1D80DAEB179D4C9A73C648F3C2B557027602>