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 Munugoti Sateesh <Sa...@med.siemens.de> on 2002/10/02 10:34:57 UTC

AW: AW: regarding running fop

Hi,
 I have tried with fop-0.20.3 and fop-0.20.4 versions,with both of the
versions I have got the same problem.
 and I am using the Commandline application,here I am giving the way how I
execute ..

"C:\fop\fop-0.20.3>C:\j2sdk1.4.0_01\bin\java -cp
build\fop.jar;lib\logkit-1.0.jar;lib\batik.jar;lib\xalan-2.0.0.jar;lib\xerce
s-1.2.3.jar;lib\avalon-framework-4.0.jar;lib\jimi-1.0.jar
org.apache.fop.apps.Fop" then following exception I am getting..
Exception in thread "main" java.lang.NoClassDefFoundError:
org/apache/log/format/Formatter
        at org.apache.fop.apps.Fop.main(Fop.java:16)

 and when I have tried to run the same as the following way,
"C:\fop\fop-0.20.3>C:\jdk1.3.1\bin\java -cp
build\fop.jar;lib\logkit-1.0.jar;lib\batik.jar;lib\xalan-2.0.0.jar;lib\xerce
s-1.2.3.jar;lib\avalon-framework-4.0.jar;lib\jimi-1.0.jar
org.apache.fop.apps.Fop

USAGE
Fop [options] [-fo|-xml] infile [-xsl file]
[-awt|-pdf|-mif|-pcl|-ps|-txt|-at|-print] <outfile>

 [OPTIONS]
  -d          debug mode
  -x          dump configuration settings
  -q          quiet mode
  -c cfg.xml  use additional configuration file cfg.xml
  -l lang     the language to use for user information
  -s          for area tree XML, down to block areas only

 [INPUT]
  infile            xsl:fo input file (the same as the next)
  -fo  infile       xsl:fo input file
  -xml infile       xml input file, must be used together with -xsl
  -xsl stylesheet   xslt stylesheet

 [OUTPUT]
  outfile           input will be rendered as pdf file into outfile
  -pdf outfile      input will be rendered as pdf file (outfile req'd)
  -awt              input will be displayed on screen
  -mif outfile      input will be rendered as mif file (outfile req'd)
  -pcl outfile      input will be rendered as pcl file (outfile req'd)
  -ps outfile       input will be rendered as PostScript file (outfile
req'd)
  -txt outfile      input will be rendered as text file (outfile req'd)
  -svg outfile      input will be rendered as an svg slides file (outfile
req'd)
  -at outfile       representation of area tree as XML (outfile req'd)
  -print            input file will be rendered and sent to the printer
                    see options with "-print help"

 [Examples]
  Fop foo.fo foo.pdf
  Fop -fo foo.fo -pdf foo.pdf (does the same as the previous line)
  Fop -xsl foo.xsl -xml foo.xml -pdf foo.pdf
  Fop foo.fo -mif foo.mif
  Fop foo.fo -print or Fop -print foo.fo
  Fop foo.fo -awt

[ERROR]: No input file specified

 So, I am wondering why its not working the same with jdk1.4 and how its
working with jdk1.3.1.

 Thanks,
Sateesh.







-----Ursprüngliche Nachricht-----
Von: J.Pietschmann [mailto:j3322ptm@yahoo.de]
Gesendet: Montag, 30. September 2002 21:57
An: fop-user@xml.apache.org
Betreff: Re: AW: regarding running fop


Munugoti Sateesh wrote:
>  As I already said that Everything is in the class path only..I am sure
for
> that. I have both jdk 1.3.1 and jdk 1.4 and when I am running fop with
> jdk1.4 getting exception but the same is running with jdk1.3.1..I am
> wondering with this nature because you said this working properly with
> jdk1.4 also.

1. Which FOP version do you use?
2. Are you using the FOP command line application or are
you embedding FOP in a web application?
3. In the latter case, what's your servlet container?
There are a few out there with known problems with regards
to class loading.

J.Pietschmann

Re: AW: AW: regarding running fop

Posted by "J.Pietschmann" <j3...@yahoo.de>.
Munugoti Sateesh wrote:
>  I have tried with fop-0.20.3 and fop-0.20.4 versions,with both of the
> versions I have got the same problem.
>  and I am using the Commandline application,here I am giving the way how I
> execute ..
> 
> "C:\fop\fop-0.20.3>C:\j2sdk1.4.0_01\bin\java -cp
> build\fop.jar;lib\logkit-1.0.jar;lib\batik.jar;lib\xalan-2.0.0.jar;lib\xerce
> s-1.2.3.jar;lib\avalon-framework-4.0.jar;lib\jimi-1.0.jar
> org.apache.fop.apps.Fop" then following exception I am getting..
> Exception in thread "main" java.lang.NoClassDefFoundError:
> org/apache/log/format/Formatter
>         at org.apache.fop.apps.Fop.main(Fop.java:16)
> 
Are you sure you are getting the same error with 0.20.4?
It doesn't use logkit anymore.

J.Pietschmann