apache-tomcat-6.0.20 in C:\apache-tomcat-6.0.20 ,
struts-2.1.6-all in C:\struts-2.1.6-all,
JAVA_HOME is C:\Program Files\Java\jdk1.5.0_10\bin
CLASSPATH is .;C:\apache-tomcat-6.0.20\apache-tomcat-6.0.20\lib\servlet-api.jar;C:\apache-tomcat-6.0.20\apache-tomcat-6.0.20\webapps\user1\WEB-INF\classes
PATH is C:\Program Files\Java\jdk1.5.0_10\bin
I have my application in C:\apache-tomcat-6.0.20\apache-tomcat-6.0.20\webapps\user1
When I try to compile the java files from
i get the error:
LoginForm.java:2: package org.apache.struts.Action does not exist
LoginForm.java:5: package org.apache.struts.action does not exist
public class LoginForm extends org.apache.struts.action.ActionForm
This looks like a classpath problem, but i don't get it.
You're not misconfigured the struts jar files only, but also taken a wrong Struts version, the org.apache.struts.Action class comes in Struts1.x and you're using Struts 2.
So download the Struts 1.3.9 build and set those jar in classpath.
And please carefully choose the forum, its not Struts section.