<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content="text/html; charset=iso-8859-1" http-equiv=Content-Type>
<META content="MSHTML 5.00.2614.3500" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT size=2>
<P><FONT face=Arial>Hi,</FONT></P>
<P> </P>
<P><FONT face=Arial>The following code works fine under Windows, but not under
Linux,</FONT></P>
<P><FONT face=Arial>where I get a JDOM exception: "error in build:
HOME"</FONT></P>
<P><FONT
face=Arial>--------------------------------------------------------------</FONT></P>
<P>import org.jdom.Element;</P>
<P>import org.jdom.Document;</P>
<P>import org.jdom.output.XMLOutputter;</P>
<P>import org.jdom.input.SAXBuilder;</P>
<P>public class HelloWorld {</P>
<P>public static void main(String[] args) {</P>
<P>// Create a root Element for the Document</P>
<P>Element root = new Element("GREETING");</P>
<P>root.setText("Hello World!");</P>
<P>// Create a new document using the root element just created</P>
<P></P>
<P> </P>
<P>//Document doc = new Document(root);</P>
<P></P>
<P>try {</P>
<P>SAXBuilder builder = new SAXBuilder();</P>
<P>Document doc = builder.build("test.xml");</P>
<P>// Output the new document (doc) to System.out</P>
<P>XMLOutputter outputter = new XMLOutputter();</P>
<P>outputter.output(doc, System.out);</P>
<P>} catch (Exception e) {</P>
<P>System.err.println(e);</P>
<P>}</P>
<P>}</P>
<P>}</P></FONT></DIV></BODY></HTML>