When you have a java class in /webapp/mywebapplication/newDirectory you also need to define a package called mywebapplication.newDirectory in the source code of this class. When you want to use this new class in a java class one directory above you have to tell java where it is situated: new mywebapplication.newDirectory.myClass name = new mywebapplication.newDirectory.myClass(); Finally, when you compile the whole package move one directory above mywebapplication and type javac mywebapplication/myMainClass(or /*.java)
This should work. -----Ursprungliche Nachricht----- Von: Elif Akten [mailto:[EMAIL PROTECTED] Gesendet: Mittwoch, 16. Juli 2003 09:18 An: [EMAIL PROTECTED] Betreff: tomcat-WEB-INF I have an webapplication under /webapp/mywebapplication, I put all classes and lib files under WEB-INF directory classes and lib directory, it works fine, but if I put a new directory under mywebapplication folder it gives NoClasssDef error. what Shoul I do? _________________________________________________________________ Add photos to your e-mail with MSN 8. Get 2 months FREE*. http://join.msn.com/?page=features/featuredemail --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
