This week's giveaway is in the Threads forum.
We're giving away four copies of Java Concurrency Live Lessons and have Doug Schmidt on-line!
See this thread for details.
Win a copy of Java Concurrency Live Lessons this week in the Threads forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

JDOM and JBuilder3  RSS feed

 
Raul Quintero
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can anyone explain to me the process of adding the JDOM files to a project using JBuilder 3? I want to add it using a library. Here is what I did.
On my existing project, I added a libray called JDOM using the project/properties menu option. For classpath and sourcepath, I used "C:\jdom\src" as the paths. I then import the "java.org.jdom.Element;"
When I work on a file, I can import the files, and JBuilder finds them without any problem, but it won't compile. I get this error:
"cannot access class java.org.jdom.Element; neither class nor source found for java.org.jdom.Element"
Any help would be appreciated.
 
Cynthia Yao
Ranch Hand
Posts: 92
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
in JBuilder, under project \ project property - paths - required library. You can create a new library, which point to you jdom.jar. Add that library to your project required library. At compile, please check that jar file is included.
I think that will solve u problem
 
Raul Quintero
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Got it, thanks. My .jar file was corrupted.
Thanks again!
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!