• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Junilu Lacar
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • Rob Spoor
  • Bear Bibeault
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Piet Souris
  • Carey Brown
  • Stephan van Hulst
Bartenders:
  • Frits Walraven
  • fred rosenberger
  • salvin francis

basic servlet compilation difficulty

 
Ranch Hand
Posts: 45
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Hello ranchers...
I am preparing for scwcd...i had read the hfsj but not done a single programme while reading...now i have started to do the practicle..and i found so many difficulties

I am doing the first basic programme of servlet...in that

my project directory is in C:\Program Files\Java\jdk1.5.0_19\bin

i am using jdk1.5.0_19 and Tomcat 5.5

when i am trying to compile it using

c:\program Files\Java\jdk1.5.0_19\bin\project>javac -classpath C:/Program Files/Apache Software Foundation/Tomcat 5.5/common/lib/servlet-api.jar -d classes src/Ch1Servlet.java



I get

javac is not recognised as a internal or external command..

whether the path ,i am using during compilation is wrong ???

i know that this was a very basic problem but please help.....
 
Ranch Hand
Posts: 331
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Have you set the 'path' environment variable? (Assuming it is Windows)
The value would be like C:\<all those directories>\bin
 
reply
    Bookmark Topic Watch Topic
  • New Topic