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

2002-05-13 Thread J.Pietschmann
DuCharme, Bob (LNG) wrote:
I tried blowing away my CLASSPATH and still got the same result. Is there
any other way to check for this?
I'm stumped. Perhaps it helps to rebuild FOP from source
on your machine. Just download the src distrib and run
build.bat. Would be interesting whether ant suffers from the
same problem.
If all else fails, remove the line throwing the exception
in srv/org/apache/fop/apps/CommandLineOptions.java:268.
I'll try to get my Win98 restored, but this is, well, labor
intensive, and there are some more pressing problems right
now.
J.Pietschmann


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

2002-05-13 Thread DuCharme, Bob (LNG)
>Odd. Did you try to call the same java command as in the .bat
>file directly on the command line?

It's actually too long for the good old DOS command line, but when I added
the jar files to my CLASSPATH (before the existing entries) so that I
wouldn't have to include their names on the command file and then tried the
equivalent from the command line, I got the same result.

>Is there some interference from some other Java executable
>possible?

I tried blowing away my CLASSPATH and still got the same result. Is there
any other way to check for this?

thanks,

Bob


-Original Message-
From: J.Pietschmann [mailto:[EMAIL PROTECTED]
Sent: Friday, May 10, 2002 5:39 PM
To: [EMAIL PROTECTED]
Subject: Re: fop-0.20.3 "Don't know what to do with" error


DuCharme, Bob (LNG) wrote:
> C:\temp>java TestC red green blue
> 72 65 64
> 67 72 65 65 6E
> 62 6C 75 65

Odd. Did you try to call the same java command as in the .bat
file directly on the command line? It could be some issue
with the .bat file.
Is there some interference from some other Java executable
possible?


> Why wouldn't I have a problem using Fop-0.18.1-DEV if I'm using the same
JVM
> and Win98 command processor with that?

I'm not sure about 0.18, but 0.17 had a much simpler command
line processing, in particular there was no check for unaccounted
parameters which haunts us now.


J.Pietschmann


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

2002-05-10 Thread J.Pietschmann
DuCharme, Bob (LNG) wrote:
C:\temp>java TestC red green blue
72 65 64
67 72 65 65 6E
62 6C 75 65
Odd. Did you try to call the same java command as in the .bat
file directly on the command line? It could be some issue
with the .bat file.
Is there some interference from some other Java executable
possible?

Why wouldn't I have a problem using Fop-0.18.1-DEV if I'm using the same JVM
and Win98 command processor with that?
I'm not sure about 0.18, but 0.17 had a much simpler command
line processing, in particular there was no check for unaccounted
parameters which haunts us now.
J.Pietschmann


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

2002-05-09 Thread DuCharme, Bob (LNG)
>You could help by running the following test program with one
>or two arbitrary parameters and post the output.

Here you go...

C:\temp>java TestC red green blue
72 65 64
67 72 65 65 6E
62 6C 75 65

C:\temp>java TestC aaa aa a
61 61 61
61 61
61

Why wouldn't I have a problem using Fop-0.18.1-DEV if I'm using the same JVM
and Win98 command processor with that?

thanks,

Bob


-Original Message-
From: J.Pietschmann [mailto:[EMAIL PROTECTED]
Sent: Wednesday, May 08, 2002 5:24 PM
To: [EMAIL PROTECTED]
Subject: Re: fop-0.20.3 "Don't know what to do with" error


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. 

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

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

2002-05-08 Thread J.Pietschmann
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
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