| Author |
"Head First Servlets & JSP" tomcat instructions
|
David Balažic
Ranch Hand
Joined: May 15, 2008
Posts: 83
|
|
Hi!
In "Head First Servlets & JSP", Second edition, the instructions for installing tomcat 5.5 (on page xxvi) say to click the install .exe file.
I downloaded the Core ZIP file [1] and it has no exe file that is named "install" or similar.
Does it mean the "Windows Service Installer" [2] file ?
[1] http://www.apache.si/tomcat/tomcat-5/v5.5.28/bin/apache-tomcat-5.5.28.zip
[2] http://www.apache.si/tomcat/tomcat-5/v5.5.28/bin/apache-tomcat-5.5.28.exe
|
 |
David Balažic
Ranch Hand
Joined: May 15, 2008
Posts: 83
|
|
The same instructions also do not say for Java if the JDK is required or just the JRE: If you don’t already Java SE v1.5 or greater, you’ll need it.
(there ia also a grammatical error in the sentence)
I guess the JDK is a safe bet ?
|
 |
David Balažic
Ranch Hand
Joined: May 15, 2008
Posts: 83
|
|
And the next thing: TOMCAT_HOME
According to the internet, TOMCAT v4 and above uses CATALINA_HOME instead of TOMCAT_HOME.
So what gives?
I installed from the ZIP file, so now I have D:\tomcat\bin\startup.bat.
So the correct action is to set TOMCAT_HOME to D:\tomcat ? Or rather CATALINA_HOME ? Both ? None ?
Thanks...
|
 |
Vijitha Kumara
Bartender
Joined: Mar 24, 2008
Posts: 3673
|
|
David Balažic wrote:... I guess the JDK is a safe bet ?
Yes. JRE is only the runtime environmet which does not contain the tools needed to compile and other tasks.
|
SCJP 5 | SCWCD 5
[How to ask questions] [Twitter]
|
 |
Vijitha Kumara
Bartender
Joined: Mar 24, 2008
Posts: 3673
|
|
David Balažic wrote:According to the internet, TOMCAT v4 and above uses CATALINA_HOME instead of TOMCAT_HOME.
I installed from the ZIP file, so now I have D:\tomcat\bin\startup.bat.
So the correct action is to set TOMCAT_HOME to D:\tomcat ? Or rather CATALINA_HOME ? Both ? None ?
Use what the documentation says. Check the documentation all (4.1,5.x,6.x) uses CATALINA_HOME so you should use that.
|
 |
David Balažic
Ranch Hand
Joined: May 15, 2008
Posts: 83
|
|
Vijitha Kumara wrote:
Use what the documentation says. Check the documentation all (4.1,5.x,6.x) uses CATALINA_HOME so you should use that.
So the book is wrong? Another errata?
PS: I know what JRE and JDK are. After all, I have SCJP5 if I started work on SCWCD ;)
|
 |
Vijitha Kumara
Bartender
Joined: Mar 24, 2008
Posts: 3673
|
|
PS: I know what JRE and JDK are. After all, I have SCJP5 if I started work on SCWCD ;)
If you don’t already Java SE v1.5 or greater, you’ll need it.
With this, book correctly says what is required.
So the book is wrong? Another errata?
I don't know what the book says about TOMCAT_HOME or anything but there can be typos etc.. so make sure you check the official errata of the book.
|
 |
David Balažic
Ranch Hand
Joined: May 15, 2008
Posts: 83
|
|
Vijitha Kumara wrote:
PS: I know what JRE and JDK are. After all, I have SCJP5 if I started work on SCWCD ;)
If you don’t already Java SE v1.5 or greater, you’ll need it.
With this, book correctly says what is required.
java.sun.com download page has:
- Java SE Development Kit
- Java SE Runtime Environment
(both version 6 update 16)
The book does not say which. Unless it is written by invisible ink, that only some can see.
|
 |
 |
|
|
subject: "Head First Servlets & JSP" tomcat instructions
|
|
|