• Post Reply Bookmark Topic Watch Topic
  • New Topic

executing applet

 
D Shah
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I got an applet code from the web and i compiled and now am trying to run it by
java classname
but it gives me following error
Exception in thread "main" java.lang.NoClassDefFoundError:
I have never worked with applets before so if any one has any clue about whats going on, let me know. Thanks!
 
Marilyn de Queiroz
Sheriff
Posts: 9079
12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You need an html page to display the applet, like yourclassname.html
Then you type
appletviewer yourclassname.html
or view the applet in your browser by looking at the yourclassname.html file.
 
Dirk Schreckmann
Sheriff
Posts: 7023
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Welcome to JavaRanch!
You may want to take a look at Sun's Java Tutorial - especially the trail on Applets.
 
Gravity is a harsh mistress. But this tiny ad is pretty easy to deal with:
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!