Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Java > Java and JDK > Servlets
| Search | Today's Posts | Mark Forums Read
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Servlets section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
  #1 (permalink)  
Old June 4th, 2003, 03:32 PM
Joe Joe is offline
Registered User
Join Date: Jun 2003
Location: Austin, Texas, USA.
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to Joe
Default How to compile from the src directory ?

  I am on Chapter 2 of the "Professional Java Servlets 2.3 text.
   page 55 paragraph 2 says:
  " Place he BasicServlet.java file in the basicServlets subfolder
  of the source code directory (scr) [did that]

Then is says:
" then compile it from the src directory susing the javax compiler,
  [how do I do that?]including %CATALINA_HOME%\common\lib\servlet.jar in your classpath [how do I do that?]

Then it says:
"Move the resultint class file into the classes\\basicServlets directory [please explain how to do that too !]

  #2 (permalink)  
Old June 13th, 2003, 01:31 AM
Authorized User
Join Date: May 2003
Location: New Delhi, Delhi, India.
Posts: 50
Thanks: 0
Thanked 0 Times in 0 Posts

Hi Jeo
Firstly to compile Servlets u need javac not javax now let's see the command to complie it.

In the command prompt go to the basicServlets subfolder and type this command
javac -classpath "%CATALINA_HOME%\common\lib\servlet.jar" BasicServlet.java

Befor doing this make sure you have set the CATALINA_HOME path in your environment variables


Yashraj Chauhan
Java\J2EE Specialist
Wiley Support Team

Similar Threads
Thread Thread Starter Forum Replies Last Post
$@src newbieboobers XSLT 2 March 12th, 2008 04:22 PM
chapter2-src\src\ch02\sample5 _ need help M7777777bill BOOK: Professional Java Development with the Spring Framework 0 June 14th, 2006 10:00 PM
modifying src attribute jtnw XSLT 1 January 20th, 2005 05:08 AM
Script src problem Snib Javascript 5 December 30th, 2003 03:33 PM

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.