I am reading an xml from my swing application using jdom.jar.
I am using Eclipse and Ant for build for development. I had added the jar in java buildpath and also in ANT buildpath.
Code is compiling & also build.xml is executed successfully. While debugging from Eclipse application is working fine and xml is read successfully.
But, when I am running my application from .exe(in jar format which contains all the class files of project), It is giving RuntimeError :- java.lang.NoClassDefFoundError: com/matrixone/jdom/input/SAXBuilder
I knew what this error means but this doesn�t seems as simple as its description is�
I had added jdom.jar path in environments variable entry also but still its giving same error.
Please let me know how to resolve this issue.
Note:- I solved it in below mentioned way. Steps:- Extract jdom.jar and add all the content in my project application.jar, and run the application.
In this case its working fine. But as per my understanding this wont be the right approach, because later if I want to add other 3rd party jars then it�s not prefer to add the content of jars instead of looking them somewhere else.
Please help me in sorting out this issue.
Thanks in Advance Sharad [ November 08, 2008: Message edited by: Sharad Goluone ]
Originally posted by Sharad Goluone: Sorry Rob, by mistake i matrixone typed. actually its giving error - com/jdom/input/SAXBuilder.
Note, it has to be org.jdom.input.SAXBuilder. Was "com" also a typing mistake? It's important to be precise in explaining exactly what you did and what the error message is, because the computer understands it only if you do it exactly right.