Logo 
Search:

Java Forum

Ask Question   UnAnswered
Home » Forum » Java       RSS Feeds

jar file address

  Asked By: Ketan    Date: Dec 14    Category: Java    Views: 821
  

i want to use exist DB in my servlet. i must set 10 jar files address to classpath. i should place these jar files in lib directory in ROOT\WEB_INF? if i place this jar files in another address and give these adddress to classpath, it's wrong?(because the classpath string length is restricted and i can't place these jar files in ROOT\WEB_INF\lib) i also have a conf.xml file (configurtion file of exist DB) i should place this in server?(jakarta-tomcat-5.5.9\bin)

Share: 

 

1 Answer Found

 
Answer #1    Answered By: Midissia Lopez     Answered On: Dec 14

You should put your application jar  files in the following path: WebAppContextRoot/WEB-INF/lib (In tomcat, WebAppContextRoot is your web application folder under webapp folder).

You should put any config file  in classpath, if & only if, that config file is read via ClassLoader and not via file system.

 
Didn't find what you were looking for? Find more on jar file address Or get search suggestion and latest updates.




Tagged: