Hi guys!
I’m trying to develop a nice game resource manager for my game and I’m having a little problem:
I’m using jdom to work with xml files and I want to include it to the executable jar somehow. The problem is - whatever I’m trying to do I get a
Exception in thread "main" java.lang.NoClassDefFoundError: org/jdom/JDOMException
Actually I cannot launch my editor from jar (no way!).
I’ve tried something like this:
C:\apps\eclipse\workspace\MRM\final>java -cp c:\apps\jars\jdom.jar -jar MRM.jar
Exception in thread "main" java.lang.NoClassDefFoundError: org/jdom/JDOMException
C:\apps\eclipse\workspace\MRM\final>java -cp c:\apps\jars\jdom.jar;. -jar MRM.ja
Exception in thread "main" java.lang.NoClassDefFoundError: org/jdom/JDOMException
There is no problem launching unpacked version of this soft…
Actually there is a solution: copy all needed library classes to the root of the executable jar. But this solution is not very good.
Plz help.
