Re: Can't display Java gui
From: Robert Clark (clark_at_warez.exiter.com)
Date: 11/09/04
- Next message: Koos Pol: "Re: Deep nested static class"
- Previous message: Sudsy: "Re: Getting a month from a date"
- In reply to: Conrad Eaglehill: "Can't display Java gui"
- Next in thread: Rogan Dawes: "Re: Can't display Java gui"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Tue, 09 Nov 2004 00:48:26 -0500
In article <f8c56b39.0411080743.260c23db@posting.google.com>, Conrad
Eaglehill <airkart@hotmail.com> wrote:
> reason unset it, I called the C function setenv() in sendmail to set
> it and got the following error: "Exception in thread "main"
> java.lang.InternalError: Can't connect to X11 window server using
> 'localhost:0.0' as the value of the DISPLAY variable." Using the
> [ snip ]
>
> Looking into the problem, I found that when running as root, lots of
> people have had the same problem, and their solution was "don't run as
> root." Sendmail needs root permissions for some things, so this isn't
> an option for me. I wonder if anyone know how to run a Java
> application that needs the X-Window server as root, (or perhaps would
> allow me to run a Java gui from sendmail as another user temporarily).
If you logged in as yourself (your user account) then the X server will be
7configured to prevent anyone except you from connetting GUI apps. You can
tell the X server to allow connections from any user on the local machine
by running:
xhost + localhost.
man xhost will have more details. Or you can use sudo or su to switch to the
user that does have permission to connect to the X server.
That being said, I have to go with the general concensus and say "sendmail
launching a GUI app? Yikes!"
- Rob
-- (to email me, remove "warez.")
- Next message: Koos Pol: "Re: Deep nested static class"
- Previous message: Sudsy: "Re: Getting a month from a date"
- In reply to: Conrad Eaglehill: "Can't display Java gui"
- Next in thread: Rogan Dawes: "Re: Can't display Java gui"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|
|