This week's book giveaway is in the General Computing forum.
We're giving away four copies of Arduino in Action and have Martin Evans, Joshua Noble, and Jordan Hochenbaum on-line!
See this thread for details.
The moose likes Servlets and the fly likes classpath Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


JavaRanch » Java Forums » Java » Servlets
Reply Bookmark "classpath" Watch "classpath" New topic
Author

classpath

savitririnki gupta
Greenhorn

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: 35
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
Marshal

Joined: Jan 10, 2002
Posts: 56529
    
  14

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.


[Smart Questions] [JSP FAQ] [Books by Bear] [Bear's FrontMan] [About Bear]
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: classpath
 
Similar Threads
How to set session id manually ?
Data truncation: Truncated incorrect DOUBLE value:
Compiling multiple source files
Problem in javac and java command
Unable to get connection, DataSource invalid: "java.sql.SQLException: No suitable driver"