Re: for what it's worth: xml-apis.jar placement

Jacob Kjome <[email protected]> Mon, 15 Sep 2003 02:05:17 -0500
Newsgroups gmane.comp.java.enhydra.xmlc
Message-ID <[email protected]>
Note that in the Tomcat example case, Ant and the Ant build file provide 
the needed libraries in the classpath.  See my response for info on 
that.  But, yes, to run on the command line, especially under JDk1.3.x, 
you'd probably need your script below.

Jake

At 10:42 PM 9/14/2003 -0700, you wrote:
>Hi David,
>   You're not the only one who's encountered this.  I'm on MacOS X and I
>dealt with this very same issue today.  Had some help from Google
>figuring out what .jar file I was missing from my classpath.  It would
>be nice if the XMLC package came with a shell script that would run
>XMLC and make sure that all of the relevant .jar files were in the
>classpath.
>   I've written my own and placed it at /usr/local/xmlc/bin/xmlc, and it
>contains:
>
>#!/bin/sh
>export
>CLASSPATH=$CLASSPATH:/usr/local/xmlc/lib/xmlc.jar:/usr/local/xmlc/lib/ 
>xhtml.jar:/usr/local/xmlc/lib/xmlc-base.jar:/usr/local/xmlc/build-lib/ 
>xml-apis.jar:/usr/local/xmlc/lib/gnu-regexp.jar:/usr/local/xmlc/lib/ jtidy.jar
>java org.enhydra.xml.xmlc.commands.xmlc.XMLC "$@"
>
>   -M@
>
>On Sunday, September 14, 2003, at 08:32  PM, David H. Young wrote:
>
>>I'm probably the only one who's encountered this... I run cygwin on
>>Windows XP.  Works darn well.  I was having a horrible time trying to
>>build the tomcat webapp under examples/tomcat in the new xmlc2.2
>>distribution.
>>
>>It wasn't until I moved the xml-apis.jar to the ext directory in the
>>JRE that I finally got the build to locate
>>org.xml.doc.ranges.DocumentRange which was kind of key to xmlc being
>>able to load documents for compilation.
>>
>>I'm all ears to suggestions on how to handle this more gracefully, but
>>at least I can use the new xmlc now.
>>
>>David
>>
>>--
>>David H. Young
>>SAMBA Holdings, Inc.
>>Chief Technology Officer
>>1730 MontaƱo NW
>>Albuquerque, NM 87107
>>505.797.2622 x113
>>http://www.samba.biz
>>
>>
>>
>>_______________________________________________
>>XMLC mailing list
>>[email protected]
>>http://www.enhydra.org/mailman/listinfo.cgi/xmlc
>
>
>_______________________________________________
>XMLC mailing list
>[email protected]
>http://www.enhydra.org/mailman/listinfo.cgi/xmlc