source: general/prog/openjdk.xml@ 7efbe1ac

kde5-14686 systemd-13485
Last change on this file since 7efbe1ac was 486c27a, checked in by Christopher Gregory <cjg@…>, 10 years ago

Merged icedtea update from trunk.

git-svn-id: svn://svn.linuxfromscratch.org/BLFS/branches/systemd@14216 af4574ff-66df-0310-9fd7-8a98e5e911e0

  • Property mode set to 100644
File size: 47.2 KB
RevLine 
[2c25a56]1<?xml version="1.0" encoding="ISO-8859-1"?>
2<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
3 "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
4 <!ENTITY % general-entities SYSTEM "../../general.ent">
5 %general-entities;
6
[486c27a]7 <!ENTITY anduin-download "http://anduin.linuxfromscratch.org/files/BLFS/OpenJDK-&openjdk-version;-&icedtea-version;">
[36ecbda3]8 <!ENTITY icedtea-download "http://icedtea.classpath.org/download/source/icedtea-&icedtea-version;.tar.xz">
[49b50d4]9
[486c27a]10 <!ENTITY icedtea-md5sum "6c57b54ab8b7916425d567dbb478ad73">
[8824a1e]11 <!ENTITY icedtea-size "1.9 MB">
[49b50d4]12
[8824a1e]13 <!ENTITY corba-download "&anduin-download;/corba.tar.bz2">
[486c27a]14 <!ENTITY corba-md5sum "86cf23060d726aa55d77bffedb8b6a99">
[8824a1e]15 <!ENTITY corba-size "1.0 MB">
[49b50d4]16
[8824a1e]17 <!ENTITY hotspot-download "&anduin-download;/hotspot.tar.bz2">
[486c27a]18 <!ENTITY hotspot-md5sum "026bb8ca9e764fe53b8a19f1ddad1479">
[8824a1e]19 <!ENTITY hotspot-size "7.4 MB">
[49b50d4]20
[8824a1e]21 <!ENTITY jaxp-download "&anduin-download;/jaxp.tar.bz2">
[486c27a]22 <!ENTITY jaxp-md5sum "cbd3226b916fe9e6c7e9f1cd15e54d55">
[8824a1e]23 <!ENTITY jaxp-size "2.6 MB">
[49b50d4]24
[8824a1e]25 <!ENTITY jaxws-download "&anduin-download;/jaxws.tar.bz2">
[486c27a]26 <!ENTITY jaxws-md5sum "84b921fc3e328eea770dc1a092e240dc">
[8824a1e]27 <!ENTITY jaxws-size "1.9 MB">
[49b50d4]28
[8824a1e]29 <!ENTITY jdk-download "&anduin-download;/jdk.tar.bz2">
[486c27a]30 <!ENTITY jdk-md5sum "b5a4703501bf4a6adeaa614e6d2345b3">
[8824a1e]31 <!ENTITY jdk-size "30.2 MB">
[49b50d4]32
[8824a1e]33 <!ENTITY langtools-download "&anduin-download;/langtools.tar.bz2">
[486c27a]34 <!ENTITY langtools-md5sum "e104e60e44aba0a8bc60c48df1d859b9">
[8824a1e]35 <!ENTITY langtools-size "1.6 MB">
[49b50d4]36
[8824a1e]37 <!ENTITY openjdk-download "&anduin-download;/openjdk.tar.bz2">
[486c27a]38 <!ENTITY openjdk-md5sum "f48d6f8b748f869a5624d2c44998d54c">
[8824a1e]39 <!ENTITY openjdk-size "122 KB">
[49b50d4]40
[6f01fd2e]41 <!ENTITY rhino-download "https://github.com/downloads/mozilla/rhino/rhino1_7R4.zip">
42 <!ENTITY rhino-md5sum "ad67a3dff135e3a70f0c3528a2d6edf2">
43 <!ENTITY rhino-size "6.2 MB">
[49b50d4]44
[8824a1e]45 <!ENTITY openjdk-buildsize "8-10 GB">
[486c27a]46 <!ENTITY openjdk-time "28-36 SBU (an additional 100 SBU for testsuite)">
[2c25a56]47]>
48
[a9aa69f]49<sect1 id="openjdk" xreflabel="OpenJDK-&openjdk-version;/IcedTea-&icedtea-version;">
[49b50d4]50 <?dbhtml filename="openjdk.html" ?>
[2c25a56]51
52 <sect1info>
53 <othername>$LastChangedBy$</othername>
54 <date>$Date$</date>
55 </sect1info>
56
[92b1341]57 <title>OpenJDK-&openjdk-version;/IcedTea-&icedtea-version;</title>
[2c25a56]58
[49b50d4]59 <indexterm zone="openjdk">
60 <primary sortas="a-OpenJDK">OpenJDK</primary>
[2c25a56]61 </indexterm>
62
63 <sect2 role="package">
[49b50d4]64 <title>Introduction to OpenJDK and IcedTea</title>
[2c25a56]65
[49b50d4]66 <para><application>IcedTea</application> provides a build harness for the
[f533b0d]67 <application>OpenJDK</application> package, Oracle's open-sourced
[2c25a56]68 <application>Java</application> development environment. In order to
69 provide a completely free runtime environment, similar to Oracle's closed
[49b50d4]70 distribution, the <application>IcedTea</application> build harness also
71 provides free, and arguably better versions of parts of the JDK which
72 have not been open-sourced to date. <application>OpenJDK</application> is
[2c25a56]73 useful for developing <application>Java</application> programs and provides
74 a complete runtime environment to run <application>Java</application>
75 programs.</para>
76
[916079a0]77 &lfs76_checked;
[efd03f7]78
[d3d92c8]79 <note><para>The browser plugin and webstart implementation have been split
[49b50d4]80 off into a separate project. To provide a complete implementation, you will
81 need to later install <xref linkend="icedtea-web"/>.</para></note>
[d3d92c8]82
[49b50d4]83 <para>OpenJDK is GPL'd code, however, it should be explained that there has
84 been a special exception made for non-free projects to use these classes in
85 their proprietary products. In similar fashion to the LGPL, which
[2c25a56]86 allows non-free programs to link to libraries provided by free software,
87 the <ulink url="http://openjdk.java.net/legal/gplv2+ce.html">GNU
88 General Public License, version 2, with the Classpath Exception</ulink>
89 allows third party programs to use classes provided by free software
[4d180035]90 without the requirement that the third party software also be free. As with
91 the LGPL, any modifications made to the free software portions of a
92 third party application, must also be made freely available.</para>
[2c25a56]93
94 <note>
[49b50d4]95 <para>The IcedTea build environment includes a very thorough, open source
[2c25a56]96 test suite titled <application>JTreg</application>.
97 <application>JTreg</application> is intended to test the just built JDK
98 for reasonable compatibility with the closed Oracle JDK. However, in
99 order for an independent implementation to claim compatibility, including
100 the Oracle sponsored <application>OpenJDK</application> project, it must
101 pass a closed <application>JCK/TCK</application> test suite. No claims
102 of compatibility, even partial compatibility, may be made without
103 passing an approved test suite.</para>
104
105 <para>Oracle does provide free community access, on a case by case basis,
106 to a closed toolkit to ensure 100% compatibility with its proprietary JDK.
107 The binary version provided here has not been tested against the
108 <ulink url="http://openjdk.java.net/groups/conformance/JckAccess/jck-access.html">
109 TCK</ulink>. Any version that is built using the instructions given,
110 cannot claim to be compatible with the proprietary JDK, without the user
111 applying for, and completing the compatibility tests themselves.</para>
112
113 <para>With that in mind, the binaries produced using this build method are
114 regularly tested against the TCK by the members listed on the site above.
115 In addition to the community license above, an educational, non-commercial
116 license for the TCK can be obtained from
117 <ulink url="http://www.oracle.com/technetwork/java/index-137188.html">
118 here</ulink>.</para>
119 </note>
120
121 <bridgehead renderas="sect3">Source Package Information</bridgehead>
122 <itemizedlist spacing="compact">
123 <listitem>
[49b50d4]124 <para>IcedTea Source Package
[2c25a56]125 <simplelist>
[49b50d4]126 <member>Download: <ulink url="&icedtea-download;"/></member>
127 <member>Download MD5 sum: &icedtea-md5sum;</member>
128 <member>Download Size: &icedtea-size;</member>
[2c25a56]129 </simplelist>
130 </para>
131 </listitem>
[f533b0d]132 </itemizedlist>
133
[0d7900a]134 <para>The following may be downladed separately or be done as a
[dfff8213]135 part of the <command>make</command> process. For convenience
[92b1341]136 the BLFS editors have made the files available in an LFS website.
137 The files are not distributed with versions, but extracted from
138 the OpenJDK version control system at specified (tagged) points.</para>
[f533b0d]139
140 <itemizedlist spacing="compact">
[2c25a56]141 <listitem>
[49b50d4]142 <para>Corba Source
143 <simplelist>
144 <member>Download: <ulink url="&corba-download;"/></member>
145 <member>Download MD5 sum: &corba-md5sum;</member>
146 <member>Download Size: &corba-size;</member>
147 </simplelist>
148 </para>
149 </listitem>
150 <listitem>
151 <para>Hotspot Source
[2c25a56]152 <simplelist>
[49b50d4]153 <member>Download: <ulink url="&hotspot-download;"/></member>
154 <member>Download MD5 sum: &hotspot-md5sum;</member>
155 <member>Download Size: &hotspot-size;</member>
[2c25a56]156 </simplelist>
157 </para>
158 </listitem>
159 <listitem>
[49b50d4]160 <para>IcedTea Build Source
[2c25a56]161 <simplelist>
[49b50d4]162 <member>Download: <ulink url="&openjdk-download;"/></member>
163 <member>Download MD5 sum: &openjdk-md5sum;</member>
164 <member>Download Size: &openjdk-size;</member>
[2c25a56]165 </simplelist>
166 </para>
167 </listitem>
168 <listitem>
169 <para>JAXP Source
170 <simplelist>
[49b50d4]171 <member>Download: <ulink url="&jaxp-download;"/></member>
172 <member>Download MD5 sum: &jaxp-md5sum;</member>
173 <member>Download Size: &jaxp-size;</member>
[2c25a56]174 </simplelist>
175 </para>
176 </listitem>
177 <listitem>
178 <para>JAXWS Source
179 <simplelist>
[49b50d4]180 <member>Download: <ulink url="&jaxws-download;"/></member>
181 <member>Download MD5 sum: &jaxws-md5sum;</member>
182 <member>Download Size: &jaxws-size;</member>
183 </simplelist>
184 </para>
185 </listitem>
186 <listitem>
187 <para>Langtools Source
188 <simplelist>
189 <member>Download: <ulink url="&langtools-download;"/></member>
190 <member>Download MD5 sum: &langtools-md5sum;</member>
191 <member>Download Size: &langtools-size;</member>
192 </simplelist>
193 </para>
194 </listitem>
195 <listitem>
196 <para>OpenJDK Source
197 <simplelist>
198 <member>Download: <ulink url="&jdk-download;"/></member>
199 <member>Download MD5 sum: &jdk-md5sum;</member>
200 <member>Download Size: &jdk-size;</member>
[2c25a56]201 </simplelist>
202 </para>
203 </listitem>
204 <listitem>
[49b50d4]205 <para>Estimated disk space required: &openjdk-buildsize;</para>
[2c25a56]206 </listitem>
207 <listitem>
[49b50d4]208 <para>Estimated build time: &openjdk-time;</para>
[2c25a56]209 </listitem>
210 </itemizedlist>
211
212 <bridgehead renderas="sect3">Additional Downloads</bridgehead>
213
214 <bridgehead renderas="sect4">Required Patches</bridgehead>
215 <itemizedlist spacing='compact'>
216 <listitem>
217 <para><ulink
[e01f402]218 url="&patch-root;/icedtea-&icedtea-version;-add_cacerts-1.patch"/></para>
[2c25a56]219 </listitem>
220 <listitem>
221 <para><ulink
[49b50d4]222 url="&patch-root;/icedtea-&icedtea-version;-fixed_paths-1.patch"/></para>
[2c25a56]223 </listitem>
[870e4acf]224 <listitem>
225 <para><ulink
226 url="&patch-root;/icedtea-&icedtea-version;-fix_new_giflib-1.patch"/></para>
227 </listitem>
[2c25a56]228 <listitem>
229 <para><ulink
[dc6bfc3b]230 url="&patch-root;/icedtea-&icedtea-version;-fix_tests-1.patch"/></para>
[2c25a56]231 </listitem>
232 </itemizedlist>
233
[dc6bfc3b]234 <bridgehead renderas="sect4">Required JAR</bridgehead>
[2c25a56]235 <itemizedlist spacing='compact'>
236 <listitem>
237 <para>Rhino Java Script
238 <simplelist>
[49b50d4]239 <member>Download: <ulink url="&rhino-download;"/></member>
240 <member>Download MD5 sum: &rhino-md5sum;</member>
241 <member>Download Size: &rhino-size;</member>
[2c25a56]242 </simplelist>
243 </para>
244 </listitem>
245 </itemizedlist>
[49b50d4]246 <bridgehead renderas="sect3">OpenJDK Dependencies</bridgehead>
[bc00982]247
[92b1341]248 <bridgehead renderas="sect4">Required Dependencies</bridgehead>
[2e41a4f]249 <para role="required">
[92b1341]250 An existing binary ( <xref linkend="java"/> or an earlier built
[710fb64]251 version of this package),
[52a4df28]252 <xref linkend="alsa-lib"/>,
[92b1341]253 <xref linkend="apache-ant"/>,
[49b50d4]254 <xref linkend="cacerts"/>,
[92b1341]255 <xref linkend="cpio"/>,
[de930747]256 <xref linkend="cups"/>,
[1c69133]257 <xref linkend="gtk2"/>,
[49b50d4]258 <xref linkend="giflib"/>,
[2e41a4f]259 <xref linkend="unzip"/>,
260 <xref linkend="wget"/>,
[92b1341]261 <xref linkend="which"/>,
262 <xref linkend="xorg7-lib"/>, and
[2e41a4f]263 <xref linkend="zip"/>
264 </para>
[2c25a56]265
[52a4df28]266 <bridgehead renderas="sect4">Recommended</bridgehead>
267 <para role="recommended">
[6dc9fd3]268 <xref linkend="junit"/> and
[52a4df28]269 <xref linkend="nss"/>
270 </para>
271
[e01f402]272 <bridgehead renderas="sect4">Optional</bridgehead>
273 <para role="optional">
[e520fdef]274 <xref linkend="icedtea-web"/> (to obtain icon file for the
275 <command>policytool</command> menu entry),
[406d365]276 <xref linkend="libxslt"/>,
[d74762c]277 <xref linkend="lsb-release"/>,
[406d365]278 <xref linkend="mercurial"/>,
[6f01fd2e]279 <xref linkend="mitkrb"/>,
[8824a1e]280<!-- Audio support has beeen moved to icedtea-sound
281 <xref linkend="pulseaudio"/>, --> and
[6f01fd2e]282 <xref linkend="xorg-server"/> (for the tests)
[e01f402]283 </para>
284
[2c25a56]285 <para condition="html" role="usernotes">User Notes:
[49b50d4]286 <ulink url="&blfs-wiki;/openjdk"/></para>
[2c25a56]287
288 </sect2>
289
290 <sect2 role="installation">
[49b50d4]291 <title>Installation of OpenJDK</title>
[2c25a56]292
[92b1341]293 <note><para>The source build of OpenJDK requires <xref
294 linkend="apache-ant"/>. You'll need to build that first to satisfy the
295 circular dependency, and return to this section to continue building
[49b50d4]296 OpenJDK.</para></note>
[2c25a56]297
[49b50d4]298 <para>Unlike other packages in BLFS, the <application>OpenJDK</application>
299 source packages are distributed in multiple downloads. Since the IcedTea
[4d180035]300 build harness will be used to build <application>OpenJDK</application>,
[49b50d4]301 begin by extracting the IcedTea package and changing into the
[4d180035]302 extracted directory.</para>
[bc00982]303
[4d180035]304 <para>The IcedTea <application>OpenJDK</application> distribution requires
[49b50d4]305 that <filename>js.jar</filename> (from the Rhino package) be in place in
306 order to provide a java-script implementation for the free JDK. If you have
307 not installed the js.jar file in another way, do so with the following
308 commands as the <systemitem class="username">root</systemitem> user:</para>
[2c25a56]309
[6f01fd2e]310<screen role="root"><userinput>unzip ../rhino1_7R4.zip &amp;&amp;
[2c25a56]311install -v -d -m755 /usr/share/java &amp;&amp;
[6f01fd2e]312install -v -m755 rhino1_7R4/*.jar /usr/share/java</userinput></screen>
[49b50d4]313
314 <para>As mentioned previously, <application>OpenJDK</application> is
315 composed of several individual projects of the proprietary
316 <application>JDK</application> that have been relicensed under an open
[8824a1e]317 source license. If you have already downloaded all of the individual
[f533b0d]318 components, place them into the source tree with the following commands:</para>
[49b50d4]319
[8824a1e]320<screen><userinput>cp -v ../corba.tar.bz2 . &amp;&amp;
321cp -v ../hotspot.tar.bz2 . &amp;&amp;
322cp -v ../jaxp.tar.bz2 . &amp;&amp;
323cp -v ../jaxws.tar.bz2 . &amp;&amp;
324cp -v ../jdk.tar.bz2 . &amp;&amp;
325cp -v ../langtools.tar.bz2 . &amp;&amp;
326cp -v ../openjdk.tar.bz2 .</userinput></screen>
[6f01fd2e]327
[2c25a56]328 <para>Apply a patch to generate a valid cacerts file using the system CA
329 certificates:</para>
330
[e01f402]331<screen><userinput>patch -Np1 -i ../icedtea-&icedtea-version;-add_cacerts-1.patch</userinput></screen>
[bc00982]332
333 <para>Apply a patch to replace fixed paths with ones appropriate for
334 BLFS:</para>
335
[49b50d4]336<screen><userinput>patch -Np1 -i ../icedtea-&icedtea-version;-fixed_paths-1.patch</userinput></screen>
337
[870e4acf]338 <para>Apply a patch to adapt the code to the new giflib API:</para>
339
340<screen><userinput>patch -Np1 -i ../icedtea-&icedtea-version;-fix_new_giflib-1.patch</userinput></screen>
341
[49b50d4]342 <para>Apply a patch to exclude known broken tests from the test suite:</para>
343
344<screen><userinput>patch -Np1 -i ../icedtea-&icedtea-version;-fix_tests-1.patch</userinput></screen>
345
[5292423]346 <para>Configure and build the package with the following commands
[dc035e7]347 (--with-pkgversion and --with-version-suffix values can be modified to fit
348 user preferences):</para>
[2c25a56]349
[c770e18]350<screen><userinput>unset JAVA_HOME &amp;&amp;
351./autogen.sh &amp;&amp;
352./configure --with-jdk-home=/opt/OpenJDK-&openjdk-version;-bin \
[bb11ee6]353 --with-version-suffix=BLFS \
[52a4df28]354 --enable-nss \
[c770e18]355 --disable-system-kerberos \
[8824a1e]356 --with-parallel-jobs &amp;&amp;
[2c25a56]357make</userinput></screen>
358
[0d7900a]359 <note><para>If you have not installed the tarballs specified above,
[f533b0d]360 they will be automatically downloaded here.</para></note>
361
[49b50d4]362 <para>To test the results, issue: <command>make jtregcheck</command>. The
[bc00982]363 included version of <application>jtreg</application> is old, and the test
[49b50d4]364 suite is also very dependent on the host system and the environment that it
[f533b0d]365 is run in. You should expect to see anywhere between 40 and 100 failures in
366 jdk with up to 10 errors in the tests themselves. The majority of the
367 6000+ tests should pass. The reason for the greatly varying results is due
368 to how stringent the testing environment must be. Varying architectures,
369 different versions of dependent libraries, unexpected X Window environment
370 and window managers, the CA certificates used to generate the
371 <filename>cacerts</filename> file, and even any user input or power
372 management or screen saver interruptions during the testing can lead to
373 various failures. While the known broken tests have been removed, with the
374 fix_tests patch above, the graphics tests failures cannot be pre-determined
375 (short of removing them all). The best bet for the minimal number of
376 failures is to run the test suite in a framebuffer on a different screen
[e6a3602]377 (Xvfb). Even still, disk I/O can cause failures.</para>
[2c25a56]378
[52a4df28]379<screen role='nodump'><userinput>export DISPLAY=:20 &amp;&amp;
[92b1341]380Xvfb :20 -screen 0 1x1x24 -ac&amp;
381echo $!> Xvfb.pid &amp;&amp;
382make -k jtregcheck &amp;&amp;
383kill -9 `cat Xvfb.pid` &amp;&amp;
384unset DISPLAY &amp;&amp;
385rm -f Xvfb.pid</userinput></screen>
386
[2c25a56]387 <para>Install the package with the following commands as the
388 <systemitem class="username">root</systemitem> user:</para>
389
[c770e18]390<screen role="root"><userinput>chmod 0644 openjdk.build/j2sdk-image/lib/sa-jdi.jar &amp;&amp;
[f533b0d]391cp -R openjdk.build/j2sdk-image /opt/OpenJDK-&openjdk-version; &amp;&amp;
[49b50d4]392chown -R root:root /opt/OpenJDK-&openjdk-version;</userinput></screen>
[2c25a56]393
[e520fdef]394 <para>If desired, you may install a <filename class="extension">.desktop</filename>
395 file so <command>policytool</command> can be accessed from a desktop menu. First,
396 you need to obtain an icon from the <xref linkend="icedtea-web"/>
397 tarball:</para>
[300b4ee]398
[e520fdef]399<screen role="root"><userinput>tar -xf icedtea-web-&icedtea-web-version;.tar.gz \
400 icedtea-web-&icedtea-web-version;/javaws.png \
401 --strip-components=1</userinput></screen>
402
403 <para>Now, as <systemitem class="username">root</systemitem> user:</para>
404
405<screen role="root"><userinput>cat ;&gt; /usr/share/applications/openjdk-7-policytool.desktop &lt;&lt; "EOF" &amp;&amp;
[300b4ee]406<literal>[Desktop Entry]
407Name=OpenJDK Java 7 Policy Tool
408Name[pt_BR]=OpenJDK Java 7 - Ferramenta de Pol&#237;tica
409Comment=OpenJDK Java 7 Policy Tool
410Comment[pt_BR]=OpenJDK Java 7 - Ferramenta de Pol&#237;tica
411Exec=/opt/jdk/bin/policytool
412Terminal=false
413Type=Application
414Icon=javaws
415Categories=Settings;</literal>
416EOF
417
[e520fdef]418install -v -Dm644 javaws.png /usr/share/pixmaps/javaws.png</userinput></screen>
419
420 <para>The choice of pt_BR is just an example. You can delete those lines
421 or replace them by corresponding ones in your locale, e.g. fr_FR, with the
422 "Name[fr_FR]" and "Comment[fr_FR]" values given by your translations.</para>
[300b4ee]423
[2c25a56]424 </sect2>
425
426 <sect2 role="commands">
427 <title>Command Explanations</title>
428
429 <para><command>./autogen.sh</command>: This command forces rebuilding of
430 auto-generated files to account for new options added to
431 <filename>configure</filename>.</para>
432
433 <para><parameter>--with-jdk-home</parameter>: This switch provides the
[d3d92c8]434 location of the temporary <application>JDK</application>.</para>
[2c25a56]435
[6f01fd2e]436 <para><option>--with-pkgversion</option>: This switch can be used
[5292423]437 to modify the version string in addition to "IcedTea".</para>
438
439 <para><parameter>--with-version-suffix</parameter>: This switch appends
440 the given text to the JDK version string.</para>
441
[52a4df28]442 <para><parameter>--enable-nss</parameter>: Enable inclusion of NSS
443 security provider.</para>
444
[916079a0]445 <para><parameter>--disable-system-kerberos</parameter>: Remove this switch
[e01f402]446 if <xref linkend="mitkrb"/> is installed.</para>
447
[8824a1e]448 <para><parameter>--with-parallel-jobs</parameter>: Allows to set the number
449 of jobs for <command>make</command> equal to the number of processors plus
[383f26a]450 one. Note that the default is 2 if this option is not specified. You have to
[8824a1e]451 explicitely set <option>--with-parallel-jobs=1</option> to disable
452 parallel jobs. The SBU given above are with parallel jobs
453 disabled.</para>
[c770e18]454
[f533b0d]455 <para><command>chmod -v 0644 ...sa-jdi.jar</command>: Fix permissions
456 in a generated file so all users can access it.</para>
[8824a1e]457<!-- Now part of icedtea-sound
458 <para><option>- -enable-pulse-java</option>: This switch enables
[5889b848]459 building of the pulseaudio libraries (needed to provide a complete
460 implementation that is reasonably compatible with the proprietary
461 JDK). <xref linkend="pulseaudio"/> needs to be installed.</para>
[8824a1e]462-->
[5889b848]463
[2c25a56]464 </sect2>
465
[784a1a7f]466 <sect2 role="configuration" id="openjdk-config" xreflabel="Configuring OpenJDK" >
[49b50d4]467 <title>Configuring OpenJDK</title>
[2c25a56]468
469 <sect3>
470 <title>Configuration Information</title>
471
[49b50d4]472 <para>There are now two <application>OpenJDK</application> SDKs
[2c25a56]473 installed in <filename>/opt</filename>. You should decide on which one
474 you would like to use as the default. For example if you decide to use
[49b50d4]475 the precompiled <application>OpenJDK</application>, do the following as
[2c25a56]476 the <systemitem class="username">root</systemitem> user:</para>
477
[e520fdef]478<screen role="root"><userinput>ln -sfv OpenJDK-&openjdk-version;-bin /opt/jdk</userinput></screen>
[2c25a56]479
[f533b0d]480 <para>The information below assumes your system is set up using the
481 instructions found in <quote><xref
482 linkend="postlfs-config-profile"/></quote>. You may need to extract the
483 relevant information below and incorporate it into your system's startup
484 files if your system is set up differently.</para>
[2c25a56]485
[f533b0d]486 <para>Add the following <filename>openjdk.sh</filename> shell startup
487 file to the <filename>/etc/profile.d</filename> directory with the
488 following commands as the <systemitem class="username">root</systemitem>
489 user:</para>
[2c25a56]490
[300b4ee]491<screen role="root"><userinput>cat &gt;&gt; /etc/profile.d/openjdk.sh &lt;&lt; "EOF"
[49b50d4]492<literal># Begin /etc/profile.d/openjdk.sh
[2c25a56]493
494# Set JAVA_HOME directory
[f533b0d]495JAVA_HOME=/opt/jdk
[2c25a56]496
497# Adjust PATH
[f533b0d]498pathappend $JAVA_HOME/bin PATH
[2c25a56]499
[ef5eb8e]500pathappend $JAVA_HOME/include C_INCLUDE_PATH
501pathappend $JAVA_HOME/include/linux C_INCLUDE_PATH
502pathappend $JAVA_HOME/include CPLUS_INCLUDE_PATH
503pathappend $JAVA_HOME/include/linux CPLUS_INCLUDE_PATH
504
[2c25a56]505# Auto Java CLASSPATH
506# Copy jar files to, or create symlinks in this directory
[f533b0d]507
[2c25a56]508AUTO_CLASSPATH_DIR=/usr/share/java
[f533b0d]509
[2c25a56]510pathprepend . CLASSPATH
[f533b0d]511
[2c25a56]512for dir in `find ${AUTO_CLASSPATH_DIR} -type d 2>/dev/null`; do
513 pathappend $dir CLASSPATH
514done
[f533b0d]515
[49b50d4]516for jar in `find ${AUTO_CLASSPATH_DIR} -name "*.jar" 2>/dev/null`; do
517 pathappend $jar CLASSPATH
518done
[2c25a56]519
[ef5eb8e]520export JAVA_HOME CLASSPATH C_INCLUDE_PATH CPLUS_INCLUDE_PATH
[f533b0d]521unset AUTO_CLASSPATH_DIR dir jar
[2c25a56]522
[49b50d4]523# End /etc/profile.d/openjdk.sh</literal>
[2c25a56]524EOF</userinput></screen>
525
[49b50d4]526 <para>Finally, add the man pages to <application>man_db</application>'s
527 configuration. As the <systemitem class="username">root</systemitem>
528 user:</para>
[2c25a56]529
[300b4ee]530<screen role="root"><userinput>cat >> /etc/profile.d/extrapaths.sh &lt;&lt; "EOF" &amp;&amp;
531# Begin Java addition
532<literal>pathappend /opt/jdk/man MANPATH
533# End Java addition</literal>
534EOF
535
536
537cat &gt;&gt; /etc/man_db.conf &lt;&lt; "EOF" &amp;&amp;
538<literal># Begin Java addition
539MANDATORY_MANPATH /opt/jdk/man
[f533b0d]540MANPATH_MAP /opt/jdk/bin /opt/jdk/man
[300b4ee]541MANDB_MAP /opt/jdk/man /var/cache/man/jdk
542# End Java addition</literal>
[49b50d4]543EOF
[b4289bcc]544
545mandb -c /opt/jdk/man</userinput></screen>
[2c25a56]546
[300b4ee]547 <para>To test the man pages are correctly installed, issue <command>source /etc/profile</command> and <command>man java</command> to display the respective man page.</para>
548
[2c25a56]549 </sect3>
550
[8b9034a]551 <sect3 id='ojdk-certs'>
552 <title>Install or update the JRE Certificate Authority Certificates (cacerts) file</title>
553
[930d280b]554 <para>Use the following procedure to check if the
555 <filename>cacerts</filename> file was successfully installed during the
556 OpenJDK build. Also, if the <xref linkend="cacerts"/> have been updated,
557 the following instructions will generate a new JRE
558 <filename>cacerts</filename> file. First, check if the
[8b9034a]559 <filename>cacerts</filename> have been successfully installed: </para>
560
561<screen role="root"><userinput>cd /opt/jdk
562bin/keytool -list -keystore jre/lib/security/cacerts</userinput></screen>
563
564 <para>At the prompt "Enter keystore password:", press the "Enter" key if
565 there is no keystore password defined. If the
[930d280b]566 <filename>cacerts</filename> were installed correctly, you will see a
[8b9034a]567 list of the certificates with related information for each one. If not,
568 you need to manually install them. First, generate the
569 <command>mkcacerts</command> script as the
570 <systemitem class="username">root</systemitem> user:</para>
571
572<screen role="root"><userinput>cat &gt; /opt/jdk/bin/mkcacerts &lt;&lt; "EOF"
573<literal>#!/bin/sh
574# Simple script to extract x509 certificates and create a JRE cacerts file.
575
576function get_args()
577 {
578 if test -z "${1}" ; then
579 showhelp
580 exit 1
581 fi
582
583 while test -n "${1}" ; do
584 case "${1}" in
585 -f | --cafile)
586 check_arg $1 $2
587 CAFILE="${2}"
588 shift 2
589 ;;
590 -d | --cadir)
591 check_arg $1 $2
592 CADIR="${2}"
593 shift 2
594 ;;
595 -o | --outfile)
596 check_arg $1 $2
597 OUTFILE="${2}"
598 shift 2
599 ;;
600 -k | --keytool)
601 check_arg $1 $2
602 KEYTOOL="${2}"
603 shift 2
604 ;;
605 -s | --openssl)
606 check_arg $1 $2
607 OPENSSL="${2}"
608 shift 2
609 ;;
610 -h | --help)
611 showhelp
612 exit 0
613 ;;
614 *)
615 showhelp
616 exit 1
617 ;;
618 esac
619 done
620 }
621
622function check_arg()
623 {
624 echo "${2}" | grep -v "^-" > /dev/null
625 if [ -z "$?" -o ! -n "$2" ]; then
626 echo "Error: $1 requires a valid argument."
627 exit 1
628 fi
629 }
630
631# The date binary is not reliable on 32bit systems for dates after 2038
632function mydate()
633 {
634 local y=$( echo $1 | cut -d" " -f4 )
635 local M=$( echo $1 | cut -d" " -f1 )
636 local d=$( echo $1 | cut -d" " -f2 )
637 local m
638
639 if [ ${d} -lt 10 ]; then d="0${d}"; fi
640
641 case $M in
642 Jan) m="01";;
643 Feb) m="02";;
644 Mar) m="03";;
645 Apr) m="04";;
646 May) m="05";;
647 Jun) m="06";;
648 Jul) m="07";;
649 Aug) m="08";;
650 Sep) m="09";;
651 Oct) m="10";;
652 Nov) m="11";;
653 Dec) m="12";;
654 esac
655
656 certdate="${y}${m}${d}"
657 }
658
659function showhelp()
660 {
661 echo "`basename ${0}` creates a valid cacerts file for use with IcedTea."
662 echo ""
663 echo " -f --cafile The path to a file containing PEM formated CA"
664 echo " certificates. May not be used with -d/--cadir."
665 echo " -d --cadir The path to a diectory of PEM formatted CA"
666 echo " certificates. May not be used with -f/--cafile."
667 echo " -o --outfile The path to the output file."
668 echo ""
669 echo " -k --keytool The path to the java keytool utility."
670 echo ""
671 echo " -s --openssl The path to the openssl utility."
672 echo ""
673 echo " -h --help Show this help message and exit."
674 echo ""
675 echo ""
676 }
677
[a407a1c]678# Initialize empty variables so that the shell does not pollute the script
[8b9034a]679CAFILE=""
680CADIR=""
681OUTFILE=""
682OPENSSL=""
683KEYTOOL=""
684certdate=""
685date=""
686today=$( date +%Y%m%d )
687
688# Process command line arguments
689get_args ${@}
690
691# Handle common errors
692if test "${CAFILE}x" == "x" -a "${CADIR}x" == "x" ; then
693 echo "ERROR! You must provide an x509 certificate store!"
694 echo "\'$(basename ${0}) --help\' for more info."
695 echo ""
696 exit 1
697fi
698
699if test "${CAFILE}x" != "x" -a "${CADIR}x" != "x" ; then
700 echo "ERROR! You cannot provide two x509 certificate stores!"
701 echo "\'$(basename ${0}) --help\' for more info."
702 echo ""
703 exit 1
704fi
705
706if test "${KEYTOOL}x" == "x" ; then
707 echo "ERROR! You must provide a valid keytool program!"
708 echo "\'$(basename ${0}) --help\' for more info."
709 echo ""
710 exit 1
711fi
712
713if test "${OPENSSL}x" == "x" ; then
714 echo "ERROR! You must provide a valid path to openssl!"
715 echo "\'$(basename ${0}) --help\' for more info."
716 echo ""
717 exit 1
718fi
719
720if test "${OUTFILE}x" == "x" ; then
721 echo "ERROR! You must provide a valid output file!"
722 echo "\'$(basename ${0}) --help\' for more info."
723 echo ""
724 exit 1
725fi
726
727# Get on with the work
728
729# If using a CAFILE, split it into individual files in a temp directory
730if test "${CAFILE}x" != "x" ; then
731 TEMPDIR=`mktemp -d`
732 CADIR="${TEMPDIR}"
733
734 # Get a list of staring lines for each cert
735 CERTLIST=`grep -n "^-----BEGIN" "${CAFILE}" | cut -d ":" -f 1`
736
737 # Get a list of ending lines for each cert
738 ENDCERTLIST=`grep -n "^-----END" "${CAFILE}" | cut -d ":" -f 1`
739
740 # Start a loop
741 for certbegin in `echo "${CERTLIST}"` ; do
742 for certend in `echo "${ENDCERTLIST}"` ; do
743 if test "${certend}" -gt "${certbegin}"; then
744 break
745 fi
746 done
747 sed -n "${certbegin},${certend}p" "${CAFILE}" > "${CADIR}/${certbegin}.pem"
748 keyhash=`${OPENSSL} x509 -noout -in "${CADIR}/${certbegin}.pem" -hash`
749 echo "Generated PEM file with hash: ${keyhash}."
750 done
751fi
752
753# Write the output file
754for cert in `find "${CADIR}" -type f -name "*.pem" -o -name "*.crt"`
755do
756
757 # Make sure the certificate date is valid...
758 date=$( ${OPENSSL} x509 -enddate -in "${cert}" -noout | sed 's/^notAfter=//' )
759 mydate "${date}"
760 if test "${certdate}" -lt "${today}" ; then
761 echo "${cert} expired on ${certdate}! Skipping..."
762 unset date certdate
763 continue
764 fi
765 unset date certdate
766 ls "${cert}"
767 tempfile=`mktemp`
768 certbegin=`grep -n "^-----BEGIN" "${cert}" | cut -d ":" -f 1`
769 certend=`grep -n "^-----END" "${cert}" | cut -d ":" -f 1`
770 sed -n "${certbegin},${certend}p" "${cert}" > "${tempfile}"
771 echo yes | env LC_ALL=C "${KEYTOOL}" -import -alias `basename "${cert}"` -keystore \
772 "${OUTFILE}" -storepass 'changeit' -file "${tempfile}"
773 rm "${tempfile}"
774done
775
776if test "${TEMPDIR}x" != "x" ; then
777 rm -rf "${TEMPDIR}"
778fi
779exit 0</literal>
780EOF
781
782chmod -c 0755 /opt/jdk/bin/mkcacerts</userinput></screen>
783
784 <note>
785 <para>
786 Doing a very large copy/paste directly to a terminal may result in a
787 corrupted file. Copying to an editor may overcome this issue.
788 </para>
789 </note>
790
[8824a1e]791 <para>If you need to generate a <filename>cacerts</filename> file,
792 and there is already one in
793 <filename class="directory">/opt/jdk/jre/lib/security</filename>, it
794 is better to make a backup. Then, you can create a new one, as the
[8b9034a]795 <systemitem class="username">root</systemitem> user:</para>
796
[52a4df28]797<screen role="root"><userinput>/opt/jdk/bin/mkcacerts -d "/etc/ssl/certs/" -k "/opt/jdk/bin/keytool" \
[8b9034a]798 -s "/usr/bin/openssl" -o "/opt/jdk/jre/lib/security/cacerts"</userinput></screen>
799
800 </sect3>
801
[2c25a56]802 </sect2>
803
804 <sect2 role="content">
805 <title>Contents</title>
806
807 <segmentedlist>
808 <segtitle>Installed Programs</segtitle>
809 <segtitle>Installed Libraries</segtitle>
810 <segtitle>Installed Directory</segtitle>
811
812 <seglistitem>
[49b50d4]813 <seg>appletviewer, apt, extcheck, idlj, jar,
[2c25a56]814 jarsigner, java, javac, javadoc, javah, javap, java-rmi.cgi,
[49b50d4]815 jcmd, jconsole, jdb, jhat, jinfo, jmap, jps,
[486c27a]816 jrunscript, jsadebugd, jstack, jstat, jstatd, keytool, mkcacerts,
[2c25a56]817 native2ascii, orbd, pack200, policytool, rmic, rmid, rmiregistry,
818 schemagen, serialver, servertool, tnameserv, unpack200,
819 wsgen, wsimport, and xjc</seg>
[4d180035]820 <seg>/opt/OpenJDK-&openjdk-version;/lib/*, and
821 /opt/OpenJDK-&openjdk-version;/jre/lib/*</seg>
822 <seg>/opt/OpenJDK-&openjdk-version;</seg>
[2c25a56]823 </seglistitem>
824 </segmentedlist>
825
826 <variablelist>
827 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
828 <?dbfo list-presentation="list"?>
829 <?dbhtml list-presentation="table"?>
830
[49b50d4]831 <varlistentry id="appletviewer">
832 <term><command>appletviewer</command></term>
833 <listitem>
834 <para>allows you to run applets outside of a web browser.</para>
835 <indexterm zone="openjdk appletviewer">
836 <primary sortas="b-appletviewer">appletviewer</primary>
837 </indexterm>
838 </listitem>
839 </varlistentry>
840
841 <varlistentry id="apt">
[2c25a56]842 <term><command>apt</command></term>
843 <listitem>
844 <para>is an annotation processing tool.</para>
[49b50d4]845 <indexterm zone="openjdk apt">
[2c25a56]846 <primary sortas="b-apt">apt</primary>
847 </indexterm>
848 </listitem>
849 </varlistentry>
850
[49b50d4]851 <varlistentry id="extcheck">
[2c25a56]852 <term><command>extcheck</command></term>
853 <listitem>
854 <para>checks a specified jar file for title and version conflicts
[49b50d4]855 with any extensions installed in the
856 <application>OpenJDK</application> software.</para>
857 <indexterm zone="openjdk extcheck">
[2c25a56]858 <primary sortas="b-extcheck">extcheck</primary>
859 </indexterm>
860 </listitem>
861 </varlistentry>
862
[49b50d4]863 <varlistentry id="idlj">
[2c25a56]864 <term><command>idlj</command></term>
865 <listitem>
866 <para>generates Java bindings from a given IDL file.</para>
[49b50d4]867 <indexterm zone="openjdk idlj">
[2c25a56]868 <primary sortas="b-idlj">idlj</primary>
869 </indexterm>
870 </listitem>
871 </varlistentry>
872
[49b50d4]873 <varlistentry id="jar">
[2c25a56]874 <term><command>jar</command></term>
875 <listitem>
876 <para>combines multiple files into a single jar archive.</para>
[49b50d4]877 <indexterm zone="openjdk jar">
[2c25a56]878 <primary sortas="b-jar">jar</primary>
879 </indexterm>
880 </listitem>
881 </varlistentry>
882
[49b50d4]883 <varlistentry id="jarsigner">
[2c25a56]884 <term><command>jarsigner</command></term>
885 <listitem>
886 <para>signs jar files and verifies the signatures and integrity
887 of a signed jar file.</para>
[49b50d4]888 <indexterm zone="openjdk jarsigner">
[2c25a56]889 <primary sortas="b-jarsigner">jarsigner</primary>
890 </indexterm>
891 </listitem>
892 </varlistentry>
893
[784a1a7f]894 <varlistentry id="java-prog">
[2c25a56]895 <term><command>java</command></term>
896 <listitem>
897 <para>launches a Java application by starting a Java runtime
898 environment, loading a specified class and invoking its main
899 method.</para>
[784a1a7f]900 <indexterm zone="openjdk java-prog">
901 <primary sortas="b-java-prog">java</primary>
[2c25a56]902 </indexterm>
903 </listitem>
904 </varlistentry>
905
[49b50d4]906 <varlistentry id="javac">
[2c25a56]907 <term><command>javac</command></term>
908 <listitem>
909 <para>reads class and interface definitions, written in the
910 Java programming language, and compiles them into bytecode
911 class files.</para>
[49b50d4]912 <indexterm zone="openjdk javac">
[2c25a56]913 <primary sortas="b-javac">javac</primary>
914 </indexterm>
915 </listitem>
916 </varlistentry>
917
[49b50d4]918 <varlistentry id="javadoc">
[2c25a56]919 <term><command>javadoc</command></term>
920 <listitem>
921 <para>parses the declarations and documentation comments in a
922 set of Java source files and produces a corresponding set of
923 HTML pages describing the classes, interfaces,constructors,
924 methods, and fields.</para>
[49b50d4]925 <indexterm zone="openjdk javadoc">
[2c25a56]926 <primary sortas="b-javadoc">javadoc</primary>
927 </indexterm>
928 </listitem>
929 </varlistentry>
930
[49b50d4]931 <varlistentry id="javah">
[2c25a56]932 <term><command>javah</command></term>
933 <listitem>
934 <para>generates C header and source files
935 that are needed to implement native methods.</para>
[49b50d4]936 <indexterm zone="openjdk javah">
[2c25a56]937 <primary sortas="b-javah">javah</primary>
938 </indexterm>
939 </listitem>
940 </varlistentry>
941
[49b50d4]942 <varlistentry id="javap">
[2c25a56]943 <term><command>javap</command></term>
944 <listitem>
945 <para>disassembles a Java class file.</para>
[49b50d4]946 <indexterm zone="openjdk javap">
[2c25a56]947 <primary sortas="b-javap">javap</primary>
948 </indexterm>
949 </listitem>
950 </varlistentry>
951
[49b50d4]952 <varlistentry id="java-rmi.cgi">
[2c25a56]953 <term><command>java-rmi.cgi</command></term>
954 <listitem>
955 <para>is the Java RMI client.</para>
[49b50d4]956 <indexterm zone="openjdk java-rmi.cgi">
[2c25a56]957 <primary sortas="b-java-rmi.cgi">java-rmi.cgi</primary>
958 </indexterm>
959 </listitem>
960 </varlistentry>
961
[49b50d4]962 <varlistentry id="jcmd">
963 <term><command>jcmd</command></term>
964 <listitem>
965 <para>is a utility to send diagnostic command requests to a running
966 Java Virtual Machine.</para>
967 <indexterm zone="openjdk jcmd">
968 <primary sortas="b-jcmd">jcmd</primary>
969 </indexterm>
970 </listitem>
971 </varlistentry>
972
973 <varlistentry id="jconsole">
[2c25a56]974 <term><command>jconsole</command></term>
975 <listitem>
976 <para>is a graphical console tool to monitor and manage both
977 local and remote Java applications and virtual machines.</para>
[49b50d4]978 <indexterm zone="openjdk jconsole">
[2c25a56]979 <primary sortas="b-jconsole">jconsole</primary>
980 </indexterm>
981 </listitem>
982 </varlistentry>
983
[49b50d4]984 <varlistentry id="jdb">
[2c25a56]985 <term><command>jdb</command></term>
986 <listitem>
987 <para>is a simple command-line debugger for Java classes.</para>
[49b50d4]988 <indexterm zone="openjdk jdb">
[2c25a56]989 <primary sortas="b-jdb">jdb</primary>
990 </indexterm>
991 </listitem>
992 </varlistentry>
993
[49b50d4]994 <varlistentry id="jhat">
[2c25a56]995 <term><command>jhat</command></term>
996 <listitem>
997 <para>parses a java heap dump file and allows viewing
[4d180035]998 in a web browser.</para>
[49b50d4]999 <indexterm zone="openjdk jhat">
[2c25a56]1000 <primary sortas="b-jhat">jhat</primary>
1001 </indexterm>
1002 </listitem>
1003 </varlistentry>
1004
[49b50d4]1005 <varlistentry id="jinfo">
[2c25a56]1006 <term><command>jinfo</command></term>
1007 <listitem>
1008 <para>prints Java configuration information for a given Java
1009 process, core file, or a remote debug server.</para>
[49b50d4]1010 <indexterm zone="openjdk jinfo">
[2c25a56]1011 <primary sortas="b-jinfo">jinfo</primary>
1012 </indexterm>
1013 </listitem>
1014 </varlistentry>
1015
[49b50d4]1016 <varlistentry id="jmap">
[2c25a56]1017 <term><command>jmap</command></term>
1018 <listitem>
1019 <para>prints shared object memory maps or heap memory details
1020 of a given process, core file, or a remote debug server.</para>
[49b50d4]1021 <indexterm zone="openjdk jmap">
[2c25a56]1022 <primary sortas="b-jmap">jmap</primary>
1023 </indexterm>
1024 </listitem>
1025 </varlistentry>
1026
[49b50d4]1027 <varlistentry id="jps">
[2c25a56]1028 <term><command>jps</command></term>
1029 <listitem>
1030 <para>lists the instrumented JVMs on the target system.</para>
[49b50d4]1031 <indexterm zone="openjdk jps">
[2c25a56]1032 <primary sortas="b-jps">jps</primary>
1033 </indexterm>
1034 </listitem>
1035 </varlistentry>
1036
[49b50d4]1037 <varlistentry id="jrunscript">
[2c25a56]1038 <term><command>jrunscript</command></term>
1039 <listitem>
1040 <para>is a command line script shell.</para>
[49b50d4]1041 <indexterm zone="openjdk jrunscript">
[2c25a56]1042 <primary sortas="b-jrunscript">jrunscript</primary>
1043 </indexterm>
1044 </listitem>
1045 </varlistentry>
1046
[49b50d4]1047 <varlistentry id="jsadebugd">
[2c25a56]1048 <term><command>jsadebugd</command></term>
1049 <listitem>
1050 <para>attaches to a Java process or core file and acts as a
1051 debug server.</para>
[49b50d4]1052 <indexterm zone="openjdk jsadebugd">
[2c25a56]1053 <primary sortas="b-jsadebugd">jsadebugd</primary>
1054 </indexterm>
1055 </listitem>
1056 </varlistentry>
1057
[49b50d4]1058 <varlistentry id="jstack">
[2c25a56]1059 <term><command>jstack</command></term>
1060 <listitem>
1061 <para>prints Java stack traces of Java threads for a given
1062 Java process, core file, or a remote debug server.</para>
[49b50d4]1063 <indexterm zone="openjdk jstack">
[2c25a56]1064 <primary sortas="b-jstack">jstack</primary>
1065 </indexterm>
1066 </listitem>
1067 </varlistentry>
1068
[49b50d4]1069 <varlistentry id="jstat">
[2c25a56]1070 <term><command>jstat</command></term>
1071 <listitem>
1072 <para>displays performance statistics for an instrumented JVM.</para>
[49b50d4]1073 <indexterm zone="openjdk jstat">
[2c25a56]1074 <primary sortas="b-jstat">jstat</primary>
1075 </indexterm>
1076 </listitem>
1077 </varlistentry>
1078
[49b50d4]1079 <varlistentry id="jstatd">
[2c25a56]1080 <term><command>jstatd</command></term>
1081 <listitem>
1082 <para>is an RMI server application that monitors for the creation
1083 and termination of instrumented JVMs.</para>
[49b50d4]1084 <indexterm zone="openjdk jstatd">
[2c25a56]1085 <primary sortas="b-jstatd">jstatd</primary>
1086 </indexterm>
1087 </listitem>
1088 </varlistentry>
1089
[49b50d4]1090 <varlistentry id="keytool">
[2c25a56]1091 <term><command>keytool</command></term>
1092 <listitem>
1093 <para>is a key and certificate management utility.</para>
[49b50d4]1094 <indexterm zone="openjdk keytool">
[2c25a56]1095 <primary sortas="b-keytool">keytool</primary>
1096 </indexterm>
1097 </listitem>
1098 </varlistentry>
1099
[486c27a]1100 <varlistentry id="mkcacerts">
1101 <term><command>mkcacerts</command></term>
1102 <listitem>
1103 <para> is a simple script to extract x509 certificates and create
1104 a JRE cacerts file using <command>keytool</command>.</para>
1105 <indexterm zone="openjdk mkcacerts">
1106 <primary sortas="b-mkcacerts">mkcacerts</primary>
1107 </indexterm>
1108 </listitem>
1109 </varlistentry>
1110
[49b50d4]1111 <varlistentry id="native2ascii">
[2c25a56]1112 <term><command>native2ascii</command></term>
1113 <listitem>
1114 <para> converts files that contain non-supported character encoding
1115 into files containing Latin-1 or Unicode-encoded characters.</para>
[49b50d4]1116 <indexterm zone="openjdk native2ascii">
[2c25a56]1117 <primary sortas="b-native2ascii">native2ascii</primary>
1118 </indexterm>
1119 </listitem>
1120 </varlistentry>
1121
[49b50d4]1122 <varlistentry id="orbd">
[2c25a56]1123 <term><command>orbd</command></term>
1124 <listitem>
1125 <para>is used to enable clients to transparently locate and invoke
1126 persistent objects on servers in the CORBA environment.</para>
[49b50d4]1127 <indexterm zone="openjdk orbd">
[2c25a56]1128 <primary sortas="b-orbd">orbd</primary>
1129 </indexterm>
1130 </listitem>
1131 </varlistentry>
1132
[49b50d4]1133 <varlistentry id="pack200">
[2c25a56]1134 <term><command>pack200</command></term>
1135 <listitem>
1136 <para>is a Java application that transforms a jar file into a
1137 compressed pack200 file using the Java gzip compressor.</para>
[49b50d4]1138 <indexterm zone="openjdk pack200">
[2c25a56]1139 <primary sortas="b-pack200">pack200</primary>
1140 </indexterm>
1141 </listitem>
1142 </varlistentry>
1143
[49b50d4]1144 <varlistentry id="policytool">
[2c25a56]1145 <term><command>policytool</command></term>
1146 <listitem>
1147 <para>creates and manages a policy file graphically.</para>
[49b50d4]1148 <indexterm zone="openjdk policytool">
[2c25a56]1149 <primary sortas="b-policytool">policytool</primary>
1150 </indexterm>
1151 </listitem>
1152 </varlistentry>
1153
[49b50d4]1154 <varlistentry id="rmic">
[2c25a56]1155 <term><command>rmic</command></term>
1156 <listitem>
1157 <para>generates stub and skeleton class files for remote objects
1158 from the names of compiled Java classes that contain remote
1159 object implementations.</para>
[49b50d4]1160 <indexterm zone="openjdk rmic">
[2c25a56]1161 <primary sortas="b-rmic">rmic</primary>
1162 </indexterm>
1163 </listitem>
1164 </varlistentry>
1165
[49b50d4]1166 <varlistentry id="rmid">
[2c25a56]1167 <term><command>rmid</command></term>
1168 <listitem>
1169 <para>starts the activation system daemon.</para>
[49b50d4]1170 <indexterm zone="openjdk rmid">
[2c25a56]1171 <primary sortas="b-rmid">rmid</primary>
1172 </indexterm>
1173 </listitem>
1174 </varlistentry>
1175
[49b50d4]1176 <varlistentry id="rmiregistry">
[2c25a56]1177 <term><command>rmiregistry</command></term>
1178 <listitem>
1179 <para>creates and starts a remote object registry on the specified
1180 port on the current host.</para>
[49b50d4]1181 <indexterm zone="openjdk rmiregistry">
[2c25a56]1182 <primary sortas="b-rmiregistry">rmiregistry</primary>
1183 </indexterm>
1184 </listitem>
1185 </varlistentry>
1186
[49b50d4]1187 <varlistentry id="schemagen">
[2c25a56]1188 <term><command>schemagen</command></term>
1189 <listitem>
1190 <para>is a Java XML binding schema generator.</para>
[49b50d4]1191 <indexterm zone="openjdk schemagen">
[2c25a56]1192 <primary sortas="b-schemagen">schemagen</primary>
1193 </indexterm>
1194 </listitem>
1195 </varlistentry>
1196
[49b50d4]1197 <varlistentry id="serialver">
[2c25a56]1198 <term><command>serialver</command></term>
1199 <listitem>
1200 <para>returns the serialVersionUID for one or more classes in a
1201 form suitable for copying into an evolving class.</para>
[49b50d4]1202 <indexterm zone="openjdk serialver">
[2c25a56]1203 <primary sortas="b-serialver">serialver</primary>
1204 </indexterm>
1205 </listitem>
1206 </varlistentry>
1207
[49b50d4]1208 <varlistentry id="servertool">
[2c25a56]1209 <term><command>servertool</command></term>
1210 <listitem>
1211 <para>provides an ease-of-use interface for application programmers
1212 to register, unregister, startup and shutdown a server.</para>
[49b50d4]1213 <indexterm zone="openjdk servertool">
[2c25a56]1214 <primary sortas="b-servertool">servertool</primary>
1215 </indexterm>
1216 </listitem>
1217 </varlistentry>
1218
[49b50d4]1219 <varlistentry id="tnameserv">
[2c25a56]1220 <term><command>tnameserv</command></term>
1221 <listitem>
1222 <para>starts the Java IDL name server.</para>
[49b50d4]1223 <indexterm zone="openjdk tnameserv">
[2c25a56]1224 <primary sortas="b-tnameserv">tnameserv</primary>
1225 </indexterm>
1226 </listitem>
1227 </varlistentry>
1228
[49b50d4]1229 <varlistentry id="unpack200">
[2c25a56]1230 <term><command>unpack200</command></term>
1231 <listitem>
1232 <para>is a native implementation that transforms a packed file
1233 produced by <application>pack200</application> into a jar
1234 file.</para>
[49b50d4]1235 <indexterm zone="openjdk unpack200">
[2c25a56]1236 <primary sortas="b-unpack200">unpack200</primary>
1237 </indexterm>
1238 </listitem>
1239 </varlistentry>
1240
[49b50d4]1241 <varlistentry id="wsgen">
[2c25a56]1242 <term><command>wsgen</command></term>
1243 <listitem>
1244 <para>generates JAX-WS portable artifacts used in JAX-WS
1245 web services.</para>
[49b50d4]1246 <indexterm zone="openjdk wsgen">
[2c25a56]1247 <primary sortas="b-wsgen">wsgen</primary>
1248 </indexterm>
1249 </listitem>
1250 </varlistentry>
1251
[49b50d4]1252 <varlistentry id="wsimport">
[2c25a56]1253 <term><command>wsimport</command></term>
1254 <listitem>
1255 <para>generates JAX-WS portable artifacts.</para>
[49b50d4]1256 <indexterm zone="openjdk wsimport">
[2c25a56]1257 <primary sortas="b-wsimport">wsimport</primary>
1258 </indexterm>
1259 </listitem>
1260 </varlistentry>
1261
[49b50d4]1262 <varlistentry id="xjc">
[2c25a56]1263 <term><command>xjc</command></term>
1264 <listitem>
1265 <para>is a Java XML binding compiler.</para>
[49b50d4]1266 <indexterm zone="openjdk xjc">
[2c25a56]1267 <primary sortas="b-xjc">xjc</primary>
1268 </indexterm>
1269 </listitem>
1270 </varlistentry>
1271
1272 </variablelist>
1273
1274 </sect2>
1275
1276</sect1>
Note: See TracBrowser for help on using the repository browser.