• 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

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
 
I can't take it! You are too smart for me! Here is the tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic