XSL-FO Tutorials - Herong's Tutorial Examples - v2.20, by __author__
FOP Installation Verification on macOS
This section provides a tutorial on how to verify Apache™ FOP by running a FOP built-in example in an AWT preview window on macOS systems.
After installing Apache™ FOP on your macOS 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 /Libary/fop/fop /Libary/fop/fop> fop -version FOP Version 2.5 /Libary/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.
As you can see, the AWT preview tool on macOS is not as good as the one on Windows. But this should impact the behavior of the main FOP processor.
3. Add "/Libary/fop/fop" to system environmebnt variable "path". This allows to run the "fop" command without the path name "/Libary/fop/fop".
herong> fop -version FOP Version 2.5
Table of Contents