source: general/prog/openjdk.xml@ b1129a10

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.1 7.10 7.6 7.7 7.8 7.9 8.0 8.1 8.2 8.3 8.4 9.0 9.1 basic bdubbs/svn elogind 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 trunk upgradedb xry111/intltool xry111/llvm18 xry111/soup3 xry111/test-20220226 xry111/xf86-video-removal
Last change on this file since b1129a10 was b1129a10, checked in by Pierre Labastie <pieere@…>, 10 years ago

Minor changes to the OpenJDK/Icedtea page

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

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