• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Where to place applet files in Tomcat?

 
Cameron Park
Ranch Hand
Posts: 371
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi, I need to know where should we put applet classes in tomcat? I put them in the classes directory, tomcat says it can not find it.
 
Jimi Rock
Ranch Hand
Posts: 134
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
You need to put all your *.class files in the same directory of your *.html file. you may put them in the following path:
C:\Tomcat\webapps\examples\
then created a new folder there and put all your *.class files in addition to the *.html file.
If your applet calls servlet then put the servlet classes in the classes directory.
Regards,
Jimi.
 
Cameron Park
Ranch Hand
Posts: 371
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Jimi! Say, I have a servlet: c:\tomcat\webapps\ch10\web-inf\classes\thisServlet that will call an applet:c:\tomcat\webapps\ch10\web-inf\classes\thisApplet, what should I put in the HTML display for codebase=?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic