[jdom-interest] Build error in Linux , not Windows

Ian Lea ian.lea at blackwell.co.uk
Tue Nov 20 06:33:05 PST 2001


What is in test.xml?  Perhaps some DTD reference to HOME which
makes sense under Windows but not Linux?



--
Ian.


> Brian Wolf wrote:
> 
> Hi,
> 
> 
> 
> The following code works fine under Windows, but not under Linux,
> 
> where I get a JDOM exception: "error in build: HOME"
> 
> --------------------------------------------------------------
> 
> import org.jdom.Element;
> 
> import org.jdom.Document;
> 
> import org.jdom.output.XMLOutputter;
> 
> import org.jdom.input.SAXBuilder;
> 
> public class HelloWorld {
> 
> public static void main(String[] args) {
> 
> // Create a root Element for the Document
> 
> Element root = new Element("GREETING");
> 
> root.setText("Hello World!");
> 
> // Create a new document using the root element just created
> 
> 
> 
> //Document doc = new Document(root);
> 
> try {
> 
> SAXBuilder builder = new SAXBuilder();
> 
> Document doc = builder.build("test.xml");
> 
> // Output the new document (doc) to System.out
> 
> XMLOutputter outputter = new XMLOutputter();
> 
> outputter.output(doc, System.out);
> 
> } catch (Exception e) {
> 
> System.err.println(e);
> 
> }
> 
> }
> 
> }



More information about the jdom-interest mailing list