That was it!!! Thanks a bunch! 

iksrazal

Em Quinta 22 Dezembro 2005 13:57, o Jason Cwik escreveu:
> Don't use headless when forwarding over SSH.  You *do* have a head, it's
> just remote.
>
> On 12/22/05, Ron Reynolds <[EMAIL PROTECTED]> wrote:
> > from the JavaDocs
> > http://java.sun.com/j2se/1.4.2/docs/api/java/awt/HeadlessException.html
> > it sounds like a headless system should have no display or UI components
> > whatsoever ("Thrown when code that is dependent on a keyboard, display,
> > or mouse is called in an environment that does not support a keyboard,
> > display,
> > or mouse").  i'm curious how tcpmon could possibly work without
> > display....
> > also i thought if something like 'xclock' works then you wouldn't have to
> > run
> > in headless mode... ??
> >
> > ................ron.
> >
> > > Hi all,
> > >
> > > I'm trying to run tcpmon remotely. I'm using X11 forwarding over ssh.
> >
> > X11 is
> >
> > > working fine - I can type 'xclock' on the remote machine and it works.
> > >
> > > However, I get this error:
> > >
> > > /home/iksrazal/axis-1_3/lib> java -cp axis.jar -Djava.awt.headless=true
> > > org.apache.axis.utils.tcpmon 8090 localhost 9081
> > > java.awt.HeadlessException
> > >  at java.awt.GraphicsEnvironment.checkHeadless(GraphicsEnvironment.java
> > >
> > :121)
> > :
> > >         at java.awt.Window.<init>(Window.java:274)
> > >         at java.awt.Frame.<init>(Frame.java:401)
> > >         at javax.swing.JFrame.<init>(JFrame.java:198)
> > >         at org.apache.axis.utils.tcpmon.<init>(tcpmon.java:1814)
> > >         at org.apache.axis.utils.tcpmon.<init>(tcpmon.java:1861)
> > >         at org.apache.axis.utils.tcpmon.main(tcpmon.java:1900)
> > >
> > > As you can see I've tried java.awt.headless=true . Any ideas?
> > >
> > > iksrazal

Reply via email to