title: perl Inline::Java with JAXB
body: <p>Hi I am not sure if anybody has any experience with perl Inline::Java to call Java JAXB . Basically, I have added some code in my perl script to call some of my Java API that calls JAXB.</p>
  
  <pre><code>System.out.println(“before…”);
  JAXBContext context = JAXBContext.newInstance("SomeXMLPackage");
  System.out.println(“after…”);
  </code></pre>
  
  <p>and it fails on the JAXB statement. I then added Debug and AUTOSTUDY  option in perl like below</p>
  
  <pre><code>use Inline (
      Java =&gt; 'DATA',
      J2SDK =&gt; $ENV{JAVA_HOME},
      CLASSPATH =&gt; 'classes',
      AUTOSTUDY =&gt; 1,
      DEBUG =&gt; 4,
  );
  </code></pre>
  
  <p>then I see
      [java][3]   packet sent is ok java_object:1:1:javax.xml.bind.JAXBException
      [perl][3]   packet recv is ok java_object:1:1:javax.xml.bind.JAXBException
      [perl][3]   checking if stub is array...
      [perl][3]   perl doesn't know about 'javax.xml.bind.JAXBException' ('perlAPI::javax::xml::bind::JAXBException')
      [perl][2]  autostudying javax.xml.bind.JAXBException...
      [perl][3]   perl doesn't know about 'javax.xml.bind.JAXBException' ('perlAPI::javax::xml::bind::JAXBException')
      [perl][3]   reporting on javax.xml.bind.JAXBException</p>
  
  <p>I hope perl inline works with JAXB </p>
  
  <p>thanks</p>