source: pst/ps/fop.xml@ 5f0bab7

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.1 6.1 6.2 6.2.0 6.2.0-rc1 6.2.0-rc2 6.3 6.3-rc1 6.3-rc2 6.3-rc3 7.10 7.4 7.5 7.6 7.6-blfs 7.6-systemd 7.7 7.8 7.9 8.0 8.1 8.2 8.3 8.4 9.0 9.1 basic bdubbs/svn elogind gnome kde5-13430 kde5-14269 kde5-14686 kea ken/TL2024 ken/inkscape-core-mods ken/tuningfonts krejzi/svn lazarus lxqt nosym perl-modules plabs/newcss plabs/python-mods python3.11 qt5new rahul/power-profiles-daemon renodr/vulkan-addition systemd-11177 systemd-13485 trunk upgradedb xry111/intltool xry111/llvm18 xry111/soup3 xry111/test-20220226 xry111/xf86-video-removal
Last change on this file since 5f0bab7 was 5f0bab7, checked in by DJ Lucas <dj@…>, 19 years ago

update to jdk-1.5 and related fixes

git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@3795 af4574ff-66df-0310-9fd7-8a98e5e911e0

  • Property mode set to 100644
File size: 14.1 KB
Line 
1<?xml version="1.0" encoding="ISO-8859-1"?>
2<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN"
3 "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" [
4 <!ENTITY % general-entities SYSTEM "../../general.ent">
5 %general-entities;
6
7 <!ENTITY fop-download-http "http://www.apache.org/dist/xml/fop/fop-&fop-version;-src.tar.gz">
8 <!ENTITY fop-download-ftp "ftp://apache.mirrors.pair.com/xml/fop/source/fop-&fop-version;-src.tar.gz">
9 <!ENTITY fop-md5sum "1a31eb1357e5d4b8d32d4cb3edae2da2">
10 <!ENTITY fop-size "7.8 MB">
11 <!ENTITY fop-buildsize "45.3 MB">
12 <!ENTITY fop-time "0.25 SBU">
13
14 <!ENTITY jai-download "http://javashoplm.sun.com/ECom/docs/Welcome.jsp?StoreId=22&amp;PartDetailId=jai-1_1_2_01-oth-JPR&amp;SiteId=JSC&amp;TransactionId=noreg">
15 <!ENTITY jai-md5sum "f2be3619a8d002eff3874355e96327eb">
16 <!ENTITY jai-size "2.6 MB">
17]>
18
19<sect1 id="fop" xreflabel="FOP-&fop-version;">
20<sect1info>
21<othername>$LastChangedBy$</othername>
22<date>$Date$</date>
23</sect1info>
24<?dbhtml filename="fop.html"?>
25<title><application><acronym>FOP</acronym></application>-&fop-version;</title>
26<indexterm zone="fop">
27<primary sortas="a-FOP">FOP</primary></indexterm>
28
29<sect2>
30<title>Introduction to <application><acronym>FOP</acronym></application></title>
31
32<para>The <application><acronym>FOP</acronym></application> (Formatting
33Objects Processor) package contains a print formatter driven by
34<acronym>XSL</acronym> formatting objects
35(<acronym>XSL</acronym>-<acronym>FO</acronym>). It is a
36<application>Java</application> application that reads a formatting object
37tree and renders the resulting pages to a specified output. Output formats
38currently supported include <acronym>PDF</acronym>, <acronym>PCL</acronym>,
39PostScript, <acronym>SVG</acronym>, <acronym>XML</acronym> (area tree
40representation), print, <acronym>AWT</acronym>, <acronym>MIF</acronym> and
41<acronym>ASCII</acronym> text. The primary output target is
42<acronym>PDF</acronym>.</para>
43
44<sect3><title>Package information</title>
45<itemizedlist spacing="compact">
46<listitem><para>Download (HTTP):
47<ulink url="&fop-download-http;"/></para></listitem>
48<listitem><para>Download (FTP):
49<ulink url="&fop-download-ftp;"/></para></listitem>
50<listitem><para>Download MD5 sum:
51&fop-md5sum;</para></listitem>
52<listitem><para>Download size:
53&fop-size;</para></listitem>
54<listitem><para>Estimated disk space required:
55&fop-buildsize;</para></listitem>
56<listitem><para>Estimated build time:
57&fop-time;</para></listitem></itemizedlist>
58</sect3>
59
60<sect3><title>Required Patch</title>
61<itemizedlist spacing='compact'>
62<listitem><para><ulink
63url="&patch-root;/fop_&fop-version;-jdk_&jdk-src-version;-1.patch"/> For
64use with jdk-&jdk-src-version;.</para>
65</listitem>
66</itemizedlist>
67</sect3>
68
69<sect3><title>Additional downloads</title>
70<itemizedlist spacing="compact">
71<listitem><para><application>Java</application> Advanced Imaging
72(<acronym>JAI</acronym>) <acronym>API</acronym> components:
73<ulink url="&jai-download;">
74http://javashoplm.sun.com/ECom/docs/Welcome.jsp?StoreId=22&amp;</ulink>
75<ulink url="&jai-download;">
76PartDetailId=jai-1_1_2_01-oth-JPR&amp;SiteId=JSC&amp;TransactionId=noreg</ulink>
77</para></listitem>
78<listitem><para>Download MD5 sum: &jai-md5sum;</para></listitem>
79<listitem><para>Download size: &jai-size;</para></listitem>
80</itemizedlist>
81
82<para>Choose the <quote><application>Linux</application>
83<application><acronym>JDK</acronym></application> Install</quote> file after
84accepting the license agreement.</para>
85</sect3>
86
87<sect3><title><application>FOP</application> dependencies</title>
88<sect4><title>Required</title>
89<para><xref linkend="jdk"/></para>
90</sect4>
91
92<sect4><title>Optional</title>
93<para><xref linkend="libxslt"/>,
94<ulink url="http://java.sun.com/products/jimi/">JIMI SDK</ulink>,
95<ulink url="http://xml.apache.org/batik/">Batik</ulink> and
96<ulink url="http://forrest.apache.org/">Forrest</ulink> (only used to rebuild
97the documentation)</para>
98</sect4>
99</sect3>
100
101</sect2>
102
103<sect2>
104<title>Installation of <application>FOP</application></title>
105
106<para>Some versions of tar will display a message similar to
107<quote><computeroutput>tar: A lone zero block at 33476</computeroutput></quote>
108when unpacking the source tarball. You may safely ignore this message.</para>
109
110<sect3><title>Installing <acronym>JAI</acronym></title>
111<para>Install the <acronym>JAI</acronym> components by running the following
112commands as the root user while in the root of the
113<application><acronym>FOP</acronym></application> source tree:</para>
114
115<screen><userinput role='root'><command>chmod 755 ../jai-1_1_2_01-lib-linux-i586-jdk.bin &amp;&amp;
116FOP_BUILD_DIR=$(pwd) &amp;&amp;
117cd $JAVA_HOME &amp;&amp;
118yes | $FOP_BUILD_DIR/../jai-1_1_2_01-lib-linux-i586-jdk.bin &amp;&amp;
119cd $FOP_BUILD_DIR</command></userinput></screen>
120</sect3>
121
122<sect3><title>Installing <application><acronym>FOP</acronym></application>
123required components</title>
124<para>Install <application><acronym>FOP</acronym></application> by running the
125following commands:</para>
126
127<screen><userinput><command>patch -Np1 -i ../fop_&fop-version;-jdk_&jdk-src-version;-1.patch &amp;&amp;
128./build.sh &amp;&amp;
129sed -i -e "s/build/lib/" fop.sh</command></userinput></screen>
130
131<para>Now, as the root user:</para>
132
133<screen><userinput role='root'><command>install -v -d -m755 \
134 /opt/fop-&fop-version;/{bin,lib,docs/{general,lib,site}} &amp;&amp;
135install -v -m755 fop.sh /opt/fop-&fop-version;/bin &amp;&amp;
136install -v -m644 build/fop.jar lib/avalon-framework-cvs-20020806.jar \
137 /opt/fop-&fop-version;/lib &amp;&amp;
138install -v -m644 docs/* /opt/fop-&fop-version;/docs &amp;&amp;
139install -v -m644 CHANGES LICENSE README ReleaseNotes.html STATUS \
140 /opt/fop-&fop-version;/docs/general &amp;&amp;
141install -v -m644 lib/{avalon.LICENSE.txt,readme} \
142 /opt/fop-&fop-version;/docs/lib &amp;&amp;
143cp -v -R build/site/* /opt/fop-&fop-version;/docs/site &amp;&amp;
144ln -svf fop-&fop-version; /opt/fop</command></userinput></screen>
145</sect3>
146
147<sect3><title>Installing the <application>Batik</application>
148<acronym>JAR</acronym></title>
149<para>You'll need to install one additional <application>Java</application>
150class library to process <acronym>SVG</acronym> objects. This library is part
151of the <ulink url="http://xml.apache.org/batik/">Batik</ulink> package, but is
152also included with the <application><acronym>FOP</acronym></application>
153package. If you have <application>Batik</application> installed, ensure the
154<filename>batik.jar</filename> library is included in your
155<envar>$CLASSPATH</envar> environment variable. Alternatively, create a
156symbolic link from <filename>/opt/fop-&fop-version;/lib/batik.jar</filename>
157pointing to the full path of the installed <filename>batik.jar</filename>
158file so that the <command>fop.sh</command> script will automatically pick it
159up.</para>
160
161<para>If you don't have the <application>Batik</application> package installed,
162run the following commands as the root user:</para>
163
164<screen><userinput role='root'><command>install -v -m644 lib/batik.jar /opt/fop-&fop-version;/lib &amp;&amp;
165install -v -m644 lib/batik.LICENSE.txt \
166 /opt/fop-&fop-version;/docs/lib</command></userinput></screen>
167</sect3>
168
169<sect3><title>Installing the <application>Xalan-Java</application>
170components</title>
171<para>The components of <application><acronym>FOP</acronym></application>
172required to process <acronym>FO</acronym> files created by an
173<acronym>XSL</acronym> transformation engine (also known as an
174<acronym>XSLT</acronym> processor) is now complete. An
175<acronym>XSL</acronym> transformation engine (<command>xsltproc</command>)
176is included with the <xref linkend="libxslt"/> package in
177<acronym>BLFS</acronym>. The <application><acronym>FOP</acronym></application>
178package includes components of
179<ulink url="http://xml.apache.org/xalan-j/">Xalan-Java</ulink> to accomplish
180<acronym>XSL</acronym> transformations. If you have the
181<application>Xalan-Java</application> package installed, skip to the next
182section.</para>
183
184<para>If you wish to install the <application>Xalan-Java</application>
185components provided by the <application><acronym>FOP</acronym></application>
186package, run the following commands as the root user:</para>
187
188<screen><userinput role='root'><command>sed -i -e "s/build/lib/" xalan.sh &amp;&amp;
189install -v -m755 xalan.sh /opt/fop-&fop-version;/bin &amp;&amp;
190install -v -m644 lib/xml-apis.jar \
191 lib/xercesImpl-2.2.1.jar \
192 lib/xalan-2.4.1.jar \
193 /opt/fop-&fop-version;/lib &amp;&amp;
194install -v -m644 lib/{xml-apis,xerces,xalan}.LICENSE.txt \
195 lib/xml-apis.README.txt \
196 /opt/fop-&fop-version;/docs/lib</command></userinput></screen>
197</sect3>
198
199<sect3><title>Installing the
200<application>Jimi <acronym>SDK</acronym></application>
201<acronym>JAR</acronym></title>
202<para>If you installed the Java Image I/O class library
203(<application>Jimi <acronym>SDK</acronym></application>) into the
204<application><acronym>FOP</acronym></application> source tree
205<filename class='directory'>lib</filename> directory before building
206<application><acronym>FOP</acronym></application> (this will enable Jimi
207support), ensure you also install this <acronym>JAR</acronym> file into
208<filename class='directory'>/opt/fop-&fop-version;/lib</filename>.</para>
209</sect3>
210
211</sect2>
212
213<sect2>
214<title>Command explanations</title>
215
216<para><command>yes | $FOP_BUILD_DIR/../jai-...-jdk.bin</command>: This command
217installs the <application><acronym>JAI</acronym></application> components
218into the <application><acronym>JDK</acronym></application> file structure. The
219<command>yes</command> command is piped through so that you don't have to
220scroll through four pages of the license agreement and automatically responds
221<quote>yes</quote> to the agreement. <envar>$FOP_BUILD_DIR</envar> is used as
222a reference point to the source executable and as a method to return back to
223the <application><acronym>FOP</acronym></application> source tree.</para>
224
225<para><command>sed -i -e "s/build/lib/" ...</command>: These commands modify
226the installed shell scripts so that the location of the installed
227<filename>fop.jar</filename> file is correctly identified.</para>
228
229<para><command>install -v ...; cp -v ...</command>: There is no installation
230script provided by the <application><acronym>FOP</acronym></application>
231package. These commands install the package.</para>
232
233<para><command>ln -svf fop-&fop-version; /opt/fop</command>: This creates a
234convenience symlink so that <envar>$FOP_HOME</envar> doesn't have to be
235changed each time there's a package version change.</para>
236</sect2>
237
238<sect2>
239<title>Configuring <application>FOP</application></title>
240
241<sect3 id="fop-config"><title>Config files</title>
242<para><filename>~/.foprc</filename></para>
243<indexterm zone="fop fop-config">
244<primary sortas="e-AA.foprc">~/.foprc</primary></indexterm>
245</sect3>
246
247<sect3><title>Configuration Information</title>
248
249<para>Using <application><acronym>FOP</acronym></application> to process some
250large <acronym>FO</acronym>'s (including the <acronym>FO</acronym> derived from
251the <acronym>BLFS</acronym> <acronym>XML</acronym> sources), can lead to memory
252errors. Unless you add a parameter to the <command>java</command> command used
253in the <command>fop.sh</command> script you may receive messages similar to the
254one shown below:</para>
255
256<para><computeroutput>Exception in thread "main" java.lang.OutOfMemoryError:
257Java heap space</computeroutput></para>
258
259<para>To avoid errors like this, you need to pass an extra parameter to the
260<command>java</command> command used in the <command>fop.sh</command> script.
261This can be accomplished by creating a <filename>~/.foprc</filename> (which
262is sourced by the <command>fop.sh</command> script) and adding the parameter
263to the <envar>FOP_OPTS</envar> environment variable.</para>
264
265<para>The <command>fop.sh</command> script looks for a <envar>FOP_HOME</envar>
266environment variable to locate the
267<application><acronym>FOP</acronym></application> class libraries. You can
268create this variable using the <filename>~/.foprc</filename> file as
269well. Create a <filename>~/.foprc</filename> file using the following
270commands:</para>
271
272<screen><userinput><command>cat &gt; ~/.foprc &lt;&lt; "EOF"</command>
273FOP_OPTS="-Xmx<replaceable>[RAM_Installed]</replaceable>m"
274FOP_HOME="/opt/fop"
275
276<command>EOF</command></userinput></screen>
277
278<para>Replace <replaceable>[RAM_Installed]</replaceable> with a number
279representing the amount of RAM installed in your computer. An example would
280be <userinput>FOP_OPTS="-Xmx768m"</userinput>. For more information about
281memory issues running <application><acronym>FOP</acronym></application>, see
282<ulink url="http://xml.apache.org/fop/running.html#memory"/>.</para>
283
284<para>To include the <command>fop.sh</command> script in your path, update
285your personal or system-wide profile with the following:</para>
286
287<screen><userinput>PATH=$PATH:/opt/fop/bin</userinput></screen>
288</sect3>
289
290</sect2>
291
292<sect2>
293<title>Contents</title>
294
295<segmentedlist>
296<segtitle>Installed Programs</segtitle>
297<segtitle>Installed Libraries</segtitle>
298<segtitle>Installed Directory</segtitle>
299<seglistitem>
300<seg>fop.sh and xalan.sh</seg>
301<seg>avalon-framework-cvs-20020806.jar, batik.jar, fop.jar, xalan-2.4.1.jar,
302xercesImpl-2.2.1.jar and xml-apis.jar. <acronym>JAI</acronym> components
303include libmlib_jai.so, jai_codec.jar, jai_core.jar and
304mlibwrapper_jai.jar</seg>
305<seg>/opt/fop-&fop-version;</seg>
306</seglistitem>
307</segmentedlist>
308
309<variablelist>
310<bridgehead renderas="sect3">Short Descriptions</bridgehead>
311<?dbfo list-presentation="list"?>
312
313<varlistentry id="fop.sh">
314<term><command>fop.sh</command></term>
315<listitem><para>is a wrapper script to the <command>java</command> command
316which sets up the <application><acronym>FOP</acronym></application>
317environment and passes the required parameters.</para>
318<indexterm zone="fop fop.sh">
319<primary sortas="b-fop.sh">fop.sh</primary></indexterm>
320</listitem>
321</varlistentry>
322
323<varlistentry id="fop.jar">
324<term><filename class='libraryfile'>fop.jar</filename></term>
325<listitem><para>contains all the
326<application><acronym>FOP</acronym></application>
327<application>Java</application> classes.</para>
328<indexterm zone="fop fop.jar">
329<primary sortas="c-fop.jar">fop.jar</primary></indexterm>
330</listitem>
331</varlistentry>
332</variablelist>
333
334</sect2>
335
336</sect1>
337
Note: See TracBrowser for help on using the repository browser.