> Following-up, I tried building epubcheck 1.0.3 in eclipse using java
> 1.6 as my jvm... built with no errors but tried running the
> application and it throws the errors i mentioned in the first post:
> again here is the stack trace:
>
> Epubcheck Version 1.0.3
>
> Exception in thread "main" java.lang.ExceptionInInitializerError
> at com.adobe.epubcheck.api.EpubCheck.validate(EpubCheck.java:127)
> at com.adobe.epubcheck.tool.Checker.main(Checker.java:48)
> Caused by: java.lang.NullPointerException
> at org.relaxng.datatype.helpers.DatatypeLibraryLoader$Service
>> > > But using it in the command line does not throw an NPE... the
>> > > epubcheck-1.0.3.jar is already the classpath...
>>
>> > > How can I resolve this?
>>
>> > > Thanks in advance.
>>
I was playing around and got this error as well under Java 1.6 running under eclipse (so paths into jars might be wrong)
I got the latest version of jing <http://code.google.com/p/jing-trang/source/checkout> and built that. (This might not be needed)
Then got errors which I think are due to com.adobe.epubcheck.xml.XMLValidator having a bug in its constructor and needs an ENTITY_RESOLVER to be added at line 126
mapBuilder.put(ValidateProperty.ENTITY_RESOLVER,
new ResourceEntityResolver() );
However using Java 1.5 I could just use the built epubcheck jar from google code so I am notcertain what is happening here.
--
Mark