It's not a secret anymore!*
The moose likes Applets and the fly likes How to view applet from unix box Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Applets
Bookmark "How to view applet from unix box" Watch "How to view applet from unix box" New topic
Author

How to view applet from unix box

raka sinha
Greenhorn

Joined: Jan 22, 2007
Posts: 15
Hi

I am facing following problem. I have an applet kept in the remote unix server.I am trying to login using putty(telenet session) and trying to view my applet using appletviewer command.

I am getting following error

$ appletviewer A.html
Exception in thread "main" java.lang.InternalError: Can't connect to X11 window server using ':0.0' as the value of the DISPLAY variable.

----------------------------------

please help me .Thanks in advance
Rob Spoor
Sheriff

Joined: Oct 27, 2005
Posts: 19693
    
  20

appletviewer opens a window, so you need an active X11 / Xorg display. PuTTy can't provide that for you, you'll need something like Exceed - a program that can connect to the X server and display its contents.

Linux already has this by default mostly, although you might need to set some flags. For example, ssh has the -X flags that enables X11 forwarding.


SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6
How To Ask Questions How To Answer Questions
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to view applet from unix box