aspose file tools*
The moose likes Struts and the fly likes com/opensymphony/xwork2/ActionSupp error Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "com/opensymphony/xwork2/ActionSupp error" Watch "com/opensymphony/xwork2/ActionSupp error" New topic
Author

com/opensymphony/xwork2/ActionSupp error

Hrishikesh Maluskar
Ranch Hand

Joined: Jun 19, 2008
Posts: 115
i am getting the following error after compiling struts 2.1.6 application using ant.can somebody please help me solve this problem

compile:
[javac] Compiling 1 source file to C:\Program Files\Apache Software Foundati
on\Tomcat 5.0\webapps\infoz1\WEB-INF\src\classes
[javac] C:\Program Files\Apache Software Foundation\Tomcat 5.0\webapps\infoz
1\WEB-INF\src\java\net\roseindia\Struts2HelloWorld.java:2: cannot access com.ope
nsymphony.xwork2.ActionSupport
[javac] bad class file: C:\Program Files\Apache Software Foundation\Tomcat 5
.0\webapps\infoz1\WEB-INF\lib\xwork-2.1.2.jar(com/opensymphony/xwork2/ActionSupp
ort.class)
[javac] class file has wrong version 49.0, should be 48.0
[javac] Please remove or make sure it appears in the correct subdirectory of
the classpath.
[javac] import com.opensymphony.xwork2.ActionSupport;
[javac] ^
[javac] 1 error

SCJP 1.5
www.licexpadvice.com
Nishan Patel
Ranch Hand

Joined: Sep 07, 2008
Posts: 689

It seems your application miss Struts JAR. Can you check it again in your class path ...


Thanks, Nishan Patel
SCJP 1.5, SCWCD 1.5, OCPJWSD Java Developer,My Blog
Hrishikesh Maluskar
Ranch Hand

Joined: Jun 19, 2008
Posts: 115
i have checked my classpath. It gets compliled using Jcreator , but when i use ant for compiling it fails.
Hrishikesh Maluskar
Ranch Hand

Joined: Jun 19, 2008
Posts: 115
i solved this problem by pointing everything to JDK 1.5
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: com/opensymphony/xwork2/ActionSupp error