<!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><FONT face=Arial size=2>Here is the exception, the 
program, the xml file and the 
environmental<BR>settings:<BR><BR><BR>org.jdom.JDOMException: Error in building: 
home<BR><BR><BR><BR>import org.jdom.Element;<BR>import 
org.jdom.Document;<BR>import org.jdom.output.XMLOutputter;<BR>import 
org.jdom.input.SAXBuilder;<BR><BR>public class HelloWorld {<BR>&nbsp; public 
static void main(String[] args) {<BR><BR>&nbsp;&nbsp;&nbsp; try 
{<BR><BR>&nbsp;&nbsp;&nbsp; SAXBuilder builder = new 
SAXBuilder();<BR><BR>&nbsp;&nbsp;&nbsp; Document doc = 
builder.build("/home/brian/test.xml");<BR><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; // 
Output the new document (doc) to System.out<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
XMLOutputter outputter = new XMLOutputter();<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
outputter.output(doc, System.out);<BR>&nbsp;&nbsp;&nbsp; } catch (Exception e) 
{<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; System.err.println(e);<BR>&nbsp;&nbsp;&nbsp; 
}<BR>&nbsp; 
}<BR>}<BR><BR><BR>-----------------------------------------test.xml---------------------------<BR>------------------<BR><BR>&lt;?xml 
version="1.0"?&gt;<BR>&lt;camelids&gt;<BR>&nbsp; &lt;species name="Camelus 
dromedarius"&gt;<BR>&nbsp;&nbsp;&nbsp; &lt;common-name&gt;Dromedary, or Arabian 
Camel&lt;/common-name&gt;<BR>&nbsp;&nbsp;&nbsp; 
&lt;physical-characteristics&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
&lt;mass&gt;300 to 690 kg.&lt;/mass&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
&lt;appearance&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; The dromedary 
camel is characterized by a 
long-curved<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; neck, deep-narrow 
chest, and a single hump.<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
...<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/appearance&gt;<BR>&nbsp;&nbsp;&nbsp; 
&lt;/physical-characteristics&gt;<BR>&nbsp;&nbsp;&nbsp; 
&lt;natural-history&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
&lt;food-habits&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; The 
dromedary camel is an 
herbivore.<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
...<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
&lt;/food-habits&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
&lt;reproduction&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; The 
dromedary camel has a lifespan of about 40-50 
years<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
...<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
&lt;/reproduction&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
&lt;behavior&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; With the 
exception of rutting males, dromedaries 
show<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; very little aggressive 
behavior.<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
...<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
&lt;/behavior&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
&lt;habitat&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; The camels 
prefer desert conditions characterized by 
a<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; long dry season and a 
short rainy season.<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
...<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
&lt;/habitat&gt;<BR>&nbsp;&nbsp;&nbsp; 
&lt;/natural-history&gt;<BR>&nbsp;&nbsp;&nbsp; &lt;conservation status="no 
special status"&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
&lt;detail&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Since the dromedary 
camel is domesticated, the camel 
has<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; no special status in 
conservation.<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
&lt;/detail&gt;<BR>&nbsp;&nbsp;&nbsp; &lt;/conservation&gt;<BR>&nbsp; 
&lt;/species&gt;<BR>&nbsp; 
...<BR>&lt;/camelids&gt;<BR><BR><BR>---------------------------<BR>environment 
------------------------------------------<BR><BR>PWD=/home/brian<BR>WINDOWID=29360392<BR>HOSTNAME=localhost.localdomain<BR>QTDIR=/usr/lib/qt-2.3.0<BR>LESSOPEN=|/usr/bin/lesspipe.sh 
%s<BR>KDEDIR=/usr<BR>USER=root<BR>LS_COLORS=no=00:fi=00:di=01;34:ln=01;36:pi=40;33:so=01;35:bd=40;33;01:cd=40;<BR>33;01:or=01;05;37;41:mi=01;05;37;41:ex=01;32:*.cmd=01;32:*.exe=01;32:*.com=0<BR>1;32:*.btm=01;32:*.bat=01;32:*.sh=01;32:*.csh=01;32:*.tar=01;31:*.tgz=01;31:<BR>*.arj=01;31:*.taz=01;31:*.lzh=01;31:*.zip=01;31:*.z=01;31:*.Z=01;31:*.gz=01;<BR>31:*.bz2=01;31:*.bz=01;31:*.tz=01;31:*.rpm=01;31:*.cpio=01;31:*.jpg=01;35:*.<BR>gif=01;35:*.bmp=01;35:*.xbm=01;35:*.xpm=01;35:*.png=01;35:*.tif=01;35:<BR>MACHTYPE=i386-redhat-linux-gnu<BR>MAIL=/var/spool/mail/root<BR>INPUTRC=/etc/inputrc<BR>OLDPWD=/root<BR>BASH_ENV=/root/.bashrc<BR>XMODIFIERS=@im=none<BR>LANG=en_US<BR>JAVA_HOME=/usr/java<BR>COLORTERM=gnome-terminal<BR>DISPLAY=:0<BR>LOGNAME=root<BR>SHLVL=4<BR>SESSION_MANAGER=local/localhost.localdomain:/tmp/.ICE-unix/734<BR>SHELL=/bin/bash<BR>USERNAME=root<BR>HOSTTYPE=i386<BR>OSTYPE=linux-gnu<BR>HISTSIZE=1000<BR>LAMHELPFILE=/etc/lam/lam-helpfile<BR>HOME=/root<BR>SSH_ASKPASS=/usr/libexec/openssh/gnome-ssh-askpass<BR>TERM=xterm<BR>PATH=/usr/local/sbin:/usr/sbin:/sbin:/usr/local/sbin:/usr/local/bin:/sbin:/b<BR>in:/usr/sbin:/usr/bin:/usr/X11R6/bin:/root/bin<BR>_=/usr/bin/env<BR><BR><BR><BR><BR><BR><BR><BR>----- 
Original Message -----<BR>From: Bilton, Sasha &lt;<A 
href="mailto:Sasha.Bilton@bskyb.com">Sasha.Bilton@bskyb.com</A>&gt;<BR>To: 
'Brian Wolf' &lt;<A 
href="mailto:brianw@knowledgextensions.com">brianw@knowledgextensions.com</A>&gt;<BR>Sent: 
Tuesday, November 20, 2001 9:53 AM<BR>Subject: RE: [jdom-interest] Build error 
in Linux , not Windows<BR><BR><BR>&gt; Hmmm. Maybe your JAVA_HOME environment 
setting is set properly?<BR>&gt;<BR>&gt; Other than that, post the entire 
Exception and the xml file test. Check<BR>that<BR>&gt; test.xml is in your 
working directory<BR>&gt;<BR>&gt; -----Original Message-----<BR>&gt; From: Brian 
Wolf [<A 
href="mailto:brianw@knowledgextensions.com">mailto:brianw@knowledgextensions.com</A>]<BR>&gt; 
Sent: 20 November 2001 13:52<BR>&gt; To: <A 
href="mailto:jdom-interest@jdom.org">jdom-interest@jdom.org</A><BR>&gt; Subject: 
[jdom-interest] Build error in Linux , not Windows<BR>&gt;<BR>&gt;<BR>&gt; 
Hi,<BR>&gt;<BR>&gt; The following code works fine under Windows, but not under 
Linux,<BR>&gt; where I get a JDOM exception: "error in build: HOME"<BR>&gt; 
--------------------------------------------------------------<BR>&gt; import 
org.jdom.Element;<BR>&gt; import org.jdom.Document;<BR>&gt; import 
org.jdom.output.XMLOutputter;<BR>&gt; import org.jdom.input.SAXBuilder;<BR>&gt; 
public class HelloWorld {<BR>&gt; public static void main(String[] args) 
{<BR>&gt; // Create a root Element for the Document<BR>&gt; Element root = new 
Element("GREETING");<BR>&gt; root.setText("Hello World!");<BR>&gt; // Create a 
new document using the root element just created<BR>&gt;<BR>&gt; <A 
href="file://Document">file://Document</A> doc = new Document(root);<BR>&gt; try 
{<BR>&gt; SAXBuilder builder = new SAXBuilder();<BR>&gt; Document doc = 
builder.build("test.xml");<BR>&gt; // Output the new document (doc) to 
System.out<BR>&gt; XMLOutputter outputter = new XMLOutputter();<BR>&gt; 
outputter.output(doc, System.out);<BR>&gt; } catch (Exception e) {<BR>&gt; 
System.err.println(e);<BR>&gt; }<BR>&gt; }<BR>&gt; }<BR>&gt;<BR>&gt;<BR>&gt; 
**********************************************************************<BR>&gt; 
Information in this email is confidential and may be privileged.<BR>&gt; It is 
intended for the addressee only. If you have received it in error,<BR>&gt; 
please notify the sender immediately and delete it from your system.<BR>&gt; You 
should not otherwise copy it, retransmit it or use or disclose its<BR>&gt; 
contents to anyone.<BR>&gt; Thank you for your co-operation.<BR>&gt; 
**********************************************************************<BR>&gt;<BR>&gt;<BR></FONT></BODY></HTML>