Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

deploying applet

 
shalini gnana
Ranch Hand
Posts: 189
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm using netbeans for developing my japplet...I can able to run and built my file(just one file in my project)..But when i run my applet its saying that main class not found...I want to deploy my applet...Help me...
 
Ulf Dittmer
Rancher
Posts: 42967
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Netbeans is really meant for deploying applets, it's mostly for development. You would deploy the applet by copying the HTML file containing the applet tag along with the jar (or class) files to a directory on a web server (or servlet container). What does this directory on the server look like, meaning what files does it contain, and what is the applet tag you're using?
 
shalini gnana
Ranch Hand
Posts: 189
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I couldn't able to run my japplet outside the netbeans...But it runs well in IDE
 
Ulf Dittmer
Rancher
Posts: 42967
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I see. Well, that's an important step to go through when learning about applets, so you should set up an HTML file containing an applet tag that can run your applet in a browser, outside of any IDE. Here is a detailed description of what an applet tag looks like. It could be as simple as what's described in the section "Using the APPLET Tag". If NetBeans created a jar file containing all the classes you will also need an archive attribute in the applet tag, as described in the section "Combining an Applet's Files into a Single File".
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic