Win a copy of Beginning Java 17 Fundamentals: Object-Oriented Programming in Java 17 this week in the Java in General forum!
  • 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:
  • Tim Cooke
  • Campbell Ritchie
  • Ron McLeod
  • Liutauras Vilda
  • Jeanne Boyarsky
Sheriffs:
  • Junilu Lacar
  • Rob Spoor
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Tim Moores
  • Jesse Silverman
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Piet Souris
  • Frits Walraven

Compilation Error! URGENT

 
Ranch Hand
Posts: 149
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
I have set the TOMCAT_HOME & CLASSPATH in tomcat.bat file, but when try to compile my servlet, it says javax.servlet not found..
Can anybody help me.Eveybody says just set TOMCAT & CLASSPATH, but where to set?.Is the tomcat.bat the place to set?.

Pls tell me the exact code to set.
Thanks In Advance
Prasad Ballari
 
Desperado
Posts: 3226
5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Assuming that your main drive is "C:", then make sure that
C:\jakarta-tomcat\lib\servlet.jar

(or your particular variation of it) is in your CLASSPATH.
 
Ranch Hand
Posts: 5040
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I have set the TOMCAT_HOME & CLASSPATH in tomcat.bat file, but when try to compile my servlet, it says javax.servlet not found..
Can anybody help me.Eveybody says just set TOMCAT & CLASSPATH, but where to set?

Prasad:
you are expected to set TOMCAT_HOME and CLASSPATH in your autoexec.bat file if you are on Windows and in your .profile if you are on Unix.
You donot set them in tomcat.bat file.
If you want to know where to locate these files,
pl. let us know.
HTH.
regds.
- satya
 
reply
    Bookmark Topic Watch Topic
  • New Topic