servlet compilation error

Posted on 2006-05-29
Last Modified: 2013-11-24
while compiling servlet coding it gives following message
javax.servlet.* package not found or
javax.servlet.http.* package not found

while same coding works perfectly in other computer.

What could be reason?
Question by:reshampun
    LVL 16

    Accepted Solution


    Are you sure that the servlet-api.jar is in your classpath? Make sure that this file is available.

    LVL 8

    Expert Comment

    first of all you have to use Java 2 enterprice edition not standart edition. becuase servlet interface is available in J2EE you can download the sdk from the following link

    second thing just go to he classpath in your IDE and define the location of the jar file of J2EE.

    i advice u to use netbeans as IDE.

    most important thing is servlet-api.jar  file shud b present in ur class path.

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Threat Intelligence Starter Resources

    Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

    Go is an acronym of golang, is a programming language developed Google in 2007. Go is a new language that is mostly in the C family, with significant input from Pascal/Modula/Oberon family. Hence Go arisen as low-level language with fast compilation…
    Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
    The viewer will learn how to implement Singleton Design Pattern in Java.
    This theoretical tutorial explains exceptions, reasons for exceptions, different categories of exception and exception hierarchy.

    758 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    14 Experts available now in Live!

    Get 1:1 Help Now