| Author |
Running applets from servlets using TomCat
|
Chaitanya Reddy
Greenhorn
Joined: Jun 06, 2002
Posts: 18
|
|
Hello everyone.......... I am trying to generate applets from Tomcat.I have JRE in my system........All the class files are store in "C:\Program Files\Apache Group\Tomcat 4.1\webapps\ROOT\WEB-INF\classes" directory.Even my applet class files are stored here. When I called applet from servlet, "java.lang.ClassNotFound Exception" occured. Please help me as soon as possible......... This is very urgent. thanks chaitu
|
 |
Debashish Chakrabarty
Ranch Hand
Joined: May 14, 2002
Posts: 225
|
|
One possible workaround is to specify the applet "codebase" which is not based on the Servlet Path. In other words put the Applet class file in a directory (say myApplets) inside your web application folder. Now specify the relative path for this folder in the applet codebase something like the following: [ August 13, 2003: Message edited by: Debashish Chakrabarty ]
|
Debashish
SCJP2, SCWCD 1.4
|
 |
Chaitanya Reddy
Greenhorn
Joined: Jun 06, 2002
Posts: 18
|
|
Mr.Chakrabarty.. I tried calling applets by creating the folder MyApplets.But my problem remains the same.Could u suggest another method to do this?? thanks chaitu
|
 |
Manish Hatwalne
Ranch Hand
Joined: Sep 22, 2001
Posts: 2573
|
|
You'll have to place you Applet classes (and HTML) outside WEB_INF. HTH, - Manish
|
 |
 |
|
|
subject: Running applets from servlets using TomCat
|
|
|