File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes cannot compile with -classpath Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Bookmark "cannot compile with -classpath" Watch "cannot compile with -classpath" New topic

cannot compile with -classpath

Sefa Urgenc
Ranch Hand

Joined: Jul 25, 2002
Posts: 34

It seems that the -classpath option is unable to find the servlet-api.jar file.

I am using Tomcat 5.0 on XP, I get an invalid flag, so I tried to rename the C:\Tomcat 5.0 I get an access denied window.

Thanx in Advance
Navaneetha krishnan

Joined: Sep 21, 2004
Posts: 26

The servlet-api.jar is located in 'tomcat_folder\common\lib'. Renaming the tomcat folder might cause issues. Please try to use the original folder name that you used while installing Tomcat.

I agree. Here's the link:
subject: cannot compile with -classpath
jQuery in Action, 3rd edition