From owner-freebsd-java Wed Jan 15 2:15:18 2003 Delivered-To: freebsd-java@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0991B37B401 for ; Wed, 15 Jan 2003 02:15:16 -0800 (PST) Received: from mail.framfab.com (mail.framfab.com [217.73.2.137]) by mx1.FreeBSD.org (Postfix) with ESMTP id AD01E43F93 for ; Wed, 15 Jan 2003 02:15:14 -0800 (PST) (envelope-from fredrick.nilsson@framfab.se) Received: from sestoex01.framfab.se (sestoex01.framfab.se [157.125.1.96]) by mail.framfab.com (Postfix) with ESMTP id 4F79B1F4F3; Wed, 15 Jan 2003 11:15:08 +0100 (CET) Received: by sestoex01.framfab.se with Internet Mail Service (5.5.2656.59) id ; Wed, 15 Jan 2003 11:15:07 +0100 Message-ID: From: Fredrick Nilsson To: 'Achilleus Mantzios' Cc: freebsd-java@FreeBSD.ORG Subject: RE: tomcat - java.awt - headless Date: Wed, 15 Jan 2003 10:38:57 +0100 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2656.59) Content-Type: text/plain; charset="iso-8859-1" Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org 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