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

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
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: 92
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: 60785

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] [Bear's FrontMan] [About Bear] [Books by Bear]
I agree. Here's the link: http://aspose.com/file-tools
subject: classpath
Similar Threads
Data truncation: Truncated incorrect DOUBLE value:
Unable to get connection, DataSource invalid: "java.sql.SQLException: No suitable driver"
Problem in javac and java command
Compiling multiple source files
How to set session id manually ?