I mean, is there a way to create .class files directly from within Tomcat/webapps/MyContext-Application/WEB-INF/classes[or lib]/(here I have the .java files, and directiories, and packages etc.) I want to compile them here. if possible, how?? ps: I have read sth. about Ant, and seems it can be used but, does Tomcat implicitly have the capability for this?
> I want to compile them here. if possible, how?? With javac? But seriously... Tomcat doesn't care how you compile your files, either with commandline javac, or by using ANT. Tomcat doesn't "implicity have the capability", but then again, why would it? It's a servlet runner, not a build tool.
Look in the tooldocs section of the docs directory of your SDK installation. Find the options for javac - you will see that the -d directory sets the destination for compiled classes. Everybody should get familiar with tooldocs. Bill