<!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> public
static void main(String[] args) {<BR><BR> try
{<BR><BR> SAXBuilder builder = new
SAXBuilder();<BR><BR> Document doc =
builder.build("/home/brian/test.xml");<BR><BR> //
Output the new document (doc) to System.out<BR>
XMLOutputter outputter = new XMLOutputter();<BR>
outputter.output(doc, System.out);<BR> } catch (Exception e)
{<BR> System.err.println(e);<BR>
}<BR>
}<BR>}<BR><BR><BR>-----------------------------------------test.xml---------------------------<BR>------------------<BR><BR><?xml
version="1.0"?><BR><camelids><BR> <species name="Camelus
dromedarius"><BR> <common-name>Dromedary, or Arabian
Camel</common-name><BR>
<physical-characteristics><BR>
<mass>300 to 690 kg.</mass><BR>
<appearance><BR> The dromedary
camel is characterized by a
long-curved<BR> neck, deep-narrow
chest, and a single hump.<BR>
...<BR> </appearance><BR>
</physical-characteristics><BR>
<natural-history><BR>
<food-habits><BR> The
dromedary camel is an
herbivore.<BR>
...<BR>
</food-habits><BR>
<reproduction><BR> The
dromedary camel has a lifespan of about 40-50
years<BR>
...<BR>
</reproduction><BR>
<behavior><BR> With the
exception of rutting males, dromedaries
show<BR> very little aggressive
behavior.<BR>
...<BR>
</behavior><BR>
<habitat><BR> The camels
prefer desert conditions characterized by
a<BR> long dry season and a
short rainy season.<BR>
...<BR>
</habitat><BR>
</natural-history><BR> <conservation status="no
special status"><BR>
<detail><BR> Since the dromedary
camel is domesticated, the camel
has<BR> no special status in
conservation.<BR>
</detail><BR> </conservation><BR>
</species><BR>
...<BR></camelids><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 <<A
href="mailto:Sasha.Bilton@bskyb.com">Sasha.Bilton@bskyb.com</A>><BR>To:
'Brian Wolf' <<A
href="mailto:brianw@knowledgextensions.com">brianw@knowledgextensions.com</A>><BR>Sent:
Tuesday, November 20, 2001 9:53 AM<BR>Subject: RE: [jdom-interest] Build error
in Linux , not Windows<BR><BR><BR>> Hmmm. Maybe your JAVA_HOME environment
setting is set properly?<BR>><BR>> Other than that, post the entire
Exception and the xml file test. Check<BR>that<BR>> test.xml is in your
working directory<BR>><BR>> -----Original Message-----<BR>> From: Brian
Wolf [<A
href="mailto:brianw@knowledgextensions.com">mailto:brianw@knowledgextensions.com</A>]<BR>>
Sent: 20 November 2001 13:52<BR>> To: <A
href="mailto:jdom-interest@jdom.org">jdom-interest@jdom.org</A><BR>> Subject:
[jdom-interest] Build error in Linux , not Windows<BR>><BR>><BR>>
Hi,<BR>><BR>> The following code works fine under Windows, but not under
Linux,<BR>> where I get a JDOM exception: "error in build: HOME"<BR>>
--------------------------------------------------------------<BR>> import
org.jdom.Element;<BR>> import org.jdom.Document;<BR>> import
org.jdom.output.XMLOutputter;<BR>> import org.jdom.input.SAXBuilder;<BR>>
public class HelloWorld {<BR>> public static void main(String[] args)
{<BR>> // Create a root Element for the Document<BR>> Element root = new
Element("GREETING");<BR>> root.setText("Hello World!");<BR>> // Create a
new document using the root element just created<BR>><BR>> <A
href="file://Document">file://Document</A> doc = new Document(root);<BR>> try
{<BR>> SAXBuilder builder = new SAXBuilder();<BR>> Document doc =
builder.build("test.xml");<BR>> // Output the new document (doc) to
System.out<BR>> XMLOutputter outputter = new XMLOutputter();<BR>>
outputter.output(doc, System.out);<BR>> } catch (Exception e) {<BR>>
System.err.println(e);<BR>> }<BR>> }<BR>> }<BR>><BR>><BR>>
**********************************************************************<BR>>
Information in this email is confidential and may be privileged.<BR>> It is
intended for the addressee only. If you have received it in error,<BR>>
please notify the sender immediately and delete it from your system.<BR>> You
should not otherwise copy it, retransmit it or use or disclose its<BR>>
contents to anyone.<BR>> Thank you for your co-operation.<BR>>
**********************************************************************<BR>><BR>><BR></FONT></BODY></HTML>