: : Dear sir,
: : I am facing problem , while trying to develop a web
: : application in Java.
: :
: : In the File: Myservlet.java
: : I imported packages
: : javax.servlet.* ; and javax.servlet.http.* l
: :
: :
: : Simple code of "Hello world " was in the body.
: :
: : When MyServlet.java filed was compiled ,
: : I recieved an arror message ,
: :
: : File : javax.servlet.* ; and
: : File : javax.servlet.http.* l
: :
: : not found.
: :
: : It looks like that these packages are not included in
: : Program : Java\jdk1.5.0_09\ ...
: :
: : Please help me in locating these packages , and
: : getting the first servlet work .
: :
: : Thanks.
: :
: : Abdul Hayee ,
: :
: : Plz note that the paths for
: : JAVA_HOME , PATH ,
: : CATALINA_HOME AND CLASSPATH
: :
: : are correct as per tutorial.
: :
: Here is the download page:
http://java.sun.com/products/servlet/2.1/
:
........................................................................
Dear Sir,
I downloaded and installed the Java\Servlet2.1 \jswdk-1.0
As advised. When the start server file was run, it gave the message to provide the path
CLASSPATH = [jdk HOME]\lib\classes.zip ; CLASSPATH
Please note that , I have already apache-tomcat application for Servlet applications , and that has the same path.
In total there are 4 paths in use for JAVA applications in directory
< C >.
JAVA_HOME C:\Program Files\Java\jdk1.5.0_09
PATH C:\Program Files\Java\jdk1.5.0_09\bin
CATALINA_HOME C:\apachi-tomcat-5.5.20\apach-tomcat-5.5.20
CLASS_PATH C:\apachi-tomcat-5.5.20\apach-tomcat-5.5.20\common\ lib\servlet-api.jar ; C:\apachi-tomcat-5.5.20\apach-
tomcat-5.5.20\common\lib\jsp-api.jar ; . ;
Now do you suggest to replace the exixting classpath with the
jwsdk-1.0 file.
The system also informed that this path is compatible with jdk1.1.x application , while I have installed
jsdk1.5.0 . a few days back.
Could you please elaborate the procedure further.
Thanking you.
Abdul Hayee.