Sponsored Links

Results 1 to 2 of 2

Thread: java Servlet Compilation

  1. #1
    Senior Member saneha's Avatar
    Join Date
    Apr 2011

    Thumbs up java Servlet Compilation

    Sponsored Links1

    was not successful. My tomcat server is running. I also tried it it Netbeans 5.0, but not able to compile it. Manually i set the CLASSPATh variable in My computers properties, so that i can compile but not. What to do?
    commant prompts gives following error.
    C:\Program Files\Apache Software Foundation\Tomcat 6.0\webapps\myapp\WEB_INF\cla sses>javac MyServlet.java MyServlet.java:2: package javax.servlet does not exist import javax.servlet.*; ^ MyServlet.java:3: package javax.servlet.http does not exist import javax.servlet.http.*; ^ MyServlet.java:4: cannot find symbol symbol: class HttpServlet

    Sponsored Links

  2. #2
    Administrator Vuhelper's Avatar
    Join Date
    Apr 2011
    Make sure that you have set the class path correctly.

    Your class path variable should point to lib folder, in newer versions there is no common. So classpath should be with out this.

    If the issue remains sent me the snapshot of your environment variables

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 0
    Last Post: 05-19-2014, 11:42 PM
  2. In Java which file do we define a servlet mapping?
    By Xpert in forum Unsolved MCQS
    Replies: 0
    Last Post: 07-17-2011, 04:01 PM
  3. Replies: 0
    Last Post: 06-23-2011, 11:41 PM
  4. Replies: 1
    Last Post: 04-28-2011, 08:55 PM
  5. servlet name in java 2011
    By saneha in forum Java forum
    Replies: 0
    Last Post: 04-24-2011, 10:37 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
-: Vuhelp Disclaimer :-
None of the files shown here are hosted or transmitted by this server. The links are provided solely by this site's users. The administrator's or staff of Vuhelp.net cannot be held responsible for what its users post, or any other actions of its users. You may not use this site to distribute or download any material when you do not have the legal rights to do so. It is your own responsibility to adhere to these terms. If you have any doubts about legality of content or you have any suspicions, feel free to contact us.
Online Education | JhelumSoft | Jobs