|
From: Leif M. <le...@ta...> - 2009-11-27 10:39:46
|
Molde, Thank you. The java.awt.headless parameter is very useful when you need to run Java in an environment where it WILL be headless. It makes it possible to do things like generate jpegs etc by telling Java not to look for the native libraries to do so. In this case however, Lars is wanting to show a GUI in a Windowing environment from a Java process running as a daemon. Thanks for the post. Cheers, Leif On Thu, Nov 26, 2009 at 5:41 PM, Molde Nils Ottar <nil...@ed...> wrote: > Have You tried setting -Djava.awt.headless=true as parameter? > > -----Original Message----- > From: Lars Schnoor [mailto:Lar...@if...] > Sent: 26. november 2009 09:06 > To: wra...@li... > Subject: Re: [Wrapper-user] Starting Swing application from Linux daemon > > Hi again > I guess since there haven't been any replies to this problem, that there > is no solution? > > Lars > > Lars Schnoor wrote: >> Hi >> I would like to have my application which is started as a Linux daemon >> to present a graphical user interface to the user. The user interface is >> written in Java Swing. >> When I try to start the user interface I get an >> java.awt.HeadlessException: >> No X11 DISPLAY variable was set, but this program performed an operation >> which requires it. >> Is there a solution to this? >> Thanks in advance! >> >> Lars >> |