Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > Java > Java and JDK > Servlets
Password Reminder
| FAQ | Members List | 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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Thread Tools Search this Thread Display Modes
  #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 !]

Reply With Quote
  #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
Reply With Quote

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

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

All times are GMT -4. The time now is 12:21 AM.

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