I have some Java code, which unfortunately I can't seem to break down to a
smaller example. It runs perfectly fine on the command line using javac and
java. When I run it through Inline::Java, it produces exactly the same .class
file using the same CLASSPATH. Unfortunately, the command-line version works,
while the Inline::Java version, wrapped very simply:

 require Inline::Java; use File::Slurp;
 Inline->import(Java => scalar read_file("StandAloneAnnie.java"));
 StandAloneAnnie->new->init();

dies with 

 [java][1] method init in class StandAloneAnnie threw exception
 javax.xml.parsers.FactoryConfigurationError: Provider 
org.apache.xerces.jaxp.SAXParserFactoryImpl not found

I don't know why the provider's not found. It's blatantly available, because
the command-line version gets it.

I'm having this on multiple OSes, so it's not just my Java install. Something
is going screwy with the environment that Inline::Java sets up. Anyone have
it clues what it might be?

-- 
An ASCII character walks into a bar and orders a double.  "Having a bad
day?" asks the barman.  "Yeah, I have a parity error," replies the ASCII
character.  The barman says, "Yeah, I thought you looked a bit off." 
    -- from Skud

Reply via email to