Re: "connection nil" in graphics device
Posted by
Sven Gothel on
Mar 14, 2013; 3:12pm
URL: https://forum.jogamp.org/connection-nil-in-graphics-device-tp4028605p4028646.html
On 03/14/2013 04:08 PM, neothemachine [via jogamp] wrote:
> Hi,
>
> It turned out to be unrelated to jogl. The Java app I am running is running in
> a Glassfish server and the problem was that DISPLAY wasn't set, as the process
> starting the server was a different one.. So, it's working now. The only other
> question I have is: Can I supply the value of DISPLAY somehow programmatically
> so that jogl doesn't rely on the DISPLAY environment variable? This would make
> it somehow easier.
Sure, for NEWT you can always add the display connection string
in the NewtFactory.createDisplay(..)
AWT: I don't know ..
But IMHO it should be possible w/ glassfish to pass over any env. var ..
~Sven