Where is javax.servlet.* in JDK1.4.1?

Hi,
I had built a project with JDK 1.3 before.
I can import javax.servlet.*; and javax.servlet.http.*; to let the class extends HttpServlet.
However, it has compile error when I use JDK1.4.1 with JBuilder 9. There is no javax.servlet.*;
How should I fix this error?
Thanks

do a search for servlet.jar file in your computer and include it in your classpath, if you dont find it...
...servlet classes/packages are not part of jdk, you can get them through the servlet engine(e.g Tomcat). you can download Tomcat from http://jakarta.apache.org/tomcat/,
once you download and extract it, go to tomcat/common/lib you will see servlet.jar include it in your classpath.

Similar Messages

  • JDK1.4.....where is javax.servlet*

    Does anyone know where the javax.servlet,javax.servlet.http packages are in JDK1.4?

    You need the JSDK which has the servlet.jar library. These don't come packaged with JDK1.4 as far as I know. Typically you need to donload them seperately. You'll then have to add the servlet.jar to your classpath.
    The servlet.jar can go anywhere, so long as it's in your classpath and javac and java can find it you should be okay.

  • Where is javax.servlet.http.HttpSessionBindingListener;?

    hello
    where is javax.servlet.http.HttpSessionBindingListener
    what do i ened in my classpath under jakarta/tomcat to make thi available?

    so i have this in my autoexec.bat
    set CLASSPATH=C:\j2sdk1.4.0\jre\lib\ext;c:\j2sdk1.4.0\lib\comm.jar;C:\jakarta-tomcat-4.0.1\webapps\ROOT\WEB-INF\classes\;C:\jakarta-tomcat-4.0.1\common\lib\;and still it does not see the package i need.
    am i missing something here?
    --jN                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • Where oh where is javax.servlet?

    I would really like to have
    import javax.servlet.*;
    import javax.servelet.http.*;
    but I geta whole lot of delightful messages like package javax.servlet.http. not found in import. Have taken a brief looke inside src.jar, and while there is a javax, it does not contain the servelet stuff. I've seen a previous question of the week that pointed towards lib/jdk.jar or something of that ilk, but I don't have that either.
    I've downloaded j2sdk_1_3_1_01-win recently, and am using Forte.
    Anybody have any ideas??

    OK, this is how things are structured. all my java files are kept in c:\java. Within that there is jdk2, and I've now placed servlet.jar into lib.
    autoexec.bat looks like
    PATH C:\Novell\Client32;%PATH%;
    Set NWLANGUAGE=ENGLISH
    Set CATALINA_HOME=C:\Program Files\jakarta-tomcat-4.0.1
    Set JAVA_HOME=C:\java\jdk2
    Set CLASSPATH=C:\java\jdk2\lib\servlet.jar
    (I'm using a Novel client, hence some of the stuff in the PATH).
    Still don't work. I'd really appreciate any help that can be passed my way.
    RT

  • Javax.servlet package -- where is it?

    Downloaded latest version of Tomcat and expected the javax.servlet pacakge to be in the folders but it appears to not be. Where can I go to get the jar file for this?

    Did you download the lite version of Tomcat for JDK 1.4? I'm not sure what all that leaves out as I've never used it, I always go for the full package, but it's possible it doesn't include javax.servlet since it's part of JDK 1.4.

  • Where can i find javax.servlet.http.httpServletRequest in weblogic jars

    Hi,
    i'm migrating from weblogic 8 to weblogic 10.3.
    in my java codes, i use import javax.servlet.http.httpServletRequest. Previously this package can in found in weblogic.jar in weblogic 8.
    However weblogic.jar for 10.3 does not have this package. Where can i find this package?
    Thanks

    oh i see. the api.jar has the indicate the path to the servlet package.
    /modules/javax.servlet_1.0.0.0-2-5.jar.
    Thanks for the guidance.:)

  • Where can i find the package of javax.servlet?

    i have installed the J2EE SDK,and Lomboz.i want use Eclipse.but when i import the package of javax.servlet.it said there is no such a package exist .Where can i find it?and how can i use it in Eclipse~Help me~~

    You can download it here :
    http://java.sun.com/products/servlet/download.html
    FeedFeeds : Read news a new way!
    http://www.feedfeeds.com

  • Where I can find the packages javax.servlet?

    I am using the Jbuilder 5 and I need to do a programm with servlets but it says that it cannot find the javax.servlet although I know it has the package servlet..
    ..what can I do?

    in your servlet runner the servlet.jar is normaly included. check if you find it on your hd. if no, you might get tomcat (jakarta.apache.org) the reference implementation for servlets. than, add the servlet.jar to your classpath.

  • Where cannot i access class javax.servlet

    i dont kwon whta happend this: "OutputFilterBase.java": Error #: 302 : cannot access class javax.servlet.ServletResponse; java.io.IOException: class not found: class javax.servlet.ServletResponse at line 62, column 22
    please help me
    thanks

    You need a servlet engine for servlets. Like resin, tomcat etc. Then add it to classpath.
    Andreas

  • 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

  • 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

  • Javax.servlet.* Not Found Error - Please help

    I am having a great deal deal of trouble trying to compile a program using javax.servlet and javax.servlet.hhtp.*. I have setup the JAVA_HOME and the CLASSPATH variables as per the Installation instructions. I appear to have hit a brick wall and I am absolutely desperate to get this working. I have installed the J2EE SDK as well as the Servletapi2.1. Please Help.
    Variables:
    CLASSPATH=c:\jdk1.3\lib\tools.jar;c:\j2sdkee1.3.1\lib\j2ee.jar;c:\jdk1.3\jre\bin;c:\jdk1.3\jre\lib;c:\mm.mysql-2.0.14\org;c:\jdk1.3\lib\servlet.jar;
    JAVA_HOME=c:\jdk1.3;
    J2EE_HOME=c:\j2sdkee1.3.1;
    PATH=%PATH%;c:\jdk1.3\bin;c:\j2sdkee1.3.1\bin;
    Error message from compiler:
    L:\PROGRA~1\allaire\jrun\servers\default\loanstest\web-inf\classes\PasswordServlet.java:27: package javax.servlet does not exist
    import javax.servlet.*;
    ^
    L:\PROGRA~1\allaire\jrun\servers\default\loanstest\web-inf\classes\PasswordServlet.java:30: package javax.servlet.http does not exist
    import javax.servlet.http.*;
    ^
    L:\PROGRA~1\allaire\jrun\servers\default\loanstest\web-inf\classes\PasswordServlet.java:39: cannot resolve symbol
    symbol : class HttpServlet
    location: class PasswordServlet
    public class PasswordServlet extends HttpServlet

    I can only think of three suggestions.
    One, use your mouse to "cut-n-paste" the value of CLASSPATH and verify that those files are exactly where you think they are, and are spelled right.
    E.g.
    CD C:\JDK1.3\LIB
    DIR SERVLET.JAR
    Two, if they're spelled right, run "jar tvf" on the files to make sure they aren't corrupted or something.
    E.g.:
    JAR TVF SERVLET.JAR
    Three, since you're working in Windoze, try putting the value inside double quotes. E.g.:
    SET CLASSPATH="c:\jdk1.3\lib\tools.jar;c:\j2sdkee1 ... etc ... "
    If you haven't tried the above, give it a go, see what happens.

  • Javax.servlet classes...  very quick to answer

    I have downloaded the javax classes, but I have no idea how to install them... when I try and compile code including
    import javax.servlet.*;
    I get the error package javax.servlet.http does not exist.
    I have installed tomcat 4.0.1, and I have set my JAVA_HOME env variable to /usr/java/jdk1.3.1_02 which is where I installed my java stuff. I compiled as such
    javac helloworld.java
    help? please :) I just want to get off hte ground.
    Oh yes I can also access my tomcat on port 8080, but I don't think that's involved cause it's compiling I am trying to do not run it yet.. that comes later :(
    Josh.

    After a break i noticed my stupidity... To stop people from needlessly answering this post, and to possibly help others who are as mentally challenged as myself, the answer to my question is that I had to set
    CLASSPATH=mydirwithjavax
    NOT
    PATH=mydirwithjavax
    Cheers,
    Josh.

  • Package javax.servlet doesnot exist

    i am using jsp and mysql along with jdk1.3.1_08, tomcat, redhat linux, apache for my current project. i decided to use servlets to enhance my project and make it more efficient.
    however, when i compile TestServlet.java, it generates 10 errors.
    one of these errors say that 'package javax.servlet' doesn't exist.
    i tried searching j2ee.jar in my pc but my search results turn up empty.
    so i checked the documentation and this is what it says :
    Q: What do I need in my CLASSPATH?
    A: All you need is a correct version of JDK (1.1.x or 1.2).
    Since the JSP engine also uses 'javac' it needs to be in the CLASSPATH.
    If you are using JDK 1.1.x it will automatically be included. If
    you are using JDK 1.2 you will need to set JAVA_HOME to the directory
    where JDK is installed or alternately you can put "tools.jar" in your
    CLASSPATH.
    All other classes, jar files that are needed, are put by the startserver
    script and you don't need to worry about them.
    Q: Where are the classes for JSPs and Servlets?
    A: webserver.jar -- class files for Servlet Engine.
    lib/jspengine.jar -- class files for JSP Engine.
    lib/servlet.jar -- Public APIs for Servlet.
    lib/jsp.jar -- Public APIs for JSP.
    lib/xml.jar -- classes for parsing XML document
    so, after reading the documentation, i put xml.jar, servlet.jar and webserver.jar in my classpath along with tools.jar and rt.jar
    i tried searching for jspengine.jar and jsp.jar but my search results turn up empty. what should i do? by the way, below is my classpath (if it's any help at all):
    export CLASSPATH=/usr/local/jdk1.3.1_08/jre/lib/rt.jar:/usr/java/lib/tools.jar:/usr/src/jakarta/dist/tomcat/lib/servlet.jar:/usr/src/jakarta/dist/tomcat/lib/webserver.jar:/usr/src/jakarta/dist/tomcat/lib/xml.jar:
    i know a bit about java like methods, events, classes but i don't know much about jars and servlets. i'm still new to them so pls don't get mad
    thank u very much

    my problem was that i didn't reboot my pc thanks everyone for ur help!

  • Class javax.servlet.Servlet not found - problem

    Hello,
    i'm using intellij and tomcat . when i try to configure intellij to use tomcat it says that it doesn't find javax.servlet.Servlet class.
    i'm using jdk1.5.0_05. what can i do to fix this error?
    tnx,
    clauditza

    ok!
    and where can i find this particular jar? i have searched it on java.sun.com, but all i could find was j2ee that includes support for servlets

Maybe you are looking for

  • Return/exchange declined

    I tried to return a laptop and I was declined because I was told I returned to many items within a 90 day period.   How pathetic is this? I buy laptops, tablets and desktops online usually open box to save money. Several of my purchases recently were

  • How do you change the name of the owner on the I Pad

    How do you change the name of the owner on the I Pad?

  • Adding Device support/definitions in Ciscoworks LMS 3.2

    Hi All I am having some issues adding updated definitions for Cisco C3750X-48PS switches. We have ciscoworks LMS 3.2 and I need to update the definition/device support for these switches. We are conducting a network refresh and are having some issues

  • Trace session

    I have executed a SQL statement on two servers with exactly the same configuration,OS and DB version.I traced the sessions on both the servers executing the same SQL.Now i need to find out from those trace files which SQL is performing better then th

  • LG cosmos phone, "card not inserted"

    I have the same issue everyone else is having with connecting my phone to my computer with the provided USB cable and not being able to copy pictures. My phone does not have the MicroSD card inserted because when I select USB Mass Storage on my cell