File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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

How to view applet from unix box

raka sinha

Joined: Jan 22, 2007
Posts: 15

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

Joined: Oct 27, 2005
Posts: 19760

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.

How To Ask Questions How To Answer Questions
I agree. Here's the link:
subject: How to view applet from unix box