Javax.servlet does not exist  (please help)

i was going to try my first example nad follwing head first
package com.myweb.trying;
import  javax.servlet.*;
import  javax.servlet.http.*;
import  java.io.*;
public class Serv1 extends HttpServlet {
     public void doPost(HttpServletRequest request,HttpServletResponse response)throws IOException,ServletException{
          response.setContentType("text/html");
          PrintWriter out = response.getWriter();
          out.println("Shutup and see this");
          String c = request.getParameter("color");
          out.println("<be>the color selected is"+ c);
}on giving the command
C:\project1\app1>javac -classpath c:\Tomcat6\lib\servlet-api.jar:classes:. -d classes src\com\myweb\trying\Serv1.java
this is what i got
src\com\myweb\trying\Serv1.java:3: package javax.servlet does not exist
import  javax.servlet.*;
^
src\com\myweb\trying\Serv1.java:4: package javax.servlet.http does not exist
import  javax.servlet.http.*;
^
src\com\myweb\trying\Serv1.java:7: cannot find symbol
symbol: class HttpServlet
public class Serv1 extends HttpServlet {
                          ^
src\com\myweb\trying\Serv1.java:8: cannot find symbol
symbol  : class HttpServletRequest
location: class com.myweb.trying.Serv1
       public void doPost(HttpServletRequest request,HttpServletResponse respon
se)throws IOException,ServletException{
                          ^
src\com\myweb\trying\Serv1.java:8: cannot find symbol
symbol  : class HttpServletResponse
location: class com.myweb.trying.Serv1
       public void doPost(HttpServletRequest request,HttpServletResponse respon
se)throws IOException,ServletException{
                                                     ^
src\com\myweb\trying\Serv1.java:8: cannot find symbol
symbol  : class ServletException
location: class com.myweb.trying.Serv1
       public void doPost(HttpServletRequest request,HttpServletResponse respon
se)throws IOException,ServletException{
                     ^
6 errors please help what im doing wrong
i have latest ver.6 of tomcat installed

exchange the : in your classpath with a ;
windows, in its infinite wisdom, uses a semi-colon as the path separator. the colon is what you would use if you were on unix, macosx, or linux.
== eldrich

Similar Messages

  • Error: Javax.mail does not exist, please help

    I have copies mail.jar and activation.jar in the classpath directory as instructed, then try to compile but got the below error: package javax.mail does not exist
    please help.
    G:\CRD>javac SendMailBean.java
    SendMailBean.java:22: package javax.mail does not exist
    import javax.mail.*; //JavaMail packages
    ^
    SendMailBean.java:23: package javax.mail.internet does not exist
    import javax.mail.internet.*; //JavaMail Internet packages
    ^
    SendMailBean.java:43: cannot resolve symbol
    symbol : class Session
    location: class SendMailBean
    Session l_session = Session.getDefaultInstance(l_props, null);
    ^
    SendMailBean.java:43: cannot resolve symbol
    symbol : variable Session
    location: class SendMailBean
    Session l_session = Session.getDefaultInstance(l_props, null);
    ^
    SendMailBean.java:48: cannot resolve symbol
    symbol : class MimeMessage
    location: class SendMailBean
    MimeMessage l_msg = new MimeMessage(l_session); // Create a New message
    ^
    SendMailBean.java:48: cannot resolve symbol
    symbol : class MimeMessage
    location: class SendMailBean
    MimeMessage l_msg = new MimeMessage(l_session); // Create a New message
    ^
    SendMailBean.java:50: cannot resolve symbol
    symbol : class InternetAddress
    location: class SendMailBean
    l_msg.setFrom(new InternetAddress(p_from)); // Set the From address
    ^
    SendMailBean.java:53: package Message does not exist
    l_msg.setRecipients(Message.RecipientType.TO,
    ^
    SendMailBean.java:54: cannot resolve symbol
    symbol : variable InternetAddress
    location: class SendMailBean
    InternetAddress.parse(p_to, false));
    ^
    SendMailBean.java:57: package Message does not exist
    l_msg.setRecipients(Message.RecipientType.CC,
    ^
    SendMailBean.java:58: cannot resolve symbol
    symbol : variable InternetAddress
    location: class SendMailBean
    InternetAddress.parse(p_cc, false));
    ^
    SendMailBean.java:62: package Message does not exist
    l_msg.setRecipients(Message.RecipientType.BCC,
    ^
    SendMailBean.java:63: cannot resolve symbol
    symbol : variable InternetAddress
    location: class SendMailBean
    InternetAddress.parse(p_bcc, false));
    ^
    SendMailBean.java:68: cannot resolve symbol
    symbol : class MimeBodyPart
    location: class SendMailBean
    MimeBodyPart l_mbp = new MimeBodyPart();
    ^
    SendMailBean.java:68: cannot resolve symbol
    symbol : class MimeBodyPart
    location: class SendMailBean
    MimeBodyPart l_mbp = new MimeBodyPart();
    ^
    SendMailBean.java:72: cannot resolve symbol
    symbol : class Multipart
    location: class SendMailBean
    Multipart l_mp = new MimeMultipart();
    ^
    SendMailBean.java:72: cannot resolve symbol
    symbol : class MimeMultipart
    location: class SendMailBean
    Multipart l_mp = new MimeMultipart();
    ^
    SendMailBean.java:83: cannot resolve symbol
    symbol : variable Transport
    location: class SendMailBean
    Transport.send(l_msg);
    ^
    SendMailBean.java:98: cannot resolve symbol
    symbol : class MessagingException
    location: class SendMailBean
    } catch (MessagingException mex) { // Trap the MessagingException Error
    ^
    19 errors

    Another person who doesn't understand how to set CLASSPATH.
    Move those JARs into the same directory as your SendMailBean.java and do it like this:
    javac -classpath .;mail.jar;activation.jar -d . *.java
    java -classpath .;mail.jar;activation.jar SendMailBeanRead how to set CLASSPATH properly:
    http://java.sun.com/j2se/1.4.2/docs/tooldocs/windows/classpath.html

  • Package javax.servlet does not exist, package javax.servlet.http does not

    Dear All,
    I am a newbie to JAVA.
    I installed JDK1.6.0_04, then NetBeans IDE 6.0
    I tried compiling an example servlet, but got this error message:
    package javax.servlet does not exist, package javax.servlet.http does not exist
    I tried locating these packages, but in vain. I also tried setting the CLASSPATH to many values, still it did not work.
    Can anyone, please, help me with this.
    Should I be able to see/locate these packages, do I have to download them?
    Thank you very much.

    davidgoodman wrote:
    Dear All,
    I am a newbie to JAVA.
    I installed JDK1.6.0_04, then NetBeans IDE 6.0
    I tried compiling an example servlet, but got this error message:
    package javax.servlet does not exist, package javax.servlet.http does not exist
    What servlet/JSP engine do you plan to deploy to? Tomcat, perhaps?I think it's Tomcat (C:\Program Files\Apache Software Foundation\Apache Tomcat 6.0.14). Are there other engines that come with NetBeans IDE 6.0 (when I downloaded NetBeans, I chose ALL)
    >
    If so, you'll need to put the servlet JAR in your CLASSPATH. (servlet-api.jar for Tomcat 5.5 and earlier, servlet.jar for 6.0 >and later.)
    I tried locating these packages, but in vain.
    You won't find them until you realize that you have to deploy that servlet someplace.How to deploy?
    I also tried setting the CLASSPATH to many values, still it did not work.
    See above. What were you planning to set CLASSPATH to?First I set to:
    C:\Program Files\Apache Software Foundation\Apache Tomcat 6.0.14\lib (because I found jar named servlet-api.jar in this folder)
    Later I added this:
    C:\Program Files\Java\jdk1.6.0_04\lib (out of trial-and-fail)
    Finally I added some paths that lead to a library such as
    C:\Program Files\glassfish-v2\lib
    C:\Program Files\glassfish-v2\lib\ant\lib
    Can anyone, please, help me with this.
    Should I be able to see/locate these packages, do I have to download them?
    You have to get a servlet/JSP engine. Step 1.Thank you for your help

  • ATMTag.java:5: package javax.servlet does not exist

    My j2ee jdk1.4.2 is not supporting javx package.
    i already set all pathh and class path.
    anybody can help me.
    details are given below ::
    C:\AVA\J2EE Programs\JSP\JSPCustomTag>javac ATMTag.java
    ATMTag.java:5: package javax.servlet does not exist
    import javax.servlet.*;
    ^<br>
    ATMTag.java:6: package javax.servlet.http does not exist
    <br>
    import javax.servlet.http.*;
    <br>
    ATMTag.java:18: cannot resolve symbol
    symbol : class TagSupport
    location: class ATMTag
    public class ATMTag extends TagSupport{
    <br> ^
    ATMTag.java:29: cannot resolve symbol
    symbol : class JspTagException
    location: class ATMTag
    public int doStartTag() throws JspTagException{
    <br> ^
    ATMTag.java:31: cannot resolve symbol
    symbol : class JspWriter
    location: class ATMTag
    <br> JspWriter out =pageContext.getOut();
    ^
    ATMTag.java:31: cannot resolve symbol
    symbol : variable pageContext
    location: class ATMTag
    <br> JspWriter out =pageContext.getOut();
    ^
    ATMTag.java:56: cannot resolve symbol
    symbol : variable pageContext
    location: class ATMTag
    pageContext.getOut().write(str);
    <br> ^
    ATMTag.java:60: cannot resolve symbol
    symbol : variable EVAL_PAGE
    location: class ATMTag
    return EVAL_PAGE;
    ^
    8 errors

    When compiling servlets etc, you need to include in your classpath a jar file with all the javax.* classes defined in it.
    For Tomcat this is called servlet.jar and is in (I think) [TOMCAT_HOME]/shared/lib or /common/lib
    For J2EE 1.4 Server, the jar is [J2EE_HOME]/lib/j2ee.jar
    Where the _HOME directory is the directory where you installed J2EE.
    Include this jar file in your classpath when compiling.
    Good luck,
    evnafets

  • Package javax.servlet does not exists - Cannot resolve symbol

    Hello,
    I am using JDK 1.3.1.06 version. I wanted to compile a simple servlet using this. But I am getting plenty of errors for all javax package. Why it is not able to find javax package classes?
    The following is the program I have tried to compile.
    import javax.servlet.*;
    import javax.servlet.http.*;
    import java.io.*;
    public class TestServlet extends HttpServlet
    public void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException
    process(request, response);
    public void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException
    process(request, response);
    private void process(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException
    PrintWriter out = response.getWriter();
    out.println("Hello World !");
    I am getting errors like this :
    Package javax.servlet does not exists.
    cannot resolve symbol
    symbol : class HttpServlet
    Please advice me some solutions fast.
    Thanking you,
    ForumAns.

    javax.servlet doesn't come with the standard jdk. It's part of J2EE.
    If you have tomcat, you can use the server.jar that comes with tomcat.
    Or you can just download J2EE sdk instead.
    I am getting errors like this :
    Package javax.servlet does not exists.
    cannot resolve symbol
    symbol : class HttpServlet

  • Package javax.servlet does not exists ?

    Hello,
    I am using JDK 1.3.1.06 and trying to compile a simple Servlet. But getting errors as javax package classes does not exits and cannot resolve symobol.
    The following is the program I am trying to compile:
    import javax.servlet.*;
    import javax.servlet.http.*;
    import java.io.*;
    public class TestServlet extends HttpServlet
         public void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException
              process(request, response);
         public void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException
              process(request, response);
         private void process(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException
              PrintWriter out = response.getWriter();
              out.println("Hello World !");
    I am getting errors such as :
    Package javax.servlet does not exists.
    cannot resolve symbol
    symbol : class HttpServlet
    Please advice me of any solution asap. Deep trouble.
    Thanking you,
    Forumans.

    Just a guess...
    JDK 1.3.1.06 This represents the Java language in the form of a JVM and the Java API (like java.lang.String.)
    ServletThis is in J2EE, which if you look above was not mentioned.
    If you look in the java docs for the JDK you will also find that javax.servlet does not exist.
    I would guess however that you could start here - http://java.sun.com/j2ee/
    However, keep in mind that your servlet still needs to run in something, so you better make sure that you are compiling against the correct J2EE server for what you are doing.

  • Package javax.servlet does not exist - settings appear to be correct

    laugh as I write this post...it's hardly a "new topic."...but everything seems set just as it should be...
    Okay...I'm a seasoned programmer in every language but JAVA. Here's the issue...every time I try to use the Core Servlets book/website by Marty Hall and Larry Brown I get hung up on the packages. This time, I downloaded and followed step by step what the website said to do...it was even preconfigured for me! Alas...I am getting the following compliation errors on a "simple packagless" program with NetBeans:
    Compiling 1 source file to C:\Servlets+JSP\HelloServlet\build\classes
    C:\Servlets+JSP\HelloServlet\src\helloservlet\HelloServlet.java:2: package javax.servlet does not exist
    import javax.servlet.*;
    C:\Servlets+JSP\HelloServlet\src\helloservlet\HelloServlet.java:3: package javax.servlet.http does not exist
    import javax.servlet.http.*;
    C:\Servlets+JSP\HelloServlet\src\helloservlet\HelloServlet.java:13: cannot find symbol
    symbol: class HttpServlet
    public class HelloServlet extends HttpServlet {
    C:\Servlets+JSP\HelloServlet\src\helloservlet\HelloServlet.java:14: cannot find symbol
    symbol : class HttpServletRequest
    location: class HelloServlet
    public void doGet(HttpServletRequest request,
    C:\Servlets+JSP\HelloServlet\src\helloservlet\HelloServlet.java:15: cannot find symbol
    symbol : class HttpServletResponse
    location: class HelloServlet
    HttpServletResponse response)
    C:\Servlets+JSP\HelloServlet\src\helloservlet\HelloServlet.java:16: cannot find symbol
    symbol : class ServletException
    location: class HelloServlet
    throws ServletException, IOException {
    6 errors
    BUILD FAILED (total time: 0 seconds)
    These are my environment settings (note that the JAVAX package is located under the src folder in Java)
    Catalina Home:
    C:\apache-tomcat-6.0.10
    CLASSPATH:
    C:\apache-tomcat-6.0.10\lib\servlet-api.jar;
    C:\apache-tomcat-6.0.10\lib\jsp-api.jar;
    C:\apache-tomcat-6.0.10\lib\el-api.jar;
    C:\Servlets+JSP;..;..\..;
    C:\Program Files\Java\jdk1.6.0_03\src
    JAVA_HOME
    C:\Program Files\Java\jdk1.6.0_03
    Path:
    C:\Program Files\Java\jdk1.6.0_03\bin;%PATH%
    Any ideas (excluding the one that maybe I should let my hair grow out, put on some tackey shorts and sandles and start palying an instrument in the streets of Austin for living?)

    cabkats wrote:
    You are then suggesting that I make the corrections directly to the files in apache using notepad instead of using the envir. variables?No I am not suggesting that. I am suggesting that you need to read the documentation about the product(s) and set them up the way they require, rather than blindly think that the CLASSPATH environment variable is some magical entity.
    I will try this, but I was hoping that since my IDE auto configured (with exception to java_home) that I would not have to do this. I wil give it try....thanks for the suggestion.See, you're using an IDE. Like I mentioned, IDEs do not use the CLASSPATH environment variable. You need to set up your project in your IDE in such a way that it knows what the dependent jars are. I'm sure there's a way to add jars to your project's dependencies.

  • ANT script genrated error: package javax.servlet does not exist

    Hi there,
    I am running ANT and confronted this message:
        [javac] Compiling 1 source file to C:\eclipseProjects\tomcat_test
        [javac] C:\eclipseProjects\tomcat_test\WEB-INF\src\WebTest.java:4: package javax.servlet does not exist
        [javac] import javax.servlet.ServletException;
        [javac] ^I googled around and found this solution:
    servlet-api.jar is the jarfile that contains javax.servlet.ServletException and javax.servlet.http.* which are imported by WebTest.java and must therefore be found in the classpath. If javac doesn't find this jar (or the javax.servlet packages), it will say (or shout, depending on my and javac's mood): [the error message]
    well...I set in the classpath the location of the servlet-api.jar
    (found at: C:\Tomcat\common\lib)
    I set it with the environment variable (windows xp)
    Just as it's shown here: http://www.cs.usask.ca/~wew036/latex/env-env.jpg
    NOTHING :-(
    could anyone assist, thanks

    Hi..seems u r new to J2ee.. dont worry its a very small problem:
    Here is the solution.. yes u have to edit the environment variables:..
    I am using J2EE sdk 1.4 and running on xp
    This is the classpath setting:
    C:\Sun\AppServer\lib\j2ee.jar;
    This is the PATH setting
    C:\Sun\AppServer\bin;
    Good Luck :)

  • Javac -- javax.servlet does not exist

    I have j2sdk1.4, j2re1.4 installed on rhat7.1
    and CLASSPATH=/j2sdk1.4/lib/tools.jar
    PATH=/j2sdk1.4/bin
    when I run javac (or /j2sdk1.4/bin/./javac) test.java
    it issue: test.java: package javax.servlet does not exist
    import javax.servlet.*;
    any suggestion?
    Thanks in advance.

    try {
    javac -classpath /your/path/to/j2ee.jar *.java
    }catch(WrongAnswerException e) {
         System.exit(1);
    }

  • Error message ORA-27101 shared memory realm does not exist,Please help me

    My oracle(oracle 8.1.6) is installed successfully,But when I connect to the database it shows me the error:
    ORA-27101 shared memory realm does not exist.
    How can I deal with it?Please help me.

    The OTN Customer Service - Feedback forum answers questions relating to the OTN site and other customer service issues. It does not answer technical or installation questions. Please post your topic in the appropriate forum.
    Best Regards, OTN Team

  • ORA-27101: shared memory realm does not exist - Please help!!!!!

    OS : Win 2000 server
    After good installation, when I want to connect instance ORCL by using SQLPLUS worksheet (as system/manager), I got this 2 error messages :
    ORA - 01034 : Oracle not available
    ORA - 27101 : shared memory realm does not exist
    In regedit: Ora_home = "my true path to Orahome directory
    Default_SID = ORCL
    Thank you for help !!!!!!

    Can you connect using plain SQL*Plus (sqlplus.exe)? Your database may not be started, try this:
    c:\sqlplus /nolog
    SQL>connect / as sysdba
    SQL>startup
    Then try connecting as one of the default users:
    SQL>connect scott/tiger

  • Package javax.servlet does not exist

    Trying to learn servlets. just installing software & tesing install.
    What I have done:
    1. read Deitel text, and written & tested applications and applets..even on my web site. surprise surprise.
    2. installed J2Std Edition and did applications & applets.
    3. Wanted to do servlets so downloaded and installed TOMCAT(got their index html so looks like it is at least running).
    4. Took Deitel servlet pgm example and tried to compile, but got the subject msg and others concening methods i expect to be in the include.
    5. After reading lots decided maybe I need to install J2EE to do servlets(I dont see where Deitel tells me I need to do this).
    6. Went to SUN, downloaded and installed J2EE. Im on NT 4.0 so I set JAVA_HOME and J2EE_HOME.
    7. Read topics this forum, so I found servlet.jar in my TOMCAT dir, copied it to jdk1.3.1\jre\bin and jdk1.3.1\jre\lib.
    8. set CLASSPATH to one of these.
    9 STILL get the error. I appreciate any help you can give. Im very new to SUN and am just blindly trying to follow what Dietel tells me to do. I love the JAVA part of the text, but the way they explain the software installs is very poor.
    The jar file is listed as an executable, so I assume I dont need to do any type of unpacking like with a zip file. A puzzle to me is that the text talks about the INCLUDE stmts pointing to directory structurs/file names, but I cant find many of them.. they mmust be hidden in some other pack files I guess because all applications and applets are compiling and running just fine.
    I there any documentation(at SUN or elsewhere) that kind of explains in English to the uninitiated how the different SUN products/packages work together/seperately.. when each one is necessary??
    Thanks for your help [email protected]

    Grayman,
    An application server like Tomcat needs access to a java runtime environment and all the libraries referenced from the application code that you deploy on it.
    So maybe try debugging like this :
    1)first check all your imports in the code
    especially
    import javax.servlet.*;
    import javax.servlet.http.*;
    2) Browse trough the tomcat documentation to see which runtime environment it is running on top of. This could be something like C:\JDK1.2\.. but could be also be C:\program files\java\JDK1.2\.. or
    even (I dont know Tomcat very well) c:\Program Files\Tomcat\bin\Jdk1.2\
    3) Once you have found which is the runtime environment for your application server, you can assume that all .jar-packaged libraries in ...\JDK1.2\lib\ are available to your code. So you could copy servlets.jar to that directory.
    4) make sure to restart Tomcat.
    if you want to check which Classes are available in a .jar - file, do this: 1)open a dos prompt 2)Set PATH=%PATH%;C:\...\JDK1.2\bin (i.e include the jar-utility) as a command line program
    3)cd to the directory where the .jar-file can be found (ex: C:\JDK1.2\lib\rt.jar)
    4) type: jar -tvf rt.jar
    you should see the content on your screen
    java.awt.Textbox.class
    java.awt. etc..
    good luck
    Papyrus

  • Re: javax.servlet does not exists error altough i set all the env. settings

    Include lib and jre/lib path of your java_home in classpath.Putting j2ee jar files in desktop is not a good idea.Desktop executables are sometimes not recognized in classpath.Keep them under a folder in c or d drive.

    i will download J2SE 5.0.i think it will solve the problem.according to the documents...
    Thank you for your help.

  • Package javax.servlet.http does not exist & package javax.servlet does not

    Hello!
    I am trying to compile this file:
    /* serv2.java 29 Sep 04 */
    import java.util.*;
    import java.io.*;
    import javax.servlet.*;
    import javax.servlet.http.*;
    public class serv2 extends HttpServlet
         protected void doPost(HttpServletRequest req, HttpServletResponse res)
                                  throws ServletException, IOException
              res.setContentType("text/html");
              PrintWriter out = res.getWriter();
              out.println("<HTML><HEAD><TITLE>Sample Servlet</TITLE></HEAD>"+'\n'+
                                  "<BODY BGCOLOR='lightgreen'>"+'\n'+
                                  "<H1 ALIGN=CENTER>Heading</H1>" + '\n' +
                                  "<P><H2 ALIGN=CENTER>Message</H2");
              out.println("</BODY></HTML>");
    }And I am getting this error message:
    C:\Program Files\Apache Tomcat 4.0\webapps\ROOT\WEB-INF\classes\serv2.java:4: package javax.servlet does not exist
    import javax.servlet.*;
    ^
    C:\Program Files\Apache Tomcat 4.0\webapps\ROOT\WEB-INF\classes\serv2.java:5: package javax.servlet.http does not exist
    import javax.servlet.http.*;
    ^
    C:\Program Files\Apache Tomcat 4.0\webapps\ROOT\WEB-INF\classes\serv2.java:7: cannot resolve symbol
    symbol : class HttpServlet
    location: class serv2
    public class serv2 extends HttpServlet
    ^
    C:\Program Files\Apache Tomcat 4.0\webapps\ROOT\WEB-INF\classes\serv2.java:9: cannot resolve symbol
    symbol : class HttpServletRequest
    location: class serv2
         protected void doPost(HttpServletRequest req, HttpServletResponse res)
    ^
    C:\Program Files\Apache Tomcat 4.0\webapps\ROOT\WEB-INF\classes\serv2.java:9: cannot resolve symbol
    symbol : class HttpServletResponse
    location: class serv2
         protected void doPost(HttpServletRequest req, HttpServletResponse res)
    ^
    C:\Program Files\Apache Tomcat 4.0\webapps\ROOT\WEB-INF\classes\serv2.java:10: cannot resolve symbol
    symbol : class ServletException
    location: class serv2
                                  throws ServletException, IOException
    ^
    6 errors
    Tool completed with exit code 1
    I have tried setting CLASSPATH lib/servlet.jar but it still will not work.
    Please help me!!!

    Please check this page,
    http://java.sun.com/j2se/1.4.2/docs/tooldocs/windows/classpath.html
    and also
    serv2 -> set it to Serv2
    another nice to read :-)
    http://java.sun.com/docs/codeconv/html/CodeConventions.doc8.html
    +"Class names should be nouns, in mixed case with the first letter of each internal word capitalized"+
    Another thing,
    Put your class in a package, thanks =)
    regards and goodluck,
    jie

  • Package javax.servlet doest not exist

    Hi,
    I just started to learn servlets. But when I am trying to compile my first program, which is HelloServlet , I am getting compilation error saying that Package javax.servlet does not exist, package javax.servlet.http does not exist.
    I am using j2sdk version 1.4.2_04 and Tomcat 5 .
    I set the classpath and it looks like this
    set CLASSPATH=.; C:\ServletPrograms;C:\Tomact\common\lib\servlet-api.jar;C:\Tomcat \common\lib\jsp-api.jar
    I stored my servlet program in C:\ServletPrograms directory.
    Can any body please help with this?????

    I just started to learn servlets. But when I am trying to compile my first program, which is HelloServlet , I am getting compilation error saying that Package javax.servlet does not exist, package javax.servlet.http does not exist.The OP is attempting to compile.
    I set the classpath and it looks like this
    set CLASSPATH=.; C:\ServletPrograms;C:\Tomact\common\lib\servlet-api.jar;C:\Tomcat \common\lib\jsp-api.jarThe OP is also attempting to set the classpath but notice that here the path to the servlet-api.jar has Tomcat mis-spelled. Is this the actual classpath or a typo when posting the question?

Maybe you are looking for

  • How do I change the bank associated with receiving my ebill?

    I'm trying to setup my bank account to receive ebills from Verizon, but whenever I try I receive the following message, "This account number is already active for e-bills. E-bills can only be associated with one user name."  I've looked all over my a

  • InDesign to PDF Error

    I'm trying to export my InDesign document to PDF, but even though i select all the pages, it only exports the last page. What can i do?

  • About chart of accounts

    Hi, While creating the Vendor master record i IDES i am getting an error . System prompts for the Reconciliation account. Prior to creation of vendor master record i already have done following configurations 1.I CREATE COPY OF CHART OF ACCOUNTS from

  • Color in Drop Shadows

    Thank you to the 2 people who have already responded about this, but I don't know how to get to those boxes shown. I am using CS5, about to upgrade but have not so far. Is it possible for someone to explain how to arrive at the dialog boxes shown on

  • To Create a Dynamic Tree

    Grant, How to generate a Tree in Oracle 11g Dynamically. Thanks & Regards, Srikanth Reddy