Win a copy of Learn Spring Security (video course) this week in the Spring forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

error while executing applet in UNIX

 
Ramu Valivarthi
Ranch Hand
Posts: 37
Java Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 959
Eclipse IDE Java Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Are you trying to run the application in a non-graphical environment? Try to do this



in your terminal.

Hope it helps.
 
Ulf Dittmer
Rancher
Pie
Posts: 42967
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Applets are run on the client; is that where this exception occurs? If so, what kind of client is this?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic