Robbie Baldock wrote:
> Nathan Meyers wrote:
>
> > No, this won't work.
>
> I didn't think it would!
>
> > Environment variables are associated with Unix processes and passed to
> > child processes. You can't really set one "just for the servlet", you need
> > to set it for the Unix process und
Jacek Laskowski wrote:
>> I'm uncertain if this helps, but give that a try: >
>> wrapper.env=DISPLAY=:1
>Robbie> Tried it - it can't connect.
Actually, I tell a lie - it is now connecting (on DISPLAY=:1)! (I wasn't
waiting long enough for Apache and JServ to restart.)
However, the servlet is
Ulli Kortenkamp wrote:
>
> > "Robbie" == Robbie Baldock <[EMAIL PROTECTED]> writes:
>
> Robbie> Jacek Laskowski wrote:
> >> I'm uncertain if this helps, but give that a try: >
> >> wrapper.env=DISPLAY=:1
>
> Robbie> Tried it - it can't connect.
>
> Could it be that the virt
> "Robbie" == Robbie Baldock <[EMAIL PROTECTED]> writes:
Robbie> Jacek Laskowski wrote:
>> I'm uncertain if this helps, but give that a try: >
>> wrapper.env=DISPLAY=:1
Robbie> Tried it - it can't connect.
Could it be that the virtual framebuffer denies the permission to the
Jacek Laskowski wrote:
> I'm uncertain if this helps, but give that a try: > wrapper.env=DISPLAY=:1
Tried it - it can't connect.
Robbie
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble?
Robbie Baldock wrote:
>
[...]
> by putting something like this:
>
> wrapper.env=DISPLAY=localhost:1.1
>
> in the jserv.properties file.
>
> However... I'm now getting this error message:
>
> java.lang.InternalError: Can't connect to X11 window server using
> 'localhost:1.1' as the value of th
After the various helpful suggestions on how to proceeed with my GIF
generating servlet, I've discovered that I can prevent the worrying
error message I was getting:
java.lang.NoClassDefFoundError: sun/awt/X11GraphicsEnvironment at
java.lang.Class.forName0(Native Method)
by putting something lik
>> >> java.lang.NoClassDefFoundError: sun/awt/X11GraphicsEnvironment
>> >> at java.lang.Class.forName0(Native Method)
>> > You're right, that's not the message you'd see with an unset DISPLAY
>> > variable. That class should be in rt.jar... I wonder why you're not
>> > finding it.
>>
>> Mmm indee
Robbie Baldock wrote:
>
> Nathan Meyers wrote:
>
> > No, this won't work.
>
> I didn't think it would!
>
> > Environment variables are associated with Unix processes and passed to
> > child processes. You can't really set one "just for the servlet", you need
> > to set it for the Unix process
Nathan Meyers wrote:
> No, this won't work.
I didn't think it would!
> Environment variables are associated with Unix processes and passed to
> child processes. You can't really set one "just for the servlet", you need
> to set it for the Unix process under which the servlet is running -
> mea
Robbie Baldock wrote:
>
> I'm still trying to get Java2D to work on Linux. My latest strategy is
> to run my GIF generation program as a servlet.
>
> What I'm doing is firing up Xvfb to simulate an X environment but then
> of course I need to set the DISPLAY environment variable for the servlet
> "Robbie" == Robbie Baldock <[EMAIL PROTECTED]> writes:
Robbie> At the moment I'm calling this in my servlet's init():
Robbie> Runtime.getRuntime().exec("DISPLAY=localhost:1.1");
Robbie> Runtime.getRuntime().exec("export DISPLAY");
Robbie> Which I suspect is the wrong way t
I'm still trying to get Java2D to work on Linux. My latest strategy is
to run my GIF generation program as a servlet.
What I'm doing is firing up Xvfb to simulate an X environment but then
of course I need to set the DISPLAY environment variable for the servlet
and I'm unclear as to how I shou
13 matches
Mail list logo