The Artima Developer Community
Sponsored Link

Java Answers Forum
help installing jdom! (getting crazy)

2 replies on 1 page. Most recent reply: Jun 5, 2002 12:16 AM by giulio

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 2 replies on 1 page
giulio

Posts: 4
Nickname: giulio
Registered: Jun, 2002

help installing jdom! (getting crazy) Posted: Jun 4, 2002 7:38 AM
Reply to this message Reply
Advertisement
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.


Matt Gerrans

Posts: 1153
Nickname: matt
Registered: Feb, 2002

Re: help installing jdom! (getting crazy) Posted: Jun 4, 2002 8:41 AM
Reply to this message Reply
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).

giulio

Posts: 4
Nickname: giulio
Registered: Jun, 2002

Re: help installing jdom! (getting crazy) Posted: Jun 5, 2002 12:16 AM
Reply to this message Reply
hey matt!
;)
that was REALLY stupid from me!
... i only put the name of the folder! now everything's working!!
thank you very much!
i owe you a beer.

Flat View: This topic has 2 replies on 1 page
Topic: Virus Scan using Java ,URGENT!!!! Previous Topic   Next Topic Topic: Using JavaScript Variable in JSP Scriptlet

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use