i'm new to web dev't in general and need some help
we currectly have a web app. for Project X.
the jar files used in the web app are in the ff directory: /opt/www/mywebapp_name/java/mywebapp_name/WEB-INF/lib
For the same project, we now have a java application (myapp) that we will run in 'batch' mode (using cron).
we'll put myapp and related user defined classes in a package and then jar them. say we call it myjar.jar
Question: where should I deploy myjar.jar to? should it be in the same directory where the jar files for the web application (mywebapp) are? again, myapp is a standalone java aplication, not a servlet, not a web application.
I dont see a webapps in the path specified. Containers have webapps/a_web_app_name where a_web_app_name hosts an application. Under this is WEB-INF. Under this comes lib and classes. All jars commonly used within a context go into lib. Servlets go into classes.
If your servlets make use of "myjar.jar", most probably it should go into WEB-INF/lib.
however, my question was for a batch java program. should i put it in the classes folder as well? if i put them in a jar file, should i instead put it in the lib folder?