• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

servlet will not compile aargh

 
Chris Davies
Ranch Hand
Posts: 110
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi

i've set the following envorinment variables

classpath = C:\Tomcat4.1\common\lib\servlet.jar;
catalina_home = C:\Tomcat4.1
path = C:\j2sdk1.4.0_02\bin;C:\BASISclient\cs\bin;C:\jakarta-ant-1.5\bin;
java_home = C:\j2sdk1.4.0_02

and have the following servlet



located in the directory C:\Tomcat4.1\webapps\begjsp-ch13\WEB-INF\classes\com\wrox\servlets

but i'm getting the following error when i'm in the directory C:\Tomcat4.1\webapps\begjsp-ch13\WEB-INF\classes\ and trying to compile it using the following command

javac com\wrox\servlets\ExampleServlet.java



it seems to be a classpath issue but i cant see what ??

cheers

chris
 
Nathaniel Stoddard
Ranch Hand
Posts: 1258
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Have you tried specifying the classpath through the "javac" arguments? I don't really use the environment property any more, so I can't confirm that you're doing it correctly. I do know that just about everybody and their sister seems to have this problem on a daily basis. In fact, searching the forum posts will most likely help you immensely.
 
Vijay Vaddem
Ranch Hand
Posts: 243
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Chris,

I suggest to change the classpath as follows and try:

C:\Yourtomcatfolder\lib\servlet.jar

Regards,

Vijay
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic