Page 1 of 1

com/sun/xml/internal/bind/marshaller/NamespacePrefixMapper

PostPosted: Thu Jul 14, 2011 1:56 pm
by tosswang
hi,jason:
when i run PartsList.java under docx4j-2.7.0-rc2.jar ,an exception that Exception in thread "main" java.lang.NoClassDefFoundError: com/sun/xml/internal/bind/marshaller/NamespacePrefixMapper occur.

the exception doesn't occur when i use docx4j-nightly-20110512.jar.

can you provide a new jar?

kind regards

tosswang

com/sun/xml/internal/bind/marshaller/NamespacePrefixMapper

PostPosted: Thu Jul 14, 2011 8:23 pm
by jason
com/sun/xml/internal/bind/marshaller/NamespacePrefixMapper is part of Java 6.

You need to be running under either Java 6, or Java 1.5 with JAXB reference implementation.

(It is only at compile time that you should need both NamespacePrefixMapper interfaces available - see previous discussions)

I don't believe the error you are seeing has anything to do with which version of docx4j you are using, but in any case, you should be using the actual 2.7.0 release now, or a more recent nightly, not rc2 or an old nightly.