aspose file tools*
The moose likes Servlets and the fly likes servlet will not compile aargh Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "servlet will not compile aargh" Watch "servlet will not compile aargh" New topic
Author

servlet will not compile aargh

Chris Davies
Ranch Hand

Joined: Feb 26, 2003
Posts: 110
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


One day all greenhorns will run free ...
Nathaniel Stoddard
Ranch Hand

Joined: May 29, 2003
Posts: 1258
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.


Nathaniel Stodard<br />SCJP, SCJD, SCWCD, SCBCD, SCDJWS, ICAD, ICSD, ICED
Vijay Vaddem
Ranch Hand

Joined: Feb 13, 2004
Posts: 243
Hi Chris,

I suggest to change the classpath as follows and try:

C:\Yourtomcatfolder\lib\servlet.jar

Regards,

Vijay
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: servlet will not compile aargh