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.

Similar Messages

  • Package javax.servlet not found error

    package javax.servlet not found error. how it can be solved.
    plz help this is my first servlet program.
    vipin

    You need a jar file that has in it the javax.servlet.* classes
    It should be distributed with your servlet/jsp server.
    It can normally be found in a /lib directory under the installation.
    Some examples:
    Tomcat4: install_dir\common\lib\servlet.jar
    Tomcat5: install_dir\common\lib\servlet-api.jar; install_dir\common\lib\jsp-api.jar
    J2sdkee: install_dir/lib/j2ee.jar
    You need to include this jar file in your classpath when you compile any servlet.

  • I have unlocked my iphone and when tried to upgrade it, i got an error, so i restored it.But i was not able to activate my iphone 3gs now...it is showing a message like ' sim card not found'..please help me with this regard

    I have unlocked my iphone and when tried to upgrade it, i got an error, so i restored it.But i was not able to activate my iphone 3gs now...it is showing a message like ' sim card not found'..please help me with this regard

    Try popping out the SIM card and turn off the phone.
    Pop in the SIM card once again and turn on the phone, make sure that the SIM card is placed and seated perfectly in the tray!
    Tell me how did you unlock your phone!?

  • Package javax.ejb not found error

    Hi there,
    I've downloaded j2se 1.4 and j2ee 1.3.1 and installed it on Windows XP. I set the environment variables as described. When I compile a .java file that imports the javax.ejb.* package, then I get an error "package javax.ejb not found". I feel like an idiot and I know it's something to do with the environment variables. (or just XP, most likely)
    Thanks in advance
    Hoenner

    How are you compiling your source? If you're using an IDE then you should edit your project classpath to include the j2ee.jar file (it'll probably be in the lib directory of your J2EE installation).
    If you're doing it from the command line then type in SET CLASSPATH, look at the classpath it returns and check that it includes the j2ee.jar file.
    Hope this helps.

  • I can not use CanoScan N670U with my Macbook pro. I download canoscan toolbox 4.1 from Cannon website. It keep saying "the scanner plug-in was not found". Please help

    I can not use CanaScan N670U with my Macbook Pro. I download Canoscan toolbox 4.1 from Cannon websit. It still keep saying "The scanner plug-in was not found". Please help

    There is a solution (I'm running Snow Leopard on a Core2Duo iMac, but this problem arose when I was running Leopard on a G4 PowerBook too).
    Problem:
    You download the OS X driver for the scanner from Canon's site. I already had the CanoScan Toolbox (4.1) stored on an external drive.
    You unzip the driver and run the VISE installer. After a search it finds your copy of Photoshop (and maybe even the CanoScan Toolbox), and you click to install on that/those location(s).
    You get a couple of error messages, which you click through.
    You restart your computer and try to run the scanner but you get an error that the driver is wrong or missing and the process will abort.
    Solution:
    BEFORE you restart, and with the installer package still open -
    1. Copy the Into_CFMSupport_Login & Into_CMPrefs folders to
    Applications : Canon Utilities
    Applications : Canoscan Toolbox
    and remove the prefix Into_ from each folder
    2. Check whether the installer placed N067U_Library.shlb into the top level (not User level)
    Library : CFMSupport
    and if it didn't, move it there yourself
    THEN restart, and try again. It worked for me (via Photoshop), but whether it will work for everyone, I don't know.

  • "DSN not found error" plz help me.

    am doing my project in jsp. using tomcat.
    am connecting the database using access.
    it cause the error like " DSN not found error"
    am verified so many times the data source name as well as data base connection.
    but not to be clear the error.
    am also tried it in weblogic, it worked perfectly.
    then am reinstall the tomcat and used other platform but not worth.
    plzzzzzzzzzz some one help me to clear the error.
    thanx in advance.
    with regards,
    senthil

    I think you can see again file faces-config.xml.
    You check the tag <faces-config>, it must be
    <faces-config xmlns="http://java.sun.com/xml/ns/javaee"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-facesconfig_1_2.xsd"
    version="1.2">
    //body tag
    </faces-config>

  • Codebase help. Applet class not found. Please help..

    I have web application (WEB) and struts configuration on weblogic server. I have configured the struts xml to call a HTML under certain condition and the HTML in turn should load a applet. The HTML is getting called correctly but the applet fails to load.
    My html is in the C:\xxx\yyy\web\billing directory and the applet class is in the
    C:\xxx\yyy\web\WEB-INF\classes\com\zzz\kkk\jjj\billing\helper directory. The Applet class is in the package com\zzz\kkk\jjj\billing\helper . I tried all combination of codebase in the HTML but the applet is NOT FOUND.
    Any help would be appreciated.
    Thanks

    >
    The browser needs to grab the applet class, so it can
    execute it locally.
    I think that stuff in WEB-INF is never directly
    delivered to the client -- the server denies that it
    exists.
    So create another directory under docroot that will
    hold applet classes.Thanks. I moved the applet class to the same directory as the HTML file and it works now.

  • When I try to open up a PDF document, i get the following error message: "There was an error opening this document. The network path was not found" AArrgh please help as I need to open up my documents. Thanks.

    When I open up a PDF Document all i get is an error message saying: "There was an error opening this document. The network path was not found" I dont know how to fix this, so looking for some advice please, as I really need o open up my documents.
    Thank for any help.

    The documents I’m trying to read are already saved on my computer, under various different headings, I know that we have a server, so I only assume these documents are saved on here, as I said before I’m not good with all this techno stuff. I do my work each week ( on a payroll system) and save the documents for each company, they automatically go to the correct place. I never request for them to be saved in a certain place ( well not that I’m aware of) . I then on occasions need to open up this information, it is then that I can’t read or open the documents. We do have a tech help, but they are off sick until the 5th Jan, hence me trying to work out if I can fix this problem through this help site. Its ADOBE Reader that I’m trying to use.

  • Folder Could Not Be Found Error - Please Help, Don't Want To Re-Edit EVERYTHING!

    So I just edited a huge set of photos.  I put them into a collection, then undid the collection.  But now when I go back to the edited photos in their original location & click develop there is an error saying ""this folder could not be found".  I can see all the pictures & the edits I made in the Library though, so I'm thinking they're still there somewhere.
    When I click on Library, it says they are located in G:\Lily\2010  (but I can't locate this folder G: on my hard drive)
    When I right click & do show in explorer it says there is no file located in this specific path
    I tried re-uploading the unedited pics from my camera into a new folder on C: & then right clicking on the G:\lily\2010 & selecting "find missing folders" & then selecting the newly uploaded unedited pics & that didn't work either.
    Is there something I'm missing here?  How can fix this so I don't have to re-edit all of these photos again?  PLEASE PLEASE HELP!!!  Thanks in advance

    There is no update folder location when I right click....  I'm using LR 3 beta if that matters.  There an update folder location on the far left scrolling menu, which I've tried to do a couple of different ways & it hasn't worked.
    Does anyone know how I can find the G: folder on my computer????  I would try to paste the photos back in that folder if I could find it.

  • Ever since I installed Safari 5.1 I can no longer access the pdf files on my website. I keep on getting an error with Webkit2webprocess.exe telling me that LogTransport2.dill was not found. Please help..

    Ever since I installed Safari 5.1 on my PC (XP) I can no longer access the pdf files on my website. I have no problems with Chrome and  Firefox. I keep on getting a message from WebKit2WebProcess.exe that the LogTransport2.dill was not found. (I HATE PCs...) I tried reinstalling Acrobat 9. I tried reinstalling Safari. I even tried an older version of Safari. Nothing Helped.  Others have tried it on their machine, and it worked fine. But I do not know what is the matter with mine. I suspect the root cause is the missing LogTransport2.dill file. But I do not know how to go about getting it.  Your help is truly appreciated. My website is http://www.hlmartworks.com.

    I have also found the article that provides 3 solutions but none of the solutions worked.

  • Servlet not found error

    Hi everyone,
    i am trying to write a chat application using applet,servlet and RMI.
    so i have my servlet and aaplets accordingly...
    but when i put my servlet and applets in their respective folder of tomcat,i am getting and error..which is as follows....
    Resource not found: http://10.0.2.65:8080/servlet/ChatServlet
    The configuration that i am using is:
    1)win XP
    2)Tomcat5.1
    3)JDK 1.5
    my servlet file is 'ChatServlet.class',which is placed in a package(or folder) called 'servlet'...
    so i have place the whole package(servlet) in WEB-INF...
    and the mapping that i have given in web.xml is as follows:
    <servlet>
    <servlet-name>ChatServlet</servlet-name>
    <servlet-class>ChatServlet</servlet-class>
    </servlet>
    <servlet-mapping>
    <servlet-name>ChatServlet</servlet-name>
    <url-pattern>/ChatServlet</url-pattern>
    </servlet-mapping>
    NOW is that mapping correct??
    Do you find anything wrong in the way i have put my files in Tomcat??
    and also if possible please tell me for what is these mapping in web.xml used??
    thanx in advance

    thanx a lot for the reply...
    i did put the full class name of the servlet....but had no success....
    now my maaping is as follows:
    <servlet>
    <servlet-name>ChatServlet</servlet-name>
    <servlet-class>servlet/ChatServlet</servlet-class>
    </servlet>
    <servlet-mapping>
    <servlet-name>ChatServlet</servlet-name>
    <url-pattern>/ChatServlet</url-pattern>
    </servlet-mapping>

  • Driver and software not found. Please help

    Hello,
    I recently updates my iTunes too the latest version now my disc burner isnt working. I get an error saying disc burner and software not found. I tried to run diagnostics and have scoured the internet and forms for answer.  I have read this and it says i am not an administrator but on my computer i checked and i am. Unless i am doing it wrong. Any help would be greatly appreciated.
    Microsoft Windows 8 x64 Home Premium Edition (Build 9200)
    Dell Inc. Inspiron 5521
    iTunes 12.1.1.4
    QuickTime not available
    FairPlay 2.7.50
    Apple Application Support 3.1.2
    iPod Updater Library 12.0
    CD Driver 2.2.3.0
    CD Driver DLL 2.1.3.1
    Apple Mobile Device 8.1.1.3
    Apple Mobile Device Driver 1.65.0.0
    Bonjour 3.0.0.10 (333.10)
    Gracenote SDK 3.06.0.2770
    Gracenote MusicID 3.06.0.2770
    Gracenote Submit 3.06.0.2770
    Gracenote DSP 3.06.0.2770
    iTunes Serial Number 000000EF2D410840
    Current user is not an administrator.
    The current local date and time is 2015-04-03 10:25:39.
    iTunes is not running in safe mode.
    WebKit accelerated compositing is enabled.
    HDCP is supported.
    Core Media is supported.
    **** External Plug-ins Information ****
    No external plug-ins installed.
    Genius ID: 7c442418567b765b60e544f855b8db56
    iPodService 12.1.1.4 (x64) is currently running.
    iTunesHelper 12.1.1.4 is currently running.
    Apple Mobile Device Service service 3.3.0.0 is currently running.

    Hey dancin_chick,
    If you find you are unable to burn CDs from iTunes on your Windows computer, I would suggest that you troubleshoot using the steps in this article - 
    iTunes 12 for Windows: If you have trouble burning a disc
    Thanks for using Apple Support Communities.
    Happy computing,
    Brett L 

  • Package javax.servlet not found in sdk 1.4.0_01

    Hi,
    Please correct me if i'm wrong. I was using j2sdk 1.3.1 (standard edition) and have recently upgraded to j2sdk1.4.0_01. I can't find the javax.servlet package in the API. I referred to the j2ee sdk and found the package there. Does it mean that I need to have both the j2sdk1.4.0_01 and the j2sdkee1.3.1 (j2ee) in order to be able to compile and run my codes?
    Thanks.
    Karen

    The servlet packages don't come with the standard SDK.
    You can get them from javasoft.com or if you use the
    Tomcat server they come packaged in a jar file called
    servlet.jar

  • Javax.servlets not found

    when i try to import the javax.servlet's, it is not found... any idea where i can go toget that? i downloaded the seperate elipse for J2EE and tried it on there, and i also tried it on the eclipse for regular java developers.
    thanks
    update: it turns out that eclipse has a # of requirements that it needs to get the WTP, i'll appreciate any assistance in directing me toward the files.
    Edited by: ixxalnxxi on Jun 17, 2008 3:30 AM

    No, you need to specify the application server in the eclipse project. Then it will take its libraries in the build path.
    You may find this tutorial useful, you can just skip the JSF part if you aren't planning to use it: [http://balusc.blogspot.com/2008/01/jsf-tutorial-with-eclipse-and-tomcat.html].

  • I am trying to reupload the pages of my site but it will not update after, instead it tells me 'Object Not Found!', please help?

    I downloaded the pages of the website to another computer that I have access to, edited them and tried to re-upload them back to the website with the changes made. In doing this I went to see if the changes were viewable on the website and they were not. Whenever I try to "open" the newly uploaded pages it tells me "Object Not Found!". I am not sure what I am doing wrong. Please help!
    == This happened ==
    Every time Firefox opened
    == I downloaded them on another computer to edit the pages.

    check the specs to see what versions you can use, System requirements | Photoshop
    (but you'll only be able to purchase cs6 or later.)
    Downloads available:
    Suites and Programs:  CC 2014 | CC | CS6 | CS5.5 | CS5 | CS4 | CS3
    Acrobat:  XI, X | 9,8 | 9 standard
    Premiere Elements:  13 | 12 | 11, 10 | 9, 8, 7
    Photoshop Elements:  13 |12 | 11, 10 | 9,8,7
    Lightroom:  5.7.1| 5 | 4 | 3
    Captivate:  8 | 7 | 6 | 5
    Contribute:  CS5 | CS4, CS3
    Download and installation help for Adobe links
    Download and installation help for Prodesigntools links are listed on most linked pages.  They are critical; especially steps 1, 2 and 3.  If you click a link that does not have those steps listed, open a second window using the Lightroom 3 link to see those 'Important Instructions'.

Maybe you are looking for

  • I turn on my a1300 camera then suddenly its lcd screen turns green..why?

    i turn on my a1300 camera then suddenly its lcd screen turns green.. icons on the screen is in color green and its larger than the usual size of the icon...

  • Inheritance in the java class heirarchy

    ok two questions. 1. in the java class heirarchy, do the subclasses inherit all of the concrete methods from the superclass, that the subclass has not overridden. Or just some of them as Sun has deemed necessary? 2. In the situation where you have a

  • Methods outside main()

    Hello, Can have methods outside main() ? I am trying to call abc and says non-static method abc() cannot be referenced from a static context abc(); When I make it static it is compiling but I dont want it to be a static method... public static void m

  • Audio upsampling in Quicktime: best export settings?

    I'm using Quicktime to convert audio from 32 kHz to 48 kHz, for use in FCE/FCP. Quicktime gives me several options for export settings. I want to make the conversion lossless, without increasing the size of the audio file too much. These are the sett

  • Can't send email in Japan

    I can receive but not send using my GoDaddy account from my (Softbank) iPhone or Mail on my Mac Pro.  GoDaddy Support says it might be a port blocking issue with the Japanese ISPs.  While I'm waiting to get through to Softbank's nightmare Customer Se