File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Servlets and the fly likes classpath Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "classpath" Watch "classpath" New topic


savitririnki gupta

Joined: Aug 08, 2011
Posts: 2
I installed weblogic(8.1) server to learn servlet basic programming,is it necessary to set the classpath,if yes then please tell me how can i set my classpath
Santosh Kumar Nayak
Ranch Hand

Joined: Aug 02, 2011
Posts: 141
Hi Rinki,

You need to set the class path for the servlet-api.jar file

set classpath=%classpath%;<entire path of the jar file>\servlet-api.jar;

Hope this works
Bear Bibeault
Author and ninkuma

Joined: Jan 10, 2002
Posts: 63858

The classpath only needs to be set for compiling front he command line. If you are using Ant or Maven, you use the tool to manage the compilation class path.

At run-time, the classpath is not relevant -- required jars are placed in the WEB-INF/lib folder.

[Asking smart questions] [About Bear] [Books by Bear]
I agree. Here's the link:
subject: classpath
It's not a secret anymore!