Results 1 to 2 of 2
  1. #1
    makpandian's Avatar
    makpandian is offline Senior Member
    Join Date
    Dec 2008
    Location
    Chennai
    Posts
    450
    Rep Power
    6

    Default can't import javax.servlet.*;

    hello
    i am using jdk1.6 update 11.
    but i could not import servlet packages.
    what is the problem?

  2. #2
    dswastik is offline Senior Member
    Join Date
    Dec 2008
    Location
    Kolkata
    Posts
    282
    Rep Power
    6

    Default

    Depending upon the server being used, you need to set the classpath. Servlet apis are part of JEE not the standard edition. For e.g. if you use tomcat as your server you should find a file called servlet-api.jar, and you need to include this file to your classpath.

Similar Threads

  1. javax.servlet.ServletException:Can't get definitions factory
    By Peter in forum JavaServer Faces (JSF)
    Replies: 3
    Last Post: 12-02-2008, 07:29 AM
  2. javax.servlet.ServletException: No collection found
    By pushpendra21only in forum JavaServer Pages (JSP) and JSTL
    Replies: 0
    Last Post: 11-18-2008, 08:07 AM
  3. Replies: 1
    Last Post: 08-07-2007, 03:47 PM
  4. Error: javax.servlet.ServletException: Column not found
    By barney in forum JavaServer Pages (JSP) and JSTL
    Replies: 1
    Last Post: 08-07-2007, 07:20 AM
  5. I can't import javax.mail
    By katie in forum New To Java
    Replies: 2
    Last Post: 08-04-2007, 05:05 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •