Win a copy of Java Mock Exams (software) this week in the Programmer Certification (OCPJP) 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
Posts: 42970
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?
 
Happiness is not a goal ... it's a by-product of a life well lived - Eleanor Roosevelt. Tiny ad:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!