RE: Image Scaling Code

2006-01-13 Thread Ben Kim
prevent the errors mentioned below when you don't have a graphical >shell running on your system. > >Regards, Wouter > >-Original Message- >From: Ben Kim [mailto:[EMAIL PROTECTED] >Sent: Friday, January 13, 2006 7:54 AM >To: Tomcat Users List >Subject: Re: Im

Re: Image Scaling Code

2006-01-13 Thread Dakota Jack
"headless" I think the command is. On 1/12/06, Dakota Jack <[EMAIL PROTECTED]> wrote: > > You need to set a java command option so that your code won't search for a > display. Apparently you are using this with a server that has no monitor? > I forget the option but look them up under the java co

Re: Image Scaling Code

2006-01-13 Thread Jarrar Hussain
- From: Ben Kim [mailto:[EMAIL PROTECTED] Sent: Friday, January 13, 2006 7:54 AM To: Tomcat Users List Subject: Re: Image Scaling Code This may or may not be the case with you. I had a similar error (X11, DISPLAY) with an earlier version of tomcat included in a 3rd party package, on li

RE: Image Scaling Code

2006-01-13 Thread Wouter Boers
outer -Original Message- From: Ben Kim [mailto:[EMAIL PROTECTED] Sent: Friday, January 13, 2006 7:54 AM To: Tomcat Users List Subject: Re: Image Scaling Code This may or may not be the case with you. I had a similar error (X11, DISPLAY) with an earlier version of tomcat included in a 3rd party pa

Re: Image Scaling Code

2006-01-12 Thread Ben Kim
To: Tomcat Users List Subject: Re: Image Scaling Code This may or may not be the case with you. I had a similar error (X11, DISPLAY) with an earlier version of tomcat included in a 3rd party package, on linux. After I installed Xvfb (x virtual frame buffer) server rpm, the error went away. (http://

Re: Image Scaling Code

2006-01-12 Thread Ben Kim
This may or may not be the case with you. I had a similar error (X11, DISPLAY) with an earlier version of tomcat included in a 3rd party package, on linux. After I installed Xvfb (x virtual frame buffer) server rpm, the error went away. (http://www.xfree86.org/4.0.1/Xvfb.1.html) I think there w

Re: Image Scaling Code

2006-01-12 Thread Dakota Jack
You need to set a java command option so that your code won't search for a display. Apparently you are using this with a server that has no monitor? I forget the option but look them up under the java command and it will be obviously. It ends in "less" as I recall. On 1/12/06, Justin Jaynes <[EM

Re: Image Scaling Code

2006-01-12 Thread Justin Jaynes
Thanks Everyone, Your many responses were correct. I'm on my way. Closer anyway, I get a different error now, but I think I can track it down. I'll let you know if I need any more help. Justin Jaynes Wendy Smoak <[EMAIL PROTECTED]> wrote: On 1/12/06, Justin Jaynes wrote: > I've writte

Re: Image Scaling Code

2006-01-12 Thread Ryan McDonald
i believe adding this to your CATALINA_OPTS variable will solve this issue -Djava.awt.headless=true On 12-Jan-06, at 2:26 PM, Justin Jaynes wrote: Hello all, I've written a java class to scale jpeg images. But I can't seem to get it to work. Can anyone point me in the right direction?

Re: Image Scaling Code

2006-01-12 Thread Tim Funk
FAQ .. http://tomcat.apache.org/faq/unix.html#x -Tim Justin Jaynes wrote: Hello all, I've written a java class to scale jpeg images. But I can't seem to get it to work. Can anyone point me in the right direction? - To

Re: Image Scaling Code

2006-01-12 Thread Frank W. Zammetti
D'oh! Now *THAT* rings a bell :) Mark Hagger wrote: You need to have: -Djava.awt.headless=true in your java start up args, this will prevent it from trying to talk to an X server. Obviously some image related stuff has to talk to an X server, but just ImageIO stuff is fine. Mark On Thu

RE: Image Scaling Code

2006-01-12 Thread Lawrence, Gabriel
2006 11:39 AM To: Tomcat Users List; [EMAIL PROTECTED] Subject: Re: Image Scaling Code I aked Yaov Shapira if Java Questions were ok for this list. He said it was fine because this is a USER list for Tomcat. And java class programming has a great deal to do with using Tomcat. "Frank W. Za

Re: Image Scaling Code

2006-01-12 Thread Mark Hagger
You need to have: -Djava.awt.headless=true in your java start up args, this will prevent it from trying to talk to an X server. Obviously some image related stuff has to talk to an X server, but just ImageIO stuff is fine. Mark On Thursday 12 January 2006 19:31, Frank W. Zammetti wrote: > I

Re: Image Scaling Code

2006-01-12 Thread Wendy Smoak
On 1/12/06, Justin Jaynes <[EMAIL PROTECTED]> wrote: > I've written a java class to scale jpeg images. But I can't seem to get it > to work. Can anyone point me in the right direction? > javax.servlet.ServletException: Can't connect to X11 window server using > ':0.0' as the value of the DI

Re: Image Scaling Code

2006-01-12 Thread Justin Jaynes
I aked Yaov Shapira if Java Questions were ok for this list. He said it was fine because this is a USER list for Tomcat. And java class programming has a great deal to do with using Tomcat. "Frank W. Zammetti" <[EMAIL PROTECTED]> wrote: I don't quite see how this is Tomcat-related, but... Yo

Re: Image Scaling Code

2006-01-12 Thread Frank W. Zammetti
I don't quite see how this is Tomcat-related, but... Your code can't connect to your X server, which is necessary for many Java graphics-related functions to work on a *nix system. I dealt with this at one point when getting DataVision working on Linux, and I recall the solution being somethi

Image Scaling Code

2006-01-12 Thread Justin Jaynes
Hello all, I've written a java class to scale jpeg images. But I can't seem to get it to work. Can anyone point me in the right direction? Here is my code: package com.everybuddystree; import java.awt.*; import java.awt.image.*; import java.io.*; import javax.imageio.*; public