Project

Profile

Help

Problems loading a parser class through -x

Added by Anonymous almost 20 years ago

Legacy ID: #2963650 Legacy Poster: Enrico Gulf (enricogulfi)

I'm trying to get saxonb8-0 to run with the GEDCOM example, but when I call java -jar saxon8.jar -x GedcomParser fam.ged transform.xsl I get the error Transformation failed: net.sf.saxon.xpath.DynamicError: Failed to load GedcomParser jar file and parser classes are in the local directory. I understand it must be a classpath problem, but I really don't see where it fails. Any help will be appreciated! Thanks a lot, Enrico


Replies (2)

RE: Problems loading a parser class through - - Added by Anonymous almost 20 years ago

Legacy ID: #2963735 Legacy Poster: Michael Kay (mhkay)

When you invoke Java using the -jar option, the classpath is ignored. If you want to load classes from the classpath, use java -cp .;saxon8.jar net.sf.saxon.Transform -x GedcomParser Michael Kay http://www.saxonica.com/

RE: Problems loading a parser class through - - Added by Anonymous almost 20 years ago

Legacy ID: #2964256 Legacy Poster: Enrico Gulf (enricogulfi)

Thanks Michael, now it works perfectly! Enrico

    (1-2/2)

    Please register to reply