XSL-FO Tutorials - Herong's Tutorial Examples - v2.20, by __author__
FOP Installation Verification on Windows
This section provides a tutorial on how to verify Apache™ FOP by running a FOP built-in example in an AWT preview window on Windows systems.
After installing Apache™ FOP on your Windows system, you can follow these steps to verify if the installation is completed or not.
1. Verify if JVM (Java Virtual Machine) is on the system or not by running the following in a command window:
herong> java -version java version "15" 2020-09-15 Java(TM) SE Runtime Environment (build 15+36-1562) Java HotSpot(TM) 64-Bit Server VM (build 15+36-1562, mixed mode, sharing)
If you get an error, install JDK (Java Development Kit) on your system.
2. Run the built-in example:
herong> cd \fop\fop fop\fop> fop -version FOP Version 2.5 fop\fop> fop -fo examples/fo/basic/readme.fo -awt
If you see a new window displaying some FOP readme information as shown below, you know that your Apache™ FOP is installed correctly.
3. Add "C:\fop\fop" to system environmebnt variable "path". This allows to run the "fop" command without the path name "C:\fop\fop".
herong> fop -version FOP Version 2.5
Table of Contents