How to get javax.servlet package

Hi guys
Does anybody know how to get javax.servlet package?
Thanks in advance.
Regards,
Mark.

I just moved the servlet jar into java_home/jre/lib/ext and I made some progress. Instead I recieved this error
---------- Javac ----------
Note: C:\jdk1.3.1_04\bin\java\lang\ThreadGroup.java uses or overrides a deprecated API.
Note: Recompile with -deprecation for details.
Normal Termination
Output completed (17 sec consumed).
DOes anyone have an idaea of what would cause this when it had compiled normally before?
THanks Bruce

Similar Messages

  • How to download javax.servlet package

    where do i need to download the packages javax.servlet and javax.servlet.http.
    does it come with the newest j2sdk?
    While trying to compile a class i get the error
    "package javax.servlet does not exist"
    thanks so much
    Dom

    They come with the J2ee. You can get them at http://java.sun.com/j2ee/sdk_1.3/

  • How do I get the javax.servlet package?

    I have a simple question. I downloaded the JAVA platform Standard Edition SDK 1.6.0 and find that it doesn't have the javax.servlet package? From where can I get it and how to install and configure?

    hi,
    you don't have servlet in J2SE... you can get it
    from J2EE ... download the latest J2EE .. the
    package is available in j2ee.jar file..
    ou can download it from:
    http://java.sun.com/javaee/downloads/index.jsp
    -- Abdel Raoof Olakara
    http://olakara.googlepages.com
    You are quite wrong my friend... Servlets don't depend on any J2EE container, the only thing you need is a J2SE edition... check this:
    http://en.wikipedia.org/wiki/Java_Servlet
    MeTitus

  • Getting javac to find javax.servlet package

    Hey all. I'm trying to get Servlets to run on my computer. I'm using jdk1.4, it didn't have the javax.servlet package to start off with. I downloaded jsdk2.0, which includes the javax.servlet package. I can't get the javac compiler to find these classes no matter what I do, I copied the entire javax/servlet folder into the jdk1.4/src.zip file that seemed to have all the other import files, I copied the jsdk.jar file into jdk1.4/lib/ folder, that didn't work either. In my batch file that sets the path for jdk, I added set classpath = c:\jsdk2.0\lib\jsdk.jar and that didn't work. I really can't seem to get javac to find these classes. Any help is greatly appreciated!

    The above advice is incorrect and can lead you to many problems.
    You should have nothing in your CLASSPATH environment variable immediately after installing J2SDK 1.4.1.
    You then have to install the Servlet API by pointing your CLASSPATH env. var. to it. To do this depends on the version of the Servlet spec. that you have as some of the olders ones were distributed as jar files, and the latest I believe is a set of classes to be extracted.
    At the end of the day, you must point your CLASSPATH to the Servlet API. Read up on how to set the CLASSPATH. Also, don't forget to include the current working directory (.) in your CLASSPATH after manually setting it.
    Good luck !!
    Tony Morris
    Software Engineer, IBM
    Gold Coast, Australia

  • Javax.servlet package

    hi i am using netbeans but i want to deploy some servlets in my mobile application but i am getting problem in accessing javax.servlet package. can anyone tell me where can i get this one. my application is stuck now ......plz reply me fast...... i search a lot i got the specs of it but not the api.

    I wonder what you're trying to do.
    In my case, I have installed Tomcat 5.0. This installation included a jar file containing the different servlet classes I need to develop servlets. This jar file is in the folder C:\Program Files\Apache Software Foundation\Tomcat 5.0\common\lib.
    I did not need to move the jar files from Tomcat to the folder of my J2SDK.
    But I had to add en environment variable under Windows XP, namely CATALINA_HOME to let the computer know where the folder of Tomcat was. With this variable, the jar file containing the classes for servlet programming can be found.

  • Development kit which includes the javax.servlet package

    Which java development kit(s) contain the javax.servlet package.v I can't seem to find one. Thanks

    You might want to ask this on the Java forum - but if you want to run a servlet you need a Java EE server - something like Glassfish or WebLogic or Tomcat.
    The Java forums are here:
    https://forums.oracle.com/forums/category.jspa?categoryID=285
    Right now you are in the JDeveloper forum - and by the way, if you download JDeveloper you'll get everything you need to develop and test run your servlet.

  • Compiling Servlets: javax.servlet package unknown

    Hello everybody,
    I'm new to J2EE technology and would like to start with creating servlets, but the javac compiler can not compile my java class succesfully, cos' it seems, it does not know the javax.servlet package.
    In each documentation is just a sentence: run javac ... But it does not work.
    Do I have to have some special configuration? I also downloaded the J2EE SDK, but the problem resisted.
    Help me, please!
    Thanx, Peter

    Hi peter,
    If you have installed the J2EE SDK 1.4, you would find $INSTALL_ROOT/lib/j2ee.jar (INSTALL_ROOT means the installation directory of J2EE SDK). PLease keep this j2ee.jar in the classpath and compile, things would be fine.
    regards
    sankar

  • Cannot find javax.servlet package

    I have just downloaded and installed the latest JEE SDK having installed Tomcat on a Linux box so that I can start getting to know JSP.
    I am following an example in a book I have for this Servlet...
    import javax.servlet.http.*;
    import javax.servlet.*;
    import java.io.IOException;
    public class BasicServlet extends HttpServlet {
         public void doGet (HttpServletRequest req, HttpServletResponse res)
              throws IOException {
              ServletOutputStream out = res.getOutputStream();
              res.setContentType("text/html");
              out.println("<html><head><title>Basic Servlet</title></head>");
              out.println("<body>Hello World</body></html>");
    I am using Textpad to write and compile my java and when I try to compile I get errors basically saying that it cannot find the first 2 packages I am trying to import (it manages to find the IOException fine)
    Any ideas why? I suspect that the servlet package is not in the classpath but I do no know where the package is in order to add it to my class path.
    many thanks

    I have just downloaded and installed the latest JEE
    SDK having installed Tomcat on a Linux box so that I
    can start getting to know JSP.
    I am following an example in a book I have for this
    Servlet...
    import javax.servlet.http.*;
    import javax.servlet.*;
    import java.io.IOException;
    public class BasicServlet extends HttpServlet {
    public void doGet (HttpServletRequest req,
    , HttpServletResponse res)
              throws IOException {
              ServletOutputStream out = res.getOutputStream();
              res.setContentType("text/html");
    out.println("<html><head><title>Basic
    ic Servlet</title></head>");
              out.println("<body>Hello World</body></html>");
    I am using Textpad to write and compile my java and
    when I try to compile I get errors basically saying
    that it cannot find the first 2 packages I am trying
    to import (it manages to find the IOException fine)
    Any ideas why? I suspect that the servlet package is
    not in the classpath but I do no know where the
    package is in order to add it to my class path.
    many thanksHave u included your servletapi.jar into classpath
    If u havnt . set classpath to point to servletapi.jar
    if it helps .. release dukes.
    sudhir nimavat
    http://www.jyog.com

  • How solve  import javax.servlet.http.HttpServlet err import javax.servlet.

    Hi
    I am trying to compile one servlet code using commancd prompt and i get
    package javax.servlet.http does not exist import javax.servlet.http.HttpServlet;
    error for following code
    import javax.servlet.http.HttpServlet;
    import javax.servlet.http.HttpServletRequest;
    public class SampleServlet extends HttpServlet
    public void saveToSession(HttpServletRequest request)
         String testparam = request.getParameter("testparam");
         request.getSession().setAttribute("testAttribute", testparam);
    please help me

    Try giving servlet..jar path in the class path variable

  • 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.

  • How to import javax.servlet.http.*

    Dear all,
    I'm trying to create an applet that writes (and later reads) a cookie from the clients local HDD. The first thing I run into is that I'm unable to import the nessecary class, which would be, I think, "javax.servlet.http.cookie". I'm using JBuilder 8.0 and every time I'm typing "import javax.servlet"
    I get the message "cannot acces the directory "javax.servlet".
    How should I troubleshoot this problem?
    Regards Ronald

    Dear Myself,
    I solved the trouble. What I have done is I downloaded the enterprise 1.4 SDK and added the j2ee.jar to the JBuilder 8.0 JDK directories.
    Problem solved.
    Yippie....
    Bye.

  • Getting  javax.servlet.ServletException: General error

    Someone pls help me....
    I am getting General Error while inserting a row in database.I am not able to solve this error...I would really appreciate your help...Thanks in advance...
    Following is my Code ::
    <%! int countBts,countBts1,mmm; %>
    <%! String msg; %>
    <%
    Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
    String dataSourceName = "ProjData";
    String dbURL = "jdbc:odbc:" + dataSourceName;
    Connection conn = DriverManager.getConnection(dbURL, "","");
    int dataMgx= Integer.parseInt(request.getParameter("allocMgxId"));
    int dataFrsm=Integer.parseInt(request.getParameter("allocFrsmSlotNo"));
    int dataPort=Integer.parseInt(request.getParameter("allocPortNo"));
    int dataBts=Integer.parseInt(request.getParameter("bts1"));
    int dataRpm=Integer.parseInt(request.getParameter("allocRpmNo"));
    int dataMultiLink=Integer.parseInt(request.getParameter("allocMultiLinkNo"));
    String dataPortStatus= "vacant";
    Statement myStat1 = conn.createStatement();
    myStat1.execute("select count(BTS_ID) from MGX where BTS_ID=" + dataBts);
    ResultSet result1 = myStat1.getResultSet();
    if(result1.next())
         countBts=Integer.parseInt(result1.getString(1));
    countBts1=countBts+1;
    if(countBts > 6)
         msg="Configuration of more than 6 spans not allowed";
    %>
    <h3><%=msg %></h3>
    <%}
    else
    PreparedStatement stmt1 =
    conn.prepareStatement(("Insert into MGX (BTS_ID,Port_Status,MGX_Num,Port_No,FRSM_No,RPM_Card,Multi_Link) values ("+dataBts+",'"+dataPortStatus+"',"+dataMgx+","+dataPort+","+dataFrsm+","+dataRpm+","+dataMultiLink+")"));
    mmm =     stmt1.executeUpdate();
    stmt1.close();
    if(mmm == 1)
    msg="One SpanRecord successfully added in the Database ";
    else
    msg="Failure in Update Operation";     
         result1.close();
         myStat1.close();
         conn.close();           
    %>
    The error I am getting is as follows::
    type Exception report
    message
    description The server encountered an internal error () that prevented it from fulfilling this request.
    exception
    javax.servlet.ServletException: General error
         org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:867)
         org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:800)
         org.apache.jsp._5_jsp._jspService(_5_jsp.java:179)
         org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:133)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
         org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:311)
         org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:301)
         org.apache.jasper.servlet.JspServlet.service(JspServlet.java:248)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
    root cause
    java.sql.SQLException: General error
         sun.jdbc.odbc.JdbcOdbc.createSQLException(JdbcOdbc.java:6987)
         sun.jdbc.odbc.JdbcOdbc.standardError(JdbcOdbc.java:7115)
         sun.jdbc.odbc.JdbcOdbc.SQLExecute(JdbcOdbc.java:3150)
         sun.jdbc.odbc.JdbcOdbcPreparedStatement.execute(JdbcOdbcPreparedStatement.java:214)
         sun.jdbc.odbc.JdbcOdbcPreparedStatement.executeUpdate(JdbcOdbcPreparedStatement.java:136)
         org.apache.jsp._5_jsp._jspService(_5_jsp.java:121)
         org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:133)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
         org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:311)
         org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:301)
         org.apache.jasper.servlet.JspServlet.service(JspServlet.java:248)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
    Pls Help me

    Thanks for the reply buddy...
    As per your reply....I have tried modifying my Preparedstatement properly with ? and then binding values...
    But even after doing this i am still getting the same error....
    I am clueless...
    Following is my modified Prepared Statement ::
    conn.prepareStatement(("Insert into MGX (BTS_ID,MGX_Num,Port_No,FRSM_No,RPM_Card,Multi_Link,Port_Status) values (?,?,?,?,?,?,?)"));
    stmt1.setInt(1,Integer.parseInt(request.getParameter("bts1")));
    stmt1.setInt(2,Integer.parseInt(request.getParameter("allocMgxId")));
    stmt1.setInt(3,Integer.parseInt(request.getParameter("allocPortNo")));
    stmt1.setInt(4,Integer.parseInt(request.getParameter("allocFrsmSlotNo")));
    stmt1.setInt(5,Integer.parseInt(request.getParameter("allocRpmNo")));
    stmt1.setInt(6,Integer.parseInt(request.getParameter("allocMultiLinkNo")));
    stmt1.setString(7,"Allocated");
    Awaiting for a solution....

  • How to get DBMS_LOB standard package

    Where can I get DBMS_LOB standard package?
    and
    how to use it in my FORM application?

    Hi,
    This standard package is included in the RDBMS $ORACLE_HOME/dbms/admin/dbmslog.sql file.
    If you install it (check the file for howto install) you'll then be able to use it like any other package.
    Yoann.

  • I cannot find javax.servlet package in j2sdk-1.4.0-beta3

    I just download and install j2sdk-1.4.0-beta3 and progam a very simple program use import javax.servlet.* and compile it, there is a mistake:
    package javax.servlet.* does not exist
    And I check the doc of j2sdk-1.4.0-beta3,I also can not find package javax.servlet.So where could I find this package? Need I configure somewhere or download another products?

    Hi,
    You can go to http://java.sun.com/products/servlet/download.html,
    download the servlet 2.3 class files, add the zip file to the classpath.

  • Javax.servlet package does not exits

    Hi all
    i have set my classpath as follows:-
    J2EE_HOME - c:\Sun\Appserver
    path - %JAVA_HOME%\bin;%J2EE_HOME%\bin
    set classpath- .;%JAVA_HOME%\lib;%J2EE_HOME%\lib\j2ee.jar
    my j2se path and classpath already set
    but after setting path and classpath for j2ee i m not able to compile my servlet
    the error is package javax.servlet does not exits
    i know this error arised when we dont include j2ee.jar in classpath , but i m using j2ee.jar as well in my classpath
    plz suggest

    but you can also try including it in the web-inf\lib folder of your webapp.You should NEVER bundle the servlet-api.jar into the WEB-INF/lib folder of a web application.
    The server will always have its own copy. Putting your own there will just confuse things, and create errors.
    Ok, so you have set the classpath. What tool are you using to compile your code? Does it look at the classpath?
    Cheers,
    evnafets

