You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-dev@xmlgraphics.apache.org by "Hensel, Russ" <Ru...@imckesson.com> on 2000/11/15 16:40:04 UTC
trying to get started
I am just a newbie to both Java and FOP and am struggling ( across a couple
of days ) to try to get
some FOP examples running on my computer. I feel pretty stupid that I can
not get it going, but
Each time I work through one error message I get another different one.
Rather than bothering you all
with the error messages could I instead ask what I think is a simple
question:
What Jar/zip files do I need. ( and where do they come from, for some jars I
already have 3 different versions )?
What is the classpath?
What is the command line to kick the whole thing off?
What other files ( if any ) do I need?
If someone were to email me the whole package that would be fine, however,
while a bit slow I can follow a link, download a file, and unzip, de jar or
whatever the files.
I think I have found the current example files.
To the extent that it matters I am using Win NT and JDK 1.3.
Any help would be appreciated.
( and yes I have looked at: http://xml.apache.org/fop/running.html
<http://xml.apache.org/fop/running.html> )
Russ Hensel
iMcKesson
245 First Street
Cambridge MA 02142
Phone
Direct 617 679-8574
Fax 617-679-8888
Email
russ.hensel@imckesson.com
russ_s_hensel@yahoo.com
rhensel@alum.mit.edu
CONFIDENTIALITY NOTICE: This e-mail message, including any attachments, is
for the sole use of the intended recipient(s). The information contained in
this message may be private and confidential, and may also be subject to the
work product doctrine. Any unauthorized review, use, disclosure or
distribution is prohibited. If you are not the intended recipient, please
contact the sender by reply e-mail and destroy all copies of the original
message.
Re: trying to get started
Posted by Michel Bergijk <m....@home.nl>.
Hi Russ,
Here is some information from my system. I do hope you are using windows ...
I have a patition I use for java development, drive D:. On this drive, in
D:\Common I put all things I downloaded in subdirectories. The jar files I
put in D:\Common itself.
Here is my classpath from autoexec.bat:
<autoexec>
REM Java 1.3 Environment setting
SET PATH=%PATH%;d:\Jdk1.3\bin;d:\Jdk1.3\;d:\;.
REM Java Development Environment setting
set
classpath=.;D:\JDK1.3;D:\JDK1.3\BIN\;D:\JDK1.3\src.jar;D:\COMMON\xerces.jar;
D:\COMMON\xalan.jar;D:\COMMON\bsf.jar;D:\COMMON\fop.jar;d:\COMMON\w3c.jar
</autoexec>
I found out I needed to set xerxes and xalan in this sequence. Otherwise you
will get an error message one class could not be found.
Next I have a file in which I keep the version numbers of the jar files. The
contents are:
<version>
The contents of this directory, the jar files, come from the following
directories:
Jar file Directory Build Downloaded on Original?
----------------------------------------------------------------------------
-----------
xalan.jar xalan-j Xalan-j2.0.D01 21/10/2000 yes
xerces.jar xerces-j Xerces-j-src1.2.1 21/10/2000 yes
bsf.jar xajan-j Xalan-j2.0.D01 21/10/2000 yes
fop.jar fop fop-0_14_0 30/09/2000 yes
w3c.jar fop fop-0_14_0 30/09/2000 yes
</version>
You need to make Courier 10 pts for a good view.
I hope this gets you on your way. Success
Michel
----- Original Message -----
From: Hensel, Russ <Ru...@imckesson.com>
To: <fo...@xml.apache.org>
Sent: Wednesday, November 15, 2000 16:40
Subject: trying to get started
> I am just a newbie to both Java and FOP and am struggling ( across a
couple
> of days ) to try to get
> some FOP examples running on my computer. I feel pretty stupid that I can
> not get it going, but
> Each time I work through one error message I get another different one.
> Rather than bothering you all
> with the error messages could I instead ask what I think is a simple
> question:
>
> What Jar/zip files do I need. ( and where do they come from, for some jars
I
> already have 3 different versions )?
> What is the classpath?
> What is the command line to kick the whole thing off?
> What other files ( if any ) do I need?
>
>
> If someone were to email me the whole package that would be fine, however,
> while a bit slow I can follow a link, download a file, and unzip, de jar
or
> whatever the files.
> I think I have found the current example files.
> To the extent that it matters I am using Win NT and JDK 1.3.
>
>
> Any help would be appreciated.
>
> ( and yes I have looked at: http://xml.apache.org/fop/running.html
> <http://xml.apache.org/fop/running.html> )
>
>
> Russ Hensel
> iMcKesson
> 245 First Street
> Cambridge MA 02142
>
>
> Phone
> Direct 617 679-8574
> Fax 617-679-8888
>
> Email
> russ.hensel@imckesson.com
> russ_s_hensel@yahoo.com
> rhensel@alum.mit.edu
>
> CONFIDENTIALITY NOTICE: This e-mail message, including any attachments,
is
> for the sole use of the intended recipient(s). The information contained
in
> this message may be private and confidential, and may also be subject to
the
> work product doctrine. Any unauthorized review, use, disclosure or
> distribution is prohibited. If you are not the intended recipient, please
> contact the sender by reply e-mail and destroy all copies of the original
> message.
>
>
>
Re: trying to get started
Posted by Fotis Jannidis <fo...@lrz.uni-muenchen.de>.
you need fop.jar, xerces.jar, w3c.jar and optionally jimi.jar in your
classpath.
fop.jar comes with the Fop distribution
xerces.jar comes with the Xerces distribution (use v 1.2.1)
xalan.jar comes with the Xalan distribution (use v 1.2)
w3c.jar comes also with the Fop distribution (in the xml-fop/lib
directory)
all this distributions can be found here:
http://xml.apache.org/dist/
optionally you need the image library jimi,
which can be found here:
http://java.sun.com/products/jimi/
If you already have your fo file ready, you can convert it to a pdf
file with this command:
java -cp fop.jar;xerces.jar;w3c.jar;jimi.jar
org.apache.fop.apps.CommandLine fo-file pdf-file (all on one line)
If you have an xml file and an xsl stylesheet, you can use this
command:
java -cp fop.jar;xalan.jar;xerces.jar;w3c.jar
org.apache.fop.apps.XalanCommandLine xml-file xsl-file pdf-file
(all on one line)
I think all of this information can be found on
http://xml.apache.org/fop/running.html
but obviously it is not clear enough. Maybe you can point me out
where the problems have been for you.
Fotis
> I am just a newbie to both Java and FOP and am struggling ( across a couple
> of days ) to try to get
> some FOP examples running on my computer. I feel pretty stupid that I can
> not get it going, but
> Each time I work through one error message I get another different one.
> Rather than bothering you all
> with the error messages could I instead ask what I think is a simple
> question:
>
> What Jar/zip files do I need. ( and where do they come from, for some jars I
> already have 3 different versions )?
> What is the classpath?
> What is the command line to kick the whole thing off?
> What other files ( if any ) do I need?
>
>
> If someone were to email me the whole package that would be fine, however,
> while a bit slow I can follow a link, download a file, and unzip, de jar or
> whatever the files.
> I think I have found the current example files.
> To the extent that it matters I am using Win NT and JDK 1.3.
>
>
> Any help would be appreciated.
>
> ( and yes I have looked at: http://xml.apache.org/fop/running.html
> <http://xml.apache.org/fop/running.html> )
>
>
> Russ Hensel
> iMcKesson
> 245 First Street
> Cambridge MA 02142
>
>
> Phone
> Direct 617 679-8574
> Fax 617-679-8888
>
> Email
> russ.hensel@imckesson.com
> russ_s_hensel@yahoo.com
> rhensel@alum.mit.edu
>
> CONFIDENTIALITY NOTICE: This e-mail message, including any attachments, is
> for the sole use of the intended recipient(s). The information contained in
> this message may be private and confidential, and may also be subject to the
> work product doctrine. Any unauthorized review, use, disclosure or
> distribution is prohibited. If you are not the intended recipient, please
> contact the sender by reply e-mail and destroy all copies of the original
> message.
>
>
>