Folks please,
What is jsdk.jar (or jsdk*.jar) ??? Do I still need it to write/run servlets? ... and if so, where can I download it from? ... and does anyone know the correct version for my existing setup?
I'm doing Chapter 1 of the Hibernate tutorial at:
http://www.hibernate.org/hib_docs/v3/reference/en/html/tutorial.html
which states
Quote:
Before you compile and deploy the web application, note that an additional library is required: jsdk.jar. This is the Java servlet development kit, if you don't have this library already, get it from the Sun website and copy it to your library directory. However, it will be only used for compliation and excluded from the WAR package.
and yep, when I build I get
"ant war" output:Code:
Buildfile: build.xml
clean:
[delete] Deleting directory C:\Java\src\Tutorials\Hibernate\bin
[mkdir] Created dir: C:\Java\src\Tutorials\Hibernate\bin
copy-resources:
[copy] Copying 4 files to C:\Java\src\Tutorials\Hibernate\bin
[copy] Copied 2 empty directories to 1 empty directory under C:\Java\src\Tutorials\Hibernate\bin
compile:
[javac] Compiling 5 source files to C:\Java\src\Tutorials\Hibernate\bin
[javac] C:\Java\src\Tutorials\Hibernate\src\events\EventManagerServlet.java:4: [b]package javax.servlet.http does not exist[/b]
[javac] import javax.servlet.http.HttpServlet;
[javac] ^
.... lots more javax.* not found, and a few typos ....
I'm using Hibernate 3.1.3 (March 20, 2006), on HSQL-DB (which I presume is packaged with hibernate) and Apache Tomcat 5.5.17 (circa August 12, 2006)
I just down loaded Enterprise Edition 5 SDK Update 2 (Sun Java System Application Server Platform Edition 9):, which I thought would include jsdk.jar ... but I've search My Computer and still can't find any "jsdk*.jar"
... so I had a bit of a dig around Suns website and came up with
http://java.sun.com/products/servlet/download.html which says
Quote:
J2EE 1.4 SDK contains an implementation of the Java Servlet 2.4 specification.
, and if you follow the tomcat link on that page to
http://java.sun.com/products/jsp/tomcat/ it says
Quote:
Tomcat 5 supports the Servlet 2.4 and JSP 2.0 specifications.
So I reckon I've got everything I need, and now I suspect that jsdk.jar is defunct ... so what's it's replacement? so I searched my computer (note to self: must get smaller harddisks next time) for "*.jar" containing text "javax.servlet" and came up with another blank.
... and I'm so confused ! ...
Please can anyone shed any light?
Thanx. Keith.