• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

java import statement

 
Chris Davies
Ranch Hand
Posts: 110
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi
theres somehting i just want to confirm when i write a class that uses teh import command at the top

where do i put any relevant import jar files ? is it always in the webapps/WEB-INF/lib directory of the application server ?

cheers
chris
 
Anonymous
Ranch Hand
Posts: 18944
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
you can put your jar files everywhere in the class path. If you are developing web apps there are two possibilities. WEB-INF/lib of your application or /lib of your server.
Preferred way is to put it in the application lib dir, cause then if you redeploy on a different server you have everything you need.
For normal java applications the jars can be everywhere but you have to include them in your startup file or your command java -classpath $PATH/your.jar
Hope that helps
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic