View Single Post
Old 06-02-2010, 04:34 PM   #74
pdurrant
The Grand Mouse 高貴的老鼠
pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.
 
pdurrant's Avatar
 
Posts: 74,115
Karma: 315558332
Join Date: Jul 2007
Location: Norfolk, England
Device: Kindle Oasis
Quote:
Originally Posted by Hamlet53 View Post
First I am running under Windows XP and would like to have the epubcheck output write to a file so that I have the written output and also can use a BAT file to run it instead of typing the whole command at a command prompt each time. The trouble is that a BAT file of:

Code:
java -jar epubcheck-1.0.5.jar colomba.epub > verifyout.txt
produces the file verifyout.txt with content consisting only of:

Code:
Epubcheck Version 1.0.5

Whereas the actual output should continue:

Code:
ERROR: colomba.epub: length of first filename in archive must be 8, but was 9

Check finished with warnings or errors!
I always get this error, but have yet to figure out what it means.
I think that epubcheck writes error reports out to stderr rather than stdout, which would explain why you're only seeing the version statement.

The error means just what it says. The first file in the epub must be called mimetype, must not be compressed and must contain just the characters application/epub+zip.

Either you've mis-named the mimetype file, or you're not zipping your epub up correctly.
pdurrant is offline   Reply With Quote