Sujai Kaarthik wrote:I have placed the jdom.jar in jdk\jre\lib. I think that is not the problem. What would be the problem?
Putting JAR files there is not a good idea. Just add the JAR file to your classpath, by setting the CLASSPATH environment variable appropriately or by using the -cp or -classpath command line switches with the javac / java commands. See How To Set The Classpath.
But, the JDOMUtils class must be in the downloaded JAR, but that is not present there!!
what shall I do now?
Joined: Mar 22, 2005
What is "the downloaded jar"? No class of that name exists in the JDOM API, so where did you see it being used?
Joined: Dec 29, 2008
I actually tried to integrate JUnit with Ant. So, I googled and found a links that I have posted in my first post. The actual code, the build file and the JUnit test codes were all from that link. When I tried to compile those codes as said in that first link, the error message said me to include JDOM-b9 JAR.
After you replied to me, I guessed that JDOMUtils class must lie in JDOM-b9 JAR. So I explored through the JAR to find such a class (but in vein).
Actually I didn't saw any program using JDOMUtils. Its just a plain guess because of the word JDOM
I took that code out, and used the moneysample example from JUnit instead and made some alteration to the build file. Yes, I was successful in this attempt.