wood burning stoves 2.0*
The moose likes Applets and the fly likes error while executing applet in UNIX Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Applets
Bookmark "error while executing applet in UNIX" Watch "error while executing applet in UNIX" New topic

error while executing applet in UNIX

Ramu Valivarthi
Ranch Hand

Joined: Apr 24, 2007
Posts: 37

Hi When iam trying to run my Applet in UNIX Iam getting below error.

Exception in thread "main" java.awt.HeadlessException:
No X11 DISPLAY variable was set, but this program performed an operation which requires it.

Can someone please assist me.
Freddy Wong
Ranch Hand

Joined: Sep 11, 2006
Posts: 959

Are you trying to run the application in a non-graphical environment? Try to do this

in your terminal.

Hope it helps.

SCJP 5.0, SCWCD 1.4, SCBCD 1.3, SCDJWS 1.4
My Blog
Ulf Dittmer

Joined: Mar 22, 2005
Posts: 41137
Applets are run on the client; is that where this exception occurs? If so, what kind of client is this?

Ping & DNS - my free Android networking tools app
It is sorta covered in the JavaRanch Style Guide.
subject: error while executing applet in UNIX
Similar Threads
Accessing Applets from network neighborhood
how to access Applets from LAN Network
problem in accessing applets from network neighborhood
html to applet
Applet to html communication