Results 1 to 2 of 2
  1. #1
    vivek_9912 is offline Member
    Join Date
    Nov 2007
    Posts
    3
    Rep Power
    0

    Default problem compiling servlet

    Hi all,
    I have been trying to learn servlets for the past week. I wrote a sample example and am trying to compile it but have been getting problems.

    When I write javac -classpath /personal practice/tomcat/common/lib/servlet-api.jar -d classes src/Ch1Servlet.java on the command line I get the message that 'javac' is not recognised as an internal or external command,operable program or batch file.

    My source file Ch1Servlet.java is under project1/src directory

    I want my class file to be placed under project1/classes directory

    I have also mentioned the path of the servlet-api.jar in the command.

    My classpath has been set to C:/program files/java/jdk1.6.0_12/bin

    I just can't figure out why javac is not being recognised as a command.

    Can anyone please help me.

  2. #2
    Join Date
    Oct 2008
    Posts
    73
    Rep Power
    0

Similar Threads

  1. Servlet problem
    By maheshkanda in forum New To Java
    Replies: 5
    Last Post: 02-10-2009, 08:55 AM
  2. servlet Filter problem
    By saint_jorjo in forum New To Java
    Replies: 1
    Last Post: 03-13-2008, 12:05 PM
  3. Problem in Servlet with JDBC
    By *New Programer* in forum Java Servlet
    Replies: 2
    Last Post: 12-20-2007, 09:15 AM
  4. problem compiling servlets
    By boy22 in forum Java Servlet
    Replies: 1
    Last Post: 08-03-2007, 10:05 AM
  5. getting problem in compiling java program?
    By sathish04021984 in forum New To Java
    Replies: 3
    Last Post: 07-30-2007, 09:26 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •