Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Compilation Error! URGENT

 
Prasad Ballari
Ranch Hand
Posts: 149
  • Mark post as helpful
  • send pies
  • 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
 
Tony Alicea
Desperado
Sheriff
Posts: 3226
5
  • Mark post as helpful
  • send pies
  • 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.
 
Madhav Lakkapragada
Ranch Hand
Posts: 5040
  • Mark post as helpful
  • send pies
  • 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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic