0

I use ikvm with mpxj project.

I have a very simple code like this....

 var writer = new MSPDIWriter();
 writer.write(project2, ofilename);

I get an exception .net, Failed to initialize JAXP 1.3 DatatypeFactory class.in IKVM.OpenJDK.XML.Bind

Error:The type initializer for 'net.sf.mpxj.mspdi.MSPDIWriter' threw an exceptio n. Error:Failed to initialize JAXP 1.3 DatatypeFactory class. Error:Provider com.sun.org.apache.xerces.internal.jaxp.datatype.DatatypeFactoryI mpl not found Error:com.sun.org.apache.xerces.internal.jaxp.datatype.DatatypeFactoryImpl

I can see this problem seems to be related to IKVM. Can you tell me what is wrong?

Aftershock
  • 5,205
  • 4
  • 51
  • 64
  • Are you using the .net assemblies shipped with MPXJ, or have you built your own from the source using IKVMC? Which version of MPXJ (and IKVM is applicable) are you using? – Jon Iles Jan 09 '12 at 10:16

1 Answers1

0

It was a problem related to this. Not all ikvm dlls were in the same directory as the executable.

Aftershock
  • 5,205
  • 4
  • 51
  • 64