*
The moose likes Beginning Java and the fly likes import Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "import" Watch "import" New topic
Author

import

oLi Bou
Greenhorn

Joined: Jul 03, 2002
Posts: 23
hi
I need to import some packages
-------
import org.apache.xml.serialize.XMLSerializer;
import org.apache.xml.serialize.OutputFormat;
import org.apache.xerces.dom.DocumentImpl;
import org.apache.xerces.dom.DocumentTypeImpl;
import org.apache.xerces.dom.DOMImplementationImpl;
-------
and i do not know where i can find them ... i installed Xerces 2 but it didn't change anything till now :s
thx


--learn every day--
Anonymous
Ranch Hand

Joined: Nov 22, 2008
Posts: 18944
How did you install xerxes2 ? Normally you find these classes in the xerxes.jar. You can check it if you unzip the jar file.
For running your code correctly you have to put xerxes.jar into your classpath.
For seeing it in the ide's you have to be careful.
Not every ide is updating the auto completition automaticly when you mount a jar file.
So e.g in Netbeans you first have to update your parser database yourself
Marilyn de Queiroz
Sheriff

Joined: Jul 22, 2000
Posts: 9044
    
  10
oLi D,

We'd like you to read the Javaranch Naming Policy and change your publicly displayed name to comply with our unique rule. Thank you.

"FirstName space LastInitial" is not acceptable.


JavaBeginnersFaq
"Yesterday is history, tomorrow is a mystery, and today is a gift; that's why they call it the present." Eleanor Roosevelt
Jason Ford
Ranch Hand

Joined: Aug 02, 2001
Posts: 54
Also, be very careful about how you spell xerces. It is a very common mistake (i.e. one I have made myself) to accidentally add xerxes.jar to your classpath. I think this spelling is more natural to native English speakers than the correct spelling, xerces.
A quick google search reveals that there are at least nine web pages that accidentally include both spellings on the same page.


SCJP, SCWCD
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: import