Struggling  Very Hard to compile Servlet

Sir I have tried all sort to set Class Path for servelet it always give 4 types of error. javax.sevlet.* not found and Httpservlet not found.I am using Win2000 and setting it in the test enviorment.
As CLASSPATH
c:\javaWebserver2.0\lib\servlet.jar;
Sir Please give me in detials how to set ClassPATh.
Thanks in advance

Set the CLASSPATH the way you always should: by using the -classpath option on javac.exe:
http://java.sun.com/j2se/1.4.2/docs/tooldocs/windows/classpath.html
Or learn how to write Ant build.xml properly:
http://ant.apache.org
The problem with using NetBeans or an IDE is that someday when you don't have that IDE around you'll be lost without it. Use the IDE after you understand thoroughly how to get along without it.

Similar Messages

  • Compiling servlet with helper class

    Hello,
    I have to write a very large number of database queries and huge amount of code so I decided to make each helper *.class file for each table.
    Now I have a main servlet that should instantiate each of these helper classes and conduct DB operations:
    //Servlet code
    RescardreservationTable rv = new RescardreservationTable();
    rv.insertInfo();
    RescardPassengerTable rp = new RescardPassengerTable();
    rp.insertInfo();RescardreservationTable.class
    //does DB opsMy problem is that when I try to compile servlet, I get
    insert_data.java:172: cannot find symbol
    symbol : class RescardreservationTable
    location: class insert_data
    RescardreservationTable rv = new RescardreservationTable();
    Could somebody please tell me how I can make servlet locate my java classes that it has to use?
    Thanks,
    Victor.
    Edited by: vic_sk on Dec 9, 2008 9:29 AM

    Ok, looks like it's solved. Just forcing the compiler with -classpath to look for the required class file.

  • I want a proper update for my phone (intex cloud fx).i want to copy and paste the text,keyboard is very hard to type.need some main appswhich available inplystr

    i have some some main problems with this phone . the browser is not good . i want opera or uc browser in store . i not able to copy or paste any text msgs ,this is a problem. i have seen that when i try to update my phone , it showing error . i seen something is there that is too gud in this phone . i requisted firefox to increase its problem solving and make good and user friendly os like android . there are many things which i like very much on this phone but , on the same side there are lots of backlogs are there .
    such as :
    1)no whats app (connect a2 app is there but i didnot like it .bec its very slow n giving me too much problem)
    2)keyboard is very hard to type because its width is low ,so i cant able to type gud . atleast chage it in u r next update.
    3)the browser is not good . giving many problem in downloading and looses its data after i close it . its forfotting my data like passwords every time.
    4) file manager is too slow .( taking much time for loading ).

    Hi rajkumarukkuturi,
    Thank you for your feedback, however all of the feedback for the developers can be submitted at input.mozilla.org.
    If you need any support, please consider creating a new thread containing the specific details of your issue.
    Doing so will allow the Mozilla volunteers to give you solutions that are more helpful to you. This may help them to solve your problem faster and more efficiently.
    Please, feel free to post the link to your thread on this thread for volunteers interested in assisting you.
    Thank you.

  • Hard drive is running very hard and warm

    I recently had a hard drive issue with my mac book pro and basically had to erase everything and then restore all my files from Carbonite. I have now restored all of my files and I think Carbonite is now rebacking those up, but in the mean time my hard drive is running very hard and causing my lap top to get very warm. Is this normal? Is it because of the back up/restore? Or is there something wrong with my fan or hard drive?

    Install iStat pro (from the Internet) and open it.  It will show you the internal temperatures of your MBP and the fan speeds.  Also open Activity Monitor to compare the internal CPU activity with the iStat pro data.  Post both for an evaluation.
    Since you have suspicions regarding your HDD, make certain that you do have backups.  You might open Disk Utility>First Aid and 'Verify Disk'.
    Ciao.

  • Unable to compile servlet files in javac

    i am unable to compile servlet *.java files in javac.as far as i can see my path is correct.
    Kindly provide a solution as soon as possible.
    My jdk1.3 is in my c drive and my tomcat in my d drive.
    if you are able to compile kindly let me know your path.
    it says symbol not resolved.i think that it is unable to import from javax

    Assuming that your jdk is in c drive as c:\jdk1.3 set the path and the classpath like as shown below. Remember that you have to set the classpath for the classes in the javax.servlet and javax.servlet.http packages. I know how to do it for JavaWebServer. JavaWebServer has a jar called servlet.jar that contains all these classes. What you need to do is to put this jar file in your classpath. There will be a similar jar file for Tomcat server also. You need to refer the Tomcat server documentation for that.
    The path and the classpath have to be set like this...
    d:\>path=%path%;.;c:\jdk1.3\bin;
    d:\>set classpath=%classpath%;.;c:\jdk1.3\lib;c:\JavaWebServer2.0\lib\servlet.jar;
    assuming tht JWS is installed in c:\JavaWebServer2.0
    Also note that there should be no spaces in between while setting the classpath. In your case you have to change the last part of the classpath to customize your requirement.
    Hope that will help.
    Regards
    Jaydeep

  • Not Able to compile Servlet from ?

    Hi All,
    I am not able to compile Servlet from my package:
    1) I Have set the CLASSPATH Variable using below line in System Variables:
    C:\CC4\prog\jakarta-tomcat-4.1.30\common\lib\servlet.jar
    2) Also Set the CATALINA_HOME with value
    C:\CC4\prog\jakarta-tomcat-4.1.30
    as per above setting servlet should be compiled but still i m getting error message:
    1) C:\CC4\prog\jakarta-tomcat-4.1.30\project\classes\com\example>javac ListenerTest
    er.java
    ListenerTester.java:17: cannot resolve symbol
    symbol : class Dog
    location: class com.example.ListenerTester
    Dog dog = (Dog) getServletContext().getAttribute("dog");
    ^
    ListenerTester.java:17: cannot resolve symbol
    symbol : class Dog
    location: class com.example.ListenerTester
    Dog dog = (Dog) getServletContext().getAttribute("dog");
    ^
    2 errors
    2) Error while compiling other file:
    C:\CC4\prog\jakarta-tomcat-4.1.30\project\classes\com\example>javac MyServletCon
    textListener.java
    MyServletContextListener.java:12: cannot resolve symbol
    symbol : class Dog
    location: class com.example.MyServletContextListener
    Dog d = new Dog(dogBreed);
    ^
    MyServletContextListener.java:12: cannot resolve symbol
    symbol : class Dog
    location: class com.example.MyServletContextListener
    Dog d = new Dog(dogBreed);
    ^
    2 errors
    So what could be the posible solution here :
    do reply !!!
    please
    Thanks
    prabhat

    I have added servlet.jar in the classpath. But the program is not compiling.The error message says that it can not find classes like ServletConfig, ServletException, Cookie etc. Please help.

  • Is there any way to increase the contrast of the slider in the Table of Contents? It becomes very hard to see as you slide down a presentation. This has been asked before, a few years back. Has a solution been provided?

    I designed an interactive script using Captivate 7. It works like a branching scenario, and is currently in use by about 350 phone operators, soon to be over 750. Everybody is pretty happy about it, but I am getting complaints - especially form the older people - that the slider in the TOC is very hard to see, and I agree - as you scroll down the TOC entries, the slider becomes lighter and lighter in color. Is there any way to tweak it so that I can increase contrast, or recolor it in a darker tone? I know this was discussed a couple of years ago, but I don't know if the issue was addressed by Adobe, or if anyone has come up with a solution.

    I designed an interactive script using Captivate 7. It works like a branching scenario, and is currently in use by about 350 phone operators, soon to be over 750. Everybody is pretty happy about it, but I am getting complaints - especially form the older people - that the slider in the TOC is very hard to see, and I agree - as you scroll down the TOC entries, the slider becomes lighter and lighter in color. Is there any way to tweak it so that I can increase contrast, or recolor it in a darker tone? I know this was discussed a couple of years ago, but I don't know if the issue was addressed by Adobe, or if anyone has come up with a solution.

  • I have a MacBook Air...I am having a very hard time loading some websites

    I am having a very hard time with some websites opening on my computer, but when I try to open them on my daughters computer(not an apple) it opens immediately

    Go step by step and test.
    1. Power cycle
         Power off the router. Unplug it from the wall. Wait a while.
         Plug it back to the wall. Power the router on. Wait until all the lights are lit properly.
         It will take a   while.
         Restart the computer.
         Start up in Safe Mode
         http://support.apple.com/kb/PH11212
    2 Empty Caches
        Safari > Preference > Advanced
        Checkmark the box for "Show Develop menu in menu bar".
        Develop menu will appear in the Safari menu bar.
        Click Develop and select "Empty Caches" from the dropdown.
        2. Quit Safari if open.
        Option click the "Go" menu in the Finder menu bar.
        Select "Library" and then "Caches".
        Look for the folder 'com.apple.Safari"
        Right click "com.apple.Safari" and select "Move to Trash"
        Relaunch Safari.
    3. Reset Safari.
        Click Safari in the menu bar.
        From the drop down select "Reset Safari".
          Click "Reset".
    4. Safari > Preferences > Privacy > Cookies and all other website data:
         Press “Remove All Website Data” button
    5. Turn off Extensions if any, and launch Safari.
        Safari > Preferences > Extensions

  • Mine is ipod touch 1st generation..its very hard to find the accessories, where can i find it?

    mine is ipod touch 1st generation..its very hard to find the accessories, where can i find it? and some application couldnt work, for example: nike+

    What "accessories" are you looking for?
    The Nike+ app now requires iOS 4, and since that version of iOS won't run on a 1st-generation iPod touch, you will not be able to run that app.
    Regards.

  • After uploading IOS7, all text turned white and is very hard to see.  I can't figure out how to make the text black again.

    After loading IOS7, text turned white.  Very hard to read. Cant figure out how to make it black again.  Thanks for any help.

    chflags -R nohidden /path/to/folder/

  • The calender on the OS 7 upgrade is very hard to read due to my vision

    I find it very hard to read due to my vision. The lase version was vae better for me.
    <Re-Titled By Host>

    Try different Calendar App. The App Store has many Calendars, some of the best are Free. Great features that you will like, including scrollable screens that can be enlarged with finger touch.

  • Getting error in compiling servlet

    I am trying to compile servlet and I am getting error "cannot resolve symble : class HttpServlet"
    there are 6 error almost same not resolve servlet or http. I already add jdk1.3.1 and tomcat in my path I don't understand why I am getting this error please help me.

    You need to add servlet.jar into the classpath. You can find servlet.jar in tomcat_home\lib dir.

  • Hi i am from india i bought my phone last year from hongkong as it was not launch in india.now with the ios5 upgrade the home button has become very hard. i take a lot of care of my phone.the istore is not ready to repair it .please do something

    hi i am from india i bought my phone last year from hongkong as it was not launch in india.now with the ios5 upgrade the home button has become very hard. i take a lot of care of my phone.the istore is not ready to repair it .please do something.it was working proper before the upgrade.i even bought the ipad for 42 k from the istore in india.(mumbai).i love apple product and the moey i would by the mac book air also.but now i dont have any solution for my home button it is very irritating when it does not work .get an upgrade to do something it is factory unlock phone.regards vijay.

    Hi well let me be clear.last year the iPhone was bought from someone traveling to honkong.i did not get it cheap it was a new phone and what is the use of getting a phone after 1 year six months.thats when the iPhone came to India.I paid more than what u selling the iPhones in India.now I have bought the iPad in India now.we are ready to pay for the repair charges.my phone work excellent it's just the home button.please don't say I was saving some buck I paid from my hard earned salary.it was nearly 800$ in Indian rupees.i love ur products.i offen make people buy ur products in Istore talking Good about them.if I new this phone would have problem I would wait for it to com to India.i work when i was 18years in one of the best handbag stores in India as a managelabor 20 years and I know how important is customer satisfaction and service as till date I give it to them at there door step.i even buy ur expensive softwares.i never had a problem with my 3G and 3GS iPhone in the past.regards vijay

  • I can't compile servlets

    Please ignore my previous Thread.
    Where do you get the nessecary libaries to compile servlets, and what directory of the JSDK1.4.0/ directory do you put them in (Im using Win98se)

    File To Compile:
    import java.io.*;
    import javax.servlet.*;
    import javax.servlet.http.*;
    public class HelloClientServlet extends HttpServlet
         protected void doGet(HttpServletRequest req, HttpServletResponse res) throws ServletException, IOException
         res.setContentType("text/html");
         PrintWriter out = res.getWriter();
              out.println("<HTML><HEAD><TITLE>Hello Client!</TITLE>"+
         "</HEAD><BODY>Hello Client!</BODY></HTML>");
              out.close();
         public String getServletInfo()
              return "HelloClientServlet 1.0 by Stefan Zeiger";
    Error Messages:
    C:\ServletDevelopment\HelloClientServlet.java:2: package javax.servlet does not exist
    import javax.servlet.*;
    ^
    C:\ServletDevelopment\HelloClientServlet.java:3: package javax.servlet.http does not exist
    import javax.servlet.http.*;
    ^
    C:\ServletDevelopment\HelloClientServlet.java:4: cannot resolve symbol
    symbol : class HttpServlet
    location: class HelloClientServlet
    public class HelloClientServlet extends HttpServlet
    ^
    C:\ServletDevelopment\HelloClientServlet.java:6: cannot resolve symbol
    symbol : class HttpServletRequest
    location: class HelloClientServlet
         protected void doGet(HttpServletRequest req, HttpServletResponse res) throws ServletException, IOException
    ^
    C:\ServletDevelopment\HelloClientServlet.java:6: cannot resolve symbol
    symbol : class HttpServletResponse
    location: class HelloClientServlet
         protected void doGet(HttpServletRequest req, HttpServletResponse res) throws ServletException, IOException
    ^
    C:\ServletDevelopment\HelloClientServlet.java:6: cannot resolve symbol
    symbol : class ServletException
    location: class HelloClientServlet
         protected void doGet(HttpServletRequest req, HttpServletResponse res) throws ServletException, IOException
    ^
    6 errors
    Tool completed with exit code 1

  • Compiling servlets

    I cant compile servlets.
    Im using tomcat and I tried to compile the servlets in the example seperately but theres always errors. However when I execute the file from the example folder it runs just nicely.
    This is an example of the error produced:
    equestInfoExample.java:22: package javax.servlet does not exist
    import javax.servlet.*;
    ^
    RequestInfoExample.java:23: package javax.servlet.http does not exist
    import javax.servlet.http.*;
    ^
    RequestInfoExample.java:25: package util does not exist
    import util.HTMLFilter;
    ^
    RequestInfoExample.java:33: cannot resolve symbol
    symbol : class HttpServlet
    location: class RequestInfoExample
    public class RequestInfoExample extends HttpServlet {
    ^
    RequestInfoExample.java:38: cannot resolve symbol
    symbol : class HttpServletRequest
    location: class RequestInfoExample
    public void doGet(HttpServletRequest request,
    ^
    RequestInfoExample.java:39: cannot resolve symbol
    symbol : class HttpServletResponse
    location: class RequestInfoExample
    HttpServletResponse response)
    ^
    RequestInfoExample.java:40: cannot resolve symbol
    symbol : class ServletException
    location: class RequestInfoExample
    throws IOException, ServletException
    ^
    RequestInfoExample.java:105: cannot resolve symbol
    symbol : class HttpServletRequest
    location: class RequestInfoExample
    public void doPost(HttpServletRequest request,
    ^
    RequestInfoExample.java:106: cannot resolve symbol
    symbol : class HttpServletResponse
    location: class RequestInfoExample
    HttpServletResponse response)
    ^
    RequestInfoExample.java:107: cannot resolve symbol
    symbol : class ServletException
    location: class RequestInfoExample
    throws IOException, ServletException
    ^
    RequestInfoExample.java:76: cannot resolve symbol
    symbol : variable HTMLFilter
    location: class RequestInfoExample
    out.println(HTMLFilter.filter(request.getRequestURI()));
    ^
    RequestInfoExample.java:84: cannot resolve symbol
    symbol : variable HTMLFilter
    location: class RequestInfoExample
    out.println(HTMLFilter.filter(request.getPathInfo()));
    ^
    12 errors
    why is this.
    Please someone help me here!!
    Thanks in advance.

    what ever the above steps had i done i got the same error
    httpservletrequest unable to resolve symbol
    what i made is mycomputer>properties>advaced>envirinment variables>path>C:\Program Files\Apache Software Foundation\Tomcat 5.0\common\lib\servlet-api.*;(as am i using tomcat 5)and
    in cmd prompt set classpath=C:\Program Files\Apache Software Foundation\Tomcat 5.0\common\lib\servlet-api.*;and
    in cmd prompt set path=C:\Program Files\Apache Software Foundation\Tomcat 5.0\common\lib\servlet-api.*;got the same result unable to resolve the symbol pls i need some ones help

Maybe you are looking for

  • Is there a way to make an inline remote work as a menu button?

    My menu button on my 4th gen iPod touch is currently half-stuck.  The bottom half doesn't come up, the top half still works.  So I have my menu button working still, but I'm trying to find a way to not use it, just in case. is there any way to change

  • Intego virrusbarrier problems 10.6.2 snow leopard

    Ok, so since i installed virus barrier, the program has been a resource hog. I mean at times it is taking up to 600 MB, but typically when i'm having issues it's around 370MB. That is a crazy amount of memory! So that is not the issue. When i'm worki

  • Media Center III / Mega 180

    I finally found Media Center III. Why oh why did MSI hide this beatiful application under utillity/home theater ? I mean that app should have been a install option during autoplay. This is beyond my understanding. Anyway, i just love it, it fully int

  • Mac Pro will not even reboot after 10.5.7 update

    I haven't seen anyone else post about this but I started up my Mac Pro after work yesterday and within seconds the graphics went all glitchy and the machine froze up. After shelling out $50 to hear Apple say, "I don't know whats wrong" after trying t

  • Delegation in MSS

    Is there a prefered way to setup delegation in MSS?  Looking for recommended procedures/guidelines. I am on ESS/MSS 1.0 EP7. thanks James