W3C home > Mailing lists > Public > www-xsl-fo@w3.org > January 2004

Re: fop installation

From: Eugene Ciurana <ciurana@cime.net>
Date: Mon, 26 Jan 2004 08:51:10 -0800
Message-ID: <4015457E.2060207@cime.net>
To: www-xsl-fo@w3.org
Simcha wrote:

You only need the fop-0.20.5-bin.zip file and a current version of the 
Java Runtime Environment to execute FOP on a Windows 98 machine.  You do 
not need JWS per se; that's a way of running applications served from an 
HTTP server that has nothing to do with FOP.

So, please install as follows:

   1. Install the FOP software where you want it; I believe you already
      unzipped it to C:/FOP/fop-0.20.5 -- leave it there.
   2. Decide which will be your working directory where you'll store
      your .fo and other work files.  I'm guessing it will be C:/FOP
   3. Install the latest version of the Java VM from Sun.  You can get
      it from http://java.sun.com -- right hand column
   4. Reboot the machine after installation, just to be sure.
   5. Open a DOS box, go to the C:/FOP directory and type: 
      java<enter>.  You should see a list of the command line arguments
      for running Java.
   6. Type fop.bat <enter> -- you may get an error "JAVA_HOME is not
      defined correctly.  We cannot execute java".  If so, find out
      where the JRE is installed.  It will probably be in C:/Program
      Files/Java/j2re1.4.2_03  If so, then add JAVA_HOME to your
      environment as I'll show you below and try again.
   7. If all is set up correctly, you'll get fop running and a long list
      of command line options ending with some examples and "[ERROR] No
      input file specified".  You're good to start running FOP!

Here is where you can add the JAVA_HOME environment variable to your 
fop.bat script:
rem java -cp "%LOCALCLASSPATH%" org.apache.fop.apps.Fop %1 %2 %3 %4 %5 
%6 %7 %8

*rem Set the new environment variable:
set JAVA_HOME=C:/Program Files/Java/j2re1.4.2_03*
java -cp
\fop\fop-0.20.5\build\fop.jar;
.
.
*/rest of your file remains like you have it/*

That should be enough to run this.  Let me know if you have any 
questions.  If that doesn't work I'll write a simpler batch file for 
you.  FOP is intended to run under Java and Windows NT or greater; the 
shell for Windows 98 (COMMAND.COM) has some limitations that we might 
have to get around.  That's what the simpler .bat file would be for.

Cheers,

Eugene
-- 

CIME Software Labs
http://cime.net
(415) 922-6600 voice
Received on Monday, 26 January 2004 11:55:46 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 3 October 2007 16:06:12 GMT