File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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 Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Bookmark "cannot compile with -classpath" Watch "cannot compile with -classpath" New topic
Author

cannot compile with -classpath

Sefa Urgenc
Ranch Hand

Joined: Jul 25, 2002
Posts: 34
Hi,

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
Greenhorn

Joined: Sep 21, 2004
Posts: 26
Hi,

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.

Regards,
Navanee
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: cannot compile with -classpath
 
Similar Threads
Unable to compile HelloWorldExample.java file in Tomcat 5.0.28
Servlet issue
using the �classpath option in the javac command
Setting classpath
package javax.servlet does not exist... Please help me..