wood burning stoves 2.0*
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

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
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.

It is sorta covered in the JavaRanch Style Guide.
subject: cannot compile with -classpath
Similar Threads
Unable to compile HelloWorldExample.java file in Tomcat 5.0.28
package javax.servlet does not exist... Please help me..
Setting classpath
Servlet issue
using the �classpath option in the javac command