permaculture playing cards
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 Introducing JavaFX 8 Programming this week in the JavaFX 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: 42958
Applets are run on the client; is that where this exception occurs? If so, what kind of client is this?
I agree. Here's the link:
subject: error while executing applet in UNIX
It's not a secret anymore!