The oldest version of Struts 2 that I have handy is 2.1.6, but the list of required jars in that release is:
The Struts release comes with several example applications. There should be one called "struts2-blank-x.x.x.war". If you unzip that, you can grab the required files in WEB-INF/lib.
Still iam facing the same issue. While compiling time in command prompt iam getting same error, how i can get the class file. if there is any other options to get class file. My problem is to get the class file only. i have taken some programs code it is running perfectly but if take the some java code from that program outside and try to compile its showing the same error. I think in class path issue or what please guide me to solve my issue.
Iam building my application in Eclipse 3.2 with struts2 concept, iam having one java file to run the Application in eclipse we need to paste the class file in classes folder wile iam compiling my java file outside (ie) in desktop iam having the file iam trying in cmd prompt, and the original file is also in eclipse project folder,iam getting error like package com.opensymphony.xwork2 does not exist. i have pasted all jar files in WED-INF folder.
My Java File is :
Iam getting error in command prompt :
I have attached the document for overview of my project screen and error page please find the attachment.
Provide libraries path when you are compiling your programme javac -cp "lib/*" my.package.MainClass I haven't tried it. But it should work.
ocjp 6 — Feeding a person with food is a great thing in this world. Feeding the same person by transferring the knowledge is far more better thing. The reason is the amount of satisfaction which we get through food is of only one minute or two. But the satisfaction which we can get through the knowledge is of life long.
P Arunkumar wrote:PLEASE reply for my query, to solve this problem,its so urgent.
First off, EaseUp. We are all volunteers here, answering questions in our free time.
As for your previous post, I think you are missing some puncuation, because I'm having a hard time parsing what you are saying:
P Arunkumar wrote:Iam building my application in Eclipse 3.2 with struts2 concept, iam having one java file to run the Application in eclipse we need to paste the class file in classes folder wile iam compiling my java file outside (ie) in desktop iam having the file iam trying in cmd prompt, and the original file is also in eclipse project folder,iam getting error like package com.opensymphony.xwork2 does not exist. i have pasted all jar files in WED-INF folder.
I dont know if this thing is solved. (Cause I faced the same issue but this link did not help me)
Anyway the issue is resolved now.
All I had to do was include few JARs required for this in the referenced libraries.
Welcome to the JavaRanch. I sure hope P Arunkumar wasn't waiting a year and a half for that reply
You don't have a Struts JAR file in your application which makes me suspicious about your solution. Also, the version of your Xwork file is 2.3.4. The current version is 184.108.40.206 and I don't think Spring (or OJDBC or JXL) is a dependency unless one is using those libraries.
The dependencies for a particular version of Struts will vary so it is always best to go off the example applications included with the distribution.