Reputation: 67
Having the error:
com.opensymphony.xwork2.ActionSupport; package does not exist
I am using struts2.3.8
and Not using eclipse or net beans, But have made this directory structure:
Code\Chapter\Struts2Application\WEB-INF\src\comm\kognet\action\ClientAction.java
and Unzipped struts2
and copied and stored jar files in:
Code\Chapter\Struts2Application\WEB-INF\lib
common-logging1-1-1
freemarker-2.3.19
ognl3.0.6
xwork core-2.3.8
struts2 core-2.3.8
I have set catalina_home
as:
C:\Program Files\Java\jdk1.7.0_07\apache-tomcat-7.0.37
Path as:
C:\Program Files\Java\jdk1.7.0_07
classpath as .
I am New to Struts and this is my first program. Please Help
Upvotes: 0
Views: 1303
Reputation: 1
Just go to your project name, right-click on it, select properties then select again libraries and classpath. There, you've just either add library or add jar/directory and voila!
Upvotes: -1
Reputation: 160191
-classpath
or -cp
or the CLASSPATH
environment variable, which IMO should be avoided) to .
is insufficient. You need to add all your dependent jars explicitly, or via a wildcard, and...WEB-INF
, use a directory outside of deployable artifacts. For toy development it's okay, but IMO it's a bad habit.Upvotes: 2