This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
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


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
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: 684

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
 
Don't get me started about those stupid light bulbs.
 
subject: com/opensymphony/xwork2/ActionSupp error
 
Similar Threads
unable to compile servletListener
Servlets and relative file path io
need help in compiling servlet
Conversion of string to date
Compiling java file