Java Servlets - Programmers Heaven

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

Java Servlets

ABDUL HAYEEABDUL HAYEE Posts: 81Member
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 : Javajdk1.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.

Comments

  • zibadianzibadian Posts: 6,349Member
    : 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 : Javajdk1.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/
  • ABDUL HAYEEABDUL HAYEE Posts: 81Member
    : : 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 : Javajdk1.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 JavaServlet2.1 jswdk-1.0
    As advised. When the start server file was run, it gave the message to provide the path
    CLASSPATH = [jdk HOME]libclasses.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 FilesJavajdk1.5.0_09

    PATH C:Program FilesJavajdk1.5.0_09in

    CATALINA_HOME C:apachi-tomcat-5.5.20apach-tomcat-5.5.20

    CLASS_PATH C:apachi-tomcat-5.5.20apach-tomcat-5.5.20common libservlet-api.jar ; C:apachi-tomcat-5.5.20apach-
    tomcat-5.5.20commonlibjsp-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.




Sign In or Register to comment.