DaniWeb IT Discussion Community

DaniWeb IT Discussion Community (http://www.daniweb.com/forums/index.php)
-   Java (http://www.daniweb.com/forums/forum9.html)
-   -   Need to add "java.xml.*" library (http://www.daniweb.com/forums/thread167739.html)

alpha_gamma Jan 11th, 2009 3:49 pm
Need to add "java.xml.*" library
 
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

~s.o.s~ Jan 11th, 2009 4:32 pm
Re: Need to add "java.xml.*" library
 
> 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.

Ezzaral Jan 12th, 2009 1:42 pm
Re: Need to add "java.xml.*" library
 
Quote:

Originally Posted by alpha_gamma (Post 775976)
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.


All times are GMT -4. The time now is 4:59 pm.

Forum system based on vBulletin Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
©2003 - 2009 DaniWeb® LLC