Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

compilation error - Custom Tag  RSS feed

 
Shalu Ban
Ranch Hand
Posts: 72
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I am getting this error : package javax.servlet.JSP does not exist when i compile a Custom tag Java file. Even though i have included the classpath of servlet.jar in the classpath while compiling. The strange thing is that other files in which i had imported these packages were compiling fine until yesterday. Bugs me! Any ideas?
my command looks like this:
javac -classpath %Classpath%;"D:\Program Files\Apache Tomcat 4.0\common\lib\servlet.jar" "D:\Program Files\Apache Tomcat 4.0\webapps\examples\WEB-INF\classes\com\tag\GDA.java"
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65833
134
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

This is Java. Case matters.
 
Shalu Ban
Ranch Hand
Posts: 72
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Oops!! Thanks for reminding!
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!