Re: Installing custom datatype libraries
Elliotte Harold <[email protected]> Tue, 02 Nov 2004 11:02:19 -0500
| Newsgroups | gmane.text.xml.relaxng.general |
|---|---|
| Message-ID | <[email protected]> |
I've been able top get this to work with Sun's MSV, though I had to directly call the driver class to do it. It did not work when merely using java -jar. ~/Desktop/Downloads/jing-20030619/sample/datatype$ java -classpath datatype-sample.jar:/Users/elharo/Desktop/Downloads/msv-20030225/msv.jar com.sun.msv.driver.textui.Driver datatype-sample.rng valid.xml start parsing a grammar. Loaded balanced string validating valid.xml the document is valid. There may be some weird classpath issue with runnable jar archives here. Hmm, yep that's what's happening. Quoting from the docs for the java interpreter -jar option, "When you use this option, the JAR file is the source of all user classes, and other user class path settings are ignored." Learn something new every day, I suppose. There's still an issue with Jing though. It does not work even when I do not use -classpath. I think it may be failing to set an error handler. Time permitting I'll try to debug this. Is there a public CVS server or a bug database for Jing anywhere? -- Elliotte Rusty Harold [email protected] XML in a Nutshell 3rd Edition Just Published! http://www.cafeconleche.org/books/xian3/ http://www.amazon.com/exec/obidos/ISBN=0596007647/cafeaulaitA/ref=nosim