Reputation: 27
I am using jdk1.5.0 and Tomcat 5.5. I recently edited the class path to
javac -cp.;/Program Files/Apache Software Foundation/Tomcat 5.5/lib/servlet-api.jar
and i also created a default servlet folder i was required to create which should be located at
C:/Program Files/Apache Software Foundation/Tomcat 5.5/webapps/ROOT/WEB-INF/classes.
but i still get the same errors
package javax.servlet does not exist
package javax.servlet.http does not exist
and i don't know if
Failed to load Main-class manifest attribute
from JVM Launcher has nothing to do with the errors i got.
Thank you for taking time to help.
Upvotes: 1
Views: 137
Reputation: 36703
Try adding quotes and using backslashes. I think the space in "Program Files" etc. will break the line into another argument.
javac -cp ".;C:\Program Files\Apache Software Foundation\Tomcat 5.5\lib\servlet-api.jar"
Upvotes: 2