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

Brian Wolf brianw at knowledgextensions.com
Tue Nov 20 05:52:17 PST 2001


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);

}

}

}

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://jdom.org/pipermail/jdom-interest/attachments/20011120/80fb61be/attachment.htm


More information about the jdom-interest mailing list