Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Dual Inquiries

 
Cory Kaos
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am jumping in feet-first to server-side Java programming and have been charged with upgrading some servlets on a work project.
Two Questions:
1) I have looked over the available texts and tenuously decided on "Core Java Servlets & JSP" by Marty Hall (ISBN 0130893404). Can anyone confirm that this is a worthwhile text?
2) Also, being a complete newbster to servlets, I ran into problems compiling some servlet code that referenced a sun.servlet.http package, specifically the HttpServer class. I am "developing" in JBuilder4 and I did find that this file (ServletServer.java) could be a generated file. However, JB4 can't find the package and I scoured every JAR within a mile to no avail. I am sure I'm missing something elementary that will be cleared up in the first 3 chapters of any servlet book, but would someone entertain the question of where this package can be found?
Thanks in advance......
------------------
Cory Kaos
SCJP2
[This message has been edited by Cory Kaos (edited April 18, 2001).]
 
maha anna
Ranch Hand
Posts: 1467
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Cory,
The servlet package is an extension to the core java sdk pack. We have to download them extra. There is a servlet.jar file when we download Tomcat. when you install Tomcat in c:\ , you can locate this servlet.jar as C:\jakarta-tomcat\lib\servlet.jar;
You have to add this path C:\jakarta-tomcat\lib\servlet.jar; to your classpath. Then onwards you can compile your servlets. You may also have to add tools.jar which can be found from c:\jdk1.2.2\lib\tools.jar; to your classpath.
Here is a good set of instructions for installing tomcat! http://www.javaranch.com/ubb/Forum7/HTML/000598.html
In case if you already have a servlet.jar in your machine add it to your classpath through autoexec.bat.
regds
maha anna
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic