Win a copy of Zero to AI - A non-technical, hype-free guide to prospering in the AI era this week in the Artificial Intelligence and Machine Learning forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Paul Clapham
  • Bear Bibeault
  • Jeanne Boyarsky
Sheriffs:
  • Ron McLeod
  • Tim Cooke
  • Devaka Cooray
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Jj Roberts
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • salvin francis
  • Scott Selikoff
  • fred rosenberger

Running applets from servlets using TomCat

 
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Ranch Hand
Posts: 250
Python Spring Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 ]
 
Chaitanya Reddy
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Ranch Hand
Posts: 2596
Android Firefox Browser Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You'll have to place you Applet classes (and HTML) outside WEB_INF.
HTH,
- Manish
 
Don't destroy the earth! That's where I keep all my stuff! Including this tiny ad:
Thread Boost feature
https://coderanch.com/t/674455/Thread-Boost-feature
reply
    Bookmark Topic Watch Topic
  • New Topic