This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
The moose likes Servlets and the fly likes Which is class path? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

JavaRanch » Java Forums » Java » Servlets
Bookmark "Which is class path?" Watch "Which is class path?" New topic

Which is class path?

jacob deiter
Ranch Hand

Joined: Apr 02, 2008
Posts: 580
In web application ,class path is Web-inf or Web-inf/class or web-inf/lib?
Steve Luke

Joined: Jan 28, 2003
Posts: 4181

The classpath for a web app is (at least)
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

Joined: Jan 10, 2002
Posts: 63211

Be sure that it's WEB-INF, not web-inf.

Case counts!

[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link:
subject: Which is class path?
It's not a secret anymore!