Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Which is class path?

 
jacob deiter
Ranch Hand
Posts: 584
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In web application ,class path is Web-inf or Web-inf/class or web-inf/lib?
 
Steve Luke
Bartender
Posts: 4181
22
IntelliJ IDE Java Python
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The classpath for a web app is (at least)
WEB-IF/classes/
plus all the JARs in the WEB-INF/lib/
In addition, servers may add further directories to the classpath to give access to shared resources between web apps and provid system / server resources.
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 65115
89
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Be sure that it's WEB-INF, not web-inf.

Case counts!
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic