aspose file tools*
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 Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » Servlets
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: 95
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: 61420
    
  67

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