You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-users@xmlgraphics.apache.org by "DuCharme, Bob (LNG)" <bo...@lexisnexis.com> on 2002/05/08 19:30:32 UTC

fop-0.20.3 "Don't know what to do with" error

When I call the fop.bat that comes with fop-0.20.3 using a very simple
"hello world" formatting object file in the same directory as fop.bat, I get
an error that says (in its entirety) "Don't know what to do with" no matter
what parameters I supply. This is under Win98, and the same fo input file
works with the obvious parameters when I run it with the fop.bat in my
Fop-0.18.1-DEV directory. 

I got the impression from another posting that getting jimi-1.0.jar would
fix it, so I copied the Fop-0.18.1-DEV\lib one to fop-0.20.3\lib directory
and that didn't help. I then got jimi1_0.zip from
http://java.sun.com/products/jimi/, but its only jar file is
JimiProClasses.jar. Anyway, according to
http://xml.apache.org/fop/relnotes.html, jimi is only needed for PNG
support, and the document has no pictures of any kind.

Does anyone know what the problem might be?

thanks,

Bob DuCharme          www.snee.com/bob           <bob@  
snee.com>  "The elements be kind to thee, and make thy
spirits all of comfort!" Anthony and Cleopatra, III ii


Re: fop-0.20.3 "Don't know what to do with" error

Posted by "J.Pietschmann" <j3...@yahoo.de>.
DuCharme, Bob (LNG) wrote:
> When I call the fop.bat that comes with fop-0.20.3 using a very simple
> "hello world" formatting object file in the same directory as fop.bat, I get
> an error that says (in its entirety) "Don't know what to do with" no matter
> what parameters I supply. This is under Win98, and the same fo input file
> works with the obvious parameters when I run it with the fop.bat in my
> Fop-0.18.1-DEV directory. 
> 
> I got the impression from another posting that getting jimi-1.0.jar would
> fix it,

Hardly.

The problem appears to be that the command line passed by
the Win98 command processor to the JVM contains some character
at the end which the JVM passes as additional parameter to
the Java code (possibly a CR).
This problem seems to be specific to the DOS based COMMAND.COM
included in Win95/98/ME and some JVM versions.

You could help by running the following test program with one
or two arbitrary parameters and post the output.

public class TestC {
   static final char[] hex={'0','1','2','3','4','5','6','7',
                          '8','9','A','B','C','D','E','F'};
   static public void main(String[] arg) {
     for( int i=0;i<arg.length;i++ ) {
       byte[] b=arg[i].getBytes();
       for( int j=0;j<b.length;j++ ) {
         System.out.print(""+hex[b[j]/16]+hex[b[j]%16]+' ');
       }
       System.out.println();
     }
   }
}

There is no workaround known to me, you'll have to experiment
by yourself a bit. Perhaps the problem goes away if you use
the command line from the batch file directly instead of the
file.

J.Pietschmann