javax.servlet and javax.servlet.http

Discussion in 'Java' started by Andrew Thompson, Apr 24, 2007.

  1. newbie_at_tomcat wrote:
    ...
    >What (more) is needed to enable Eclipse to resolve the
    > import for javax.servlet and javax.servlet.http?


    Add the jar's to the compilation and runtime classpath.
    If you are not able to figure how to do that (I suggest,
    in the first instance 'F1 - search - classpath - enter',
    then if that does not work for you,) take it up on one
    of the Eclipse groups, found here.
    <http://www.eclipse.org/newsgroups/>

    --
    Andrew Thompson
    http://www.athompson.info/andrew/

    Message posted via http://www.javakb.com
    Andrew Thompson, Apr 24, 2007
    #1
    1. Advertising

  2. Hi,

    I try to work with the javax.servlet and javax.servlet.http classes.
    So first I downloaded them from java.sun.com. The download results in a servlet.jar file.
    Simply putting this file in jre directory does not enable Eclipse (3.3) to resolve the import for javax.servlet and javax.servlet.http.
    Then I have downloaded the J2SE jdk 1.5 update 11 winstall package from java.sun.com and installed the JDK + its own JRE.
    Eclipse is not able to resolve the import for javax.servlet and javax.servlet.http.
    Then I have created a JAVA_HOME env. var that points to: C:\Program Files\Java\jdk1.5.0_11\lib and copied servlet.jar to this direcory.
    Eclipse is still not able to resolve the import for javax.servlet and javax.servlet.http.

    What (more) is needed to enable Eclipse to resolve the import for javax.servlet and javax.servlet.http?

    Any help is much appreciated!


    --------------= Posted using GrabIt =----------------
    ------= Binary Usenet downloading made easy =---------
    -= Get GrabIt for free from http://www.shemes.com/ =-
    newbie_at_tomcat, Apr 25, 2007
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. chamikara
    Replies:
    1
    Views:
    49,834
  2. HARI OM
    Replies:
    0
    Views:
    9,351
    HARI OM
    May 4, 2005
  3. Replies:
    4
    Views:
    13,232
    Simon Brooke
    Nov 11, 2006
  4. Replies:
    5
    Views:
    2,259
  5. Lew
    Replies:
    1
    Views:
    604
    newbie_at_tomcat
    Apr 25, 2007
Loading...

Share This Page