Results 1 to 5 of 5

Thread: urgent help

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Jan 2000
    Posts
    69
    Hey guys,


    I am getting compiling errors on servlets as follows:

    SimpleServlet1.java:1: Package javax.servlet not found in import.
    import javax.servlet.*;
    ^
    SimpleServlet1.java:2: Package javax.servlet.http not found in import.
    import javax.servlet.http.*;
    ^
    SimpleServlet1.java:5: Superclass HttpServlet of class SimpleServlet1 not found.

    public class SimpleServlet1 extends HttpServlet {
    ^
    any suggestions on fixing it?

    Manoj

  2. #2
    Dazed Member
    Join Date
    Oct 1999
    Location
    Ridgefield Park, NJ
    Posts
    3,418
    Is servlet a package? Ive never heard if it...

    These are the ones i know that are contained
    in Swing.

    javax.accessibility
    javax.swing
    javax.swing.border
    javax.swing.colorchooser
    javax.swing.event
    javax.swing.filechooser
    javax.swing.pending
    javax.swing.plaf
    javax.swing.table
    javax.swing.text
    javax.swing.tree
    javax.swing.undo
    javax.swing.text.html
    javax.swing.text.html.parser
    javax.swing.text.rtf

  3. #3

    Thread Starter
    Lively Member
    Join Date
    Jan 2000
    Posts
    69

    Servlet package class

    Hey Dilenger4,

    Serlvet has its own package. I found out last nite(with no help by sun), that you would need to download jswdk-1.0 to incorporate the package for servlets and jsps. In the autoexec.bat file, you would have the classpath point to the respect servlet.jar(to compile only the servlet files) and respect jar file for jsp(to compile the jsp files).

    I can finally start testing for the servlets thank god!!! Right now, I am just using javawebserver2.0 which does very good job for servlet and jsp application server.

    Here is the link to give a better understanding:

    http://javaboutique.internet.com/tutorials/JSP/


    Hope that helps.

  4. #4
    Dazed Member
    Join Date
    Oct 1999
    Location
    Ridgefield Park, NJ
    Posts
    3,418
    cool thank's ill check it out. I didnt think it was included
    in the core Java API. Just like when i tried including the
    javax.crypto packages they were included in the JCE.
    not the core API. {{{laughing}}}

    Have a happy Easter!!

  5. #5

    Thread Starter
    Lively Member
    Join Date
    Jan 2000
    Posts
    69
    Hey Dilenger4,

    Happy Easter!!!

    Manoj

Posting Permissions

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



Click Here to Expand Forum to Full Width