Need to add "java.xml.*" library

Please support our Java advertiser: Programming Forums - DaniWeb Sister Site
Reply

Join Date: Jun 2007
Posts: 4
Reputation: alpha_gamma is an unknown quantity at this point 
Solved Threads: 0
alpha_gamma alpha_gamma is offline Offline
Newbie Poster

Need to add "java.xml.*" library

 
0
  #1
Jan 11th, 2009
Hello,

I tried to run a probram from the book "Big Java" by Cay Hortsman that parses an XML document. I typed in the line in Eclipse and it gave me a red box error message saying "the import java.xml can not be resolved". This tels me that i do not have the library to import.

What I would like to know is how i can add this library so i can use it on any IDE and also use it with command line compiling.

Also i would like to know how i can get the org.* library as well. Any help is appreciated.....

Rgds,

Andrew
Reply With Quote Quick reply to this message  
Join Date: Jun 2006
Posts: 7,619
Reputation: ~s.o.s~ has much to be proud of ~s.o.s~ has much to be proud of ~s.o.s~ has much to be proud of ~s.o.s~ has much to be proud of ~s.o.s~ has much to be proud of ~s.o.s~ has much to be proud of ~s.o.s~ has much to be proud of ~s.o.s~ has much to be proud of ~s.o.s~ has much to be proud of 
Solved Threads: 468
Super Moderator
Featured Poster
~s.o.s~'s Avatar
~s.o.s~ ~s.o.s~ is offline Offline
Failure as a human

Re: Need to add "java.xml.*" library

 
0
  #2
Jan 11th, 2009
> Eclipse and it gave me a red box error message saying "the import
> java.xml can not be resolved"

...because a package by the name java.xml.* doesn't exist; it's javax.xml.*
Refer the Javadocs for more details.
I don't accept change; I don't deserve to live.
Reply With Quote Quick reply to this message  
Join Date: May 2007
Posts: 4,471
Reputation: Ezzaral has much to be proud of Ezzaral has much to be proud of Ezzaral has much to be proud of Ezzaral has much to be proud of Ezzaral has much to be proud of Ezzaral has much to be proud of Ezzaral has much to be proud of Ezzaral has much to be proud of Ezzaral has much to be proud of Ezzaral has much to be proud of 
Solved Threads: 513
Moderator
Featured Poster
Ezzaral's Avatar
Ezzaral Ezzaral is offline Offline
Industrious Poster

Re: Need to add "java.xml.*" library

 
0
  #3
Jan 12th, 2009
Originally Posted by alpha_gamma View Post
Also i would like to know how i can get the org.* library as well. Any help is appreciated.....
Um, I think you are going to have a hard time finding the "org.*" library - that could encompass thousands of projects.
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the Java Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC