File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to view applet from unix box

 
raka sinha
Greenhorn
Posts: 15
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 20372
44
Chrome Eclipse IDE Java Windows
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic