java jar file
Hi all,
I am developing web based application using apache as a webserver. I have one application which is located in the folder apache/webapps/foo/foo2/myapp.jar . This application must access the class which is located in the apache/webapps/foo/WEB-INF/classes. My question is what is the class-path should i put in the jar manifest file for my application to access the class in the WEB-INF/classes?
# 1
HI,
Can you give your directory structure like where you jsps located, and where your application get deployed? If you are trying deploy jar file there is no need to set any path to access the WEB-INF/classes, But if you want to access any specific class then give like
Main-Class: com.myapp.className
in your manifest file. Try this and if this not help you please give detailed problem scenario.
-
Vimal
# 2
I don't think you need to specify any classpath for that, since that's what Tomcat uses as classpath root already, isn't it? Anyway, consider creating a WAR.>Main-Class: com.myapp.classNameWhat use is a Main-Class for a web app?