Question : java.lang.ClassNotFoundErr<wbr />or ClassName - Please suggest

My Web Application is giving an error in SysErr.log file
java.lang.NoClassDefFoundError: org/jdom/output/Format

But, I already have
"jaxen-core.jar" "jaxen-jdom.jar" "jdom.jar" "saxpath.jar" "xalan.jar" "xerces.jar" "xml-apis.jar" in my "build path of the project."

where jdom.jar has org.jdom.output.Format.

And what is weird is that "It would have given compilation error if it isn't present in the project. But it is giving the runtime error saying NoClassDefFoundError Format." Please suggest why is this happening & What to do to avoid this in WebSphere?
Code Snippet:
1:
2:
Format format = Format.getCompactFormat();
XMLOutputter xout = new XMLOutputter(format);

Answer : java.lang.ClassNotFoundErr<wbr />or ClassName - Please suggest

I've said before - different compile time and runtime classpaths
Random Solutions  
 
programming4us programming4us