Maybe you are looking for

  • The itunes Library file cannot be saved. An unknown error has occured (-50)

    Been having this problem for a week or so now (after i upgraded to 7.6). It tells me several times that the library cannot be saved and then when i go to open itunes the next time it says the library is not an actual library and it builds me a new li

  • Error while starting WebLogic at background

    Hi, All! I try to start WebLogic at background mode: nohup ./startWebLogic.sh 2&>1 & but got this error: JAVA Memory arguments: -Xms256m -Xmx512m -XX:CompileThreshold=8000 -XX:PermSize=48m -XX:MaxPermSize=192m WLS Start Mode=Development CLASSPATH=/ho

  • Wlsifconfig.sh problems in Solaris 10

    Hi if in any time you are configuring Weblogic 11gR1 Whole Server Migration on a Solaris Machine, take care to change the wlsifconfig.sh file in <YOUR_DOMAIN_HOME>/bin/server_migration, in every machine that performs Whole Server Migration. Change th

  • Can One Library be used by 3 Macs?

    Hi I have a Time Capsule on order which I am going to attach an additional 500GB HD to in order to hold all my tunes and movies etc, which I will be able to access remotely. However if I have one iTunes library, can 3 separate Macs use this library,

  • How to bring in back up files/apps after erase and install? Thanks!

    Don't let the first post fool you - new account, long time user; old account login details lost in a keychain somewhere... Preparing for Leopard I had a good clean out and got to 21gb of free space on my 40gb HD. Backed up files to Firewire AND USB e