hello everybody, i've lost many hours in trying to install succesfully jdom in my windows xp machine... i really don't know what to try more to make jdom work correctly and i'm really desperate! here's what i did: 1) downloaded jdom.jar 2) put jdom.jar in my C:\j2sdk1.4.0\lib\; directory 3) create a new class with a Document object inside 4) compiled my new classs declaring the path in the command line: no error were found! 5) tried to run my class (adding the same -classpath, too) and.... got the error: NOClassDefFoundError referred to org/jdom/Document!!
i'm really getting crazy with this! why in compiling the class there's no error while at runtime the JVM finds that error?? what am i doin wrong? thanks in advance if someone can help me!
btw: i already tried changin my EnvVariables in the system menu...it didn't work.
You need to have the name of the jar file in your classpath, not just the name of the directory in which it resides. So just add C:\j2sdk1.4.0\lib\jdom.jar to your existing classpath and you should be in business (you could alternatively put it in the extensions directory, but I think it is better to put it in your classpath).