source: general/prog/openjdk.xml@ 64135787

kde5-14269
Last change on this file since 64135787 was 64135787, checked in by Xi Ruoyao <xry111@…>, 3 years ago

Begin manually (while modifying stuff) merging trunk and systemd branches since revision 14087.

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

  • Property mode set to 100644
File size: 48.6 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
[64135787]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
[64135787]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">
[64135787]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">
[64135787]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">
[64135787]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">
[64135787]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">
[64135787]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">
[64135787]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">
[64135787]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
[64135787]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">
[64135787]48 <!ENTITY openjdk-time "28-36 SBU (an additional 100 SBU for testsuite)">
[2c25a56]49]>
50
[64135787]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
[64135787]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
[64135787]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>
[64135787]220 <para>
221 <ulink
222 url="&patch-root;/icedtea-&icedtea-version;-add_cacerts-1.patch"/>
223 </para>
[2c25a56]224 </listitem>
225 <listitem>
[64135787]226 <para>
227 <ulink
228 url="&patch-root;/icedtea-&icedtea-version;-fixed_paths-1.patch"/>
229 </para>
[2c25a56]230 </listitem>
[870e4acf]231 <listitem>
[64135787]232 <para>
233 <ulink
234 url="&patch-root;/icedtea-&icedtea-version;-fix_new_giflib-1.patch"/>
235 </para>
[870e4acf]236 </listitem>
[2c25a56]237 <listitem>
[64135787]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>
[64135787]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
[64135787]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
[64135787]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
[64135787]367 <note>
368 <para>
369 Before proceeding, you should ensure that your environment is
370 properly set for building <application>OpenJDK</application>. First,
371 review the content of the <envar>ANT_HOME</envar> variable.
372 Second, the <envar>PATH</envar> variable should contain the paths to
373 the <command>java</command> and <command>ant</command> executables.
374 Last, the <envar>CLASSPATH</envar> variable should be set as
375 explained on the <xref linkend="java"/> and <xref linkend="junit"/>
376 pages.
377 </para>
378 </note>
[5292423]379 <para>Configure and build the package with the following commands
[dc035e7]380 (--with-pkgversion and --with-version-suffix values can be modified to fit
381 user preferences):</para>
[2c25a56]382
[c770e18]383<screen><userinput>unset JAVA_HOME &amp;&amp;
384./autogen.sh &amp;&amp;
385./configure --with-jdk-home=/opt/OpenJDK-&openjdk-version;-bin \
[bb11ee6]386 --with-version-suffix=BLFS \
[52a4df28]387 --enable-nss \
[c770e18]388 --disable-system-kerberos \
[8824a1e]389 --with-parallel-jobs &amp;&amp;
[2c25a56]390make</userinput></screen>
391
[0d7900a]392 <note><para>If you have not installed the tarballs specified above,
[f533b0d]393 they will be automatically downloaded here.</para></note>
394
[49b50d4]395 <para>To test the results, issue: <command>make jtregcheck</command>. The
[bc00982]396 included version of <application>jtreg</application> is old, and the test
[49b50d4]397 suite is also very dependent on the host system and the environment that it
[f533b0d]398 is run in. You should expect to see anywhere between 40 and 100 failures in
399 jdk with up to 10 errors in the tests themselves. The majority of the
400 6000+ tests should pass. The reason for the greatly varying results is due
401 to how stringent the testing environment must be. Varying architectures,
402 different versions of dependent libraries, unexpected X Window environment
403 and window managers, the CA certificates used to generate the
404 <filename>cacerts</filename> file, and even any user input or power
405 management or screen saver interruptions during the testing can lead to
406 various failures. While the known broken tests have been removed, with the
407 fix_tests patch above, the graphics tests failures cannot be pre-determined
408 (short of removing them all). The best bet for the minimal number of
409 failures is to run the test suite in a framebuffer on a different screen
[e6a3602]410 (Xvfb). Even still, disk I/O can cause failures.</para>
[2c25a56]411
[52a4df28]412<screen role='nodump'><userinput>export DISPLAY=:20 &amp;&amp;
[92b1341]413Xvfb :20 -screen 0 1x1x24 -ac&amp;
414echo $!> Xvfb.pid &amp;&amp;
415make -k jtregcheck &amp;&amp;
416kill -9 `cat Xvfb.pid` &amp;&amp;
417unset DISPLAY &amp;&amp;
418rm -f Xvfb.pid</userinput></screen>
419
[2c25a56]420 <para>Install the package with the following commands as the
421 <systemitem class="username">root</systemitem> user:</para>
422
[c770e18]423<screen role="root"><userinput>chmod 0644 openjdk.build/j2sdk-image/lib/sa-jdi.jar &amp;&amp;
[f533b0d]424cp -R openjdk.build/j2sdk-image /opt/OpenJDK-&openjdk-version; &amp;&amp;
[49b50d4]425chown -R root:root /opt/OpenJDK-&openjdk-version;</userinput></screen>
[2c25a56]426
[64135787]427 <para>If desired, you may install a .desktop file corresponding to an entry
428 in a desktop menu for <command>policytool</command>. First, you need to
429 obtain an icon from <xref linkend="icedtea-web"/>:</para>
[300b4ee]430
[64135787]431<screen><userinput>tar -xf ../icedtea-web-&icedtea-web-version;.tar.gz \
[e520fdef]432 icedtea-web-&icedtea-web-version;/javaws.png \
433 --strip-components=1</userinput></screen>
434
435 <para>Now, as <systemitem class="username">root</systemitem> user:</para>
436
[64135787]437<screen role="root"><userinput>mkdir -pv /usr/share/applications &amp;&amp;
438
439cat &gt; /usr/share/applications/openjdk-7-policytool.desktop &lt;&lt; "EOF" &amp;&amp;
[300b4ee]440<literal>[Desktop Entry]
441Name=OpenJDK Java 7 Policy Tool
442Name[pt_BR]=OpenJDK Java 7 - Ferramenta de Pol&#237;tica
443Comment=OpenJDK Java 7 Policy Tool
444Comment[pt_BR]=OpenJDK Java 7 - Ferramenta de Pol&#237;tica
445Exec=/opt/jdk/bin/policytool
446Terminal=false
447Type=Application
448Icon=javaws
449Categories=Settings;</literal>
450EOF
451
[64135787]452install -v -Dm0644 javaws.png /usr/share/pixmaps/javaws.png</userinput></screen>
[e520fdef]453
[64135787]454 <para>The choice of pt_BR is just an example. You can add any translation
455 by adding lines corresponding to your locale, e.g. for fr_FR,
456 <quote>Name[fr_FR]=</quote> and <quote>Comment[fr_FR]=</quote> with the
457 appropriate text as values.</para>
[300b4ee]458
[2c25a56]459 </sect2>
460
461 <sect2 role="commands">
462 <title>Command Explanations</title>
463
464 <para><command>./autogen.sh</command>: This command forces rebuilding of
465 auto-generated files to account for new options added to
466 <filename>configure</filename>.</para>
467
468 <para><parameter>--with-jdk-home</parameter>: This switch provides the
[d3d92c8]469 location of the temporary <application>JDK</application>.</para>
[2c25a56]470
[6f01fd2e]471 <para><option>--with-pkgversion</option>: This switch can be used
[5292423]472 to modify the version string in addition to "IcedTea".</para>
473
474 <para><parameter>--with-version-suffix</parameter>: This switch appends
475 the given text to the JDK version string.</para>
476
[52a4df28]477 <para><parameter>--enable-nss</parameter>: Enable inclusion of NSS
478 security provider.</para>
479
[64135787]480 <para><parameter>--disable-system-kerberos</parameter>: Remove this switch,
[e01f402]481 if <xref linkend="mitkrb"/> is installed.</para>
482
[8824a1e]483 <para><parameter>--with-parallel-jobs</parameter>: Allows to set the number
484 of jobs for <command>make</command> equal to the number of processors plus
[383f26a]485 one. Note that the default is 2 if this option is not specified. You have to
[8824a1e]486 explicitely set <option>--with-parallel-jobs=1</option> to disable
487 parallel jobs. The SBU given above are with parallel jobs
488 disabled.</para>
[c770e18]489
[f533b0d]490 <para><command>chmod -v 0644 ...sa-jdi.jar</command>: Fix permissions
491 in a generated file so all users can access it.</para>
[8824a1e]492<!-- Now part of icedtea-sound
493 <para><option>- -enable-pulse-java</option>: This switch enables
[5889b848]494 building of the pulseaudio libraries (needed to provide a complete
495 implementation that is reasonably compatible with the proprietary
496 JDK). <xref linkend="pulseaudio"/> needs to be installed.</para>
[8824a1e]497-->
[5889b848]498
[2c25a56]499 </sect2>
500
[64135787]501 <sect2 role="configuration"
502 id="openjdk-config"
503 xreflabel="Configuring OpenJDK">
[49b50d4]504 <title>Configuring OpenJDK</title>
[2c25a56]505
506 <sect3>
507 <title>Configuration Information</title>
508
[49b50d4]509 <para>There are now two <application>OpenJDK</application> SDKs
[2c25a56]510 installed in <filename>/opt</filename>. You should decide on which one
511 you would like to use as the default. For example if you decide to use
[49b50d4]512 the precompiled <application>OpenJDK</application>, do the following as
[2c25a56]513 the <systemitem class="username">root</systemitem> user:</para>
514
[64135787]515<screen role="root"><userinput>ln -v -nsf OpenJDK-&openjdk-version;-bin /opt/jdk</userinput></screen>
[2c25a56]516
[f533b0d]517 <para>The information below assumes your system is set up using the
518 instructions found in <quote><xref
519 linkend="postlfs-config-profile"/></quote>. You may need to extract the
520 relevant information below and incorporate it into your system's startup
521 files if your system is set up differently.</para>
[2c25a56]522
[f533b0d]523 <para>Add the following <filename>openjdk.sh</filename> shell startup
524 file to the <filename>/etc/profile.d</filename> directory with the
525 following commands as the <systemitem class="username">root</systemitem>
526 user:</para>
[2c25a56]527
[64135787]528<screen role="root"><userinput>cat &gt; /etc/profile.d/openjdk.sh &lt;&lt; "EOF"
[49b50d4]529<literal># Begin /etc/profile.d/openjdk.sh
[2c25a56]530
531# Set JAVA_HOME directory
[f533b0d]532JAVA_HOME=/opt/jdk
[2c25a56]533
[64135787]534# Set ANT_HOME directory
535ANT_HOME=/opt/ant
536
[2c25a56]537# Adjust PATH
[f533b0d]538pathappend $JAVA_HOME/bin PATH
[64135787]539pathappend $ANT_HOME/bin PATH
[2c25a56]540
[ef5eb8e]541pathappend $JAVA_HOME/include C_INCLUDE_PATH
542pathappend $JAVA_HOME/include/linux C_INCLUDE_PATH
543pathappend $JAVA_HOME/include CPLUS_INCLUDE_PATH
544pathappend $JAVA_HOME/include/linux CPLUS_INCLUDE_PATH
545
[2c25a56]546# Auto Java CLASSPATH
547# Copy jar files to, or create symlinks in this directory
[f533b0d]548
[2c25a56]549AUTO_CLASSPATH_DIR=/usr/share/java
[f533b0d]550
[2c25a56]551pathprepend . CLASSPATH
[f533b0d]552
[2c25a56]553for dir in `find ${AUTO_CLASSPATH_DIR} -type d 2>/dev/null`; do
554 pathappend $dir CLASSPATH
555done
[f533b0d]556
[49b50d4]557for jar in `find ${AUTO_CLASSPATH_DIR} -name "*.jar" 2>/dev/null`; do
558 pathappend $jar CLASSPATH
559done
[2c25a56]560
[ef5eb8e]561export JAVA_HOME CLASSPATH C_INCLUDE_PATH CPLUS_INCLUDE_PATH
[f533b0d]562unset AUTO_CLASSPATH_DIR dir jar
[2c25a56]563
[49b50d4]564# End /etc/profile.d/openjdk.sh</literal>
[2c25a56]565EOF</userinput></screen>
566
[49b50d4]567 <para>Finally, add the man pages to <application>man_db</application>'s
568 configuration. As the <systemitem class="username">root</systemitem>
569 user:</para>
[2c25a56]570
[300b4ee]571<screen role="root"><userinput>cat >> /etc/profile.d/extrapaths.sh &lt;&lt; "EOF" &amp;&amp;
572# Begin Java addition
573<literal>pathappend /opt/jdk/man MANPATH
574# End Java addition</literal>
575EOF
576
577
578cat &gt;&gt; /etc/man_db.conf &lt;&lt; "EOF" &amp;&amp;
579<literal># Begin Java addition
580MANDATORY_MANPATH /opt/jdk/man
[f533b0d]581MANPATH_MAP /opt/jdk/bin /opt/jdk/man
[300b4ee]582MANDB_MAP /opt/jdk/man /var/cache/man/jdk
583# End Java addition</literal>
[49b50d4]584EOF
[b4289bcc]585
586mandb -c /opt/jdk/man</userinput></screen>
[2c25a56]587
[64135787]588 <para>To test if the man pages are correctly installed, issue
589 <command>source /etc/profile</command> and <command>man java</command> to
590 display the respective man page.</para>
[300b4ee]591
[2c25a56]592 </sect3>
593
[8b9034a]594 <sect3 id='ojdk-certs'>
[64135787]595 <title>Install or update the JRE Certificate Authority Certificates
596 (cacerts) file</title>
[8b9034a]597
[930d280b]598 <para>Use the following procedure to check if the
599 <filename>cacerts</filename> file was successfully installed during the
600 OpenJDK build. Also, if the <xref linkend="cacerts"/> have been updated,
601 the following instructions will generate a new JRE
602 <filename>cacerts</filename> file. First, check if the
[8b9034a]603 <filename>cacerts</filename> have been successfully installed: </para>
604
605<screen role="root"><userinput>cd /opt/jdk
606bin/keytool -list -keystore jre/lib/security/cacerts</userinput></screen>
607
608 <para>At the prompt "Enter keystore password:", press the "Enter" key if
609 there is no keystore password defined. If the
[930d280b]610 <filename>cacerts</filename> were installed correctly, you will see a
[8b9034a]611 list of the certificates with related information for each one. If not,
612 you need to manually install them. First, generate the
613 <command>mkcacerts</command> script as the
614 <systemitem class="username">root</systemitem> user:</para>
615
616<screen role="root"><userinput>cat &gt; /opt/jdk/bin/mkcacerts &lt;&lt; "EOF"
617<literal>#!/bin/sh
618# Simple script to extract x509 certificates and create a JRE cacerts file.
619
620function get_args()
621 {
622 if test -z "${1}" ; then
623 showhelp
624 exit 1
625 fi
626
627 while test -n "${1}" ; do
628 case "${1}" in
629 -f | --cafile)
630 check_arg $1 $2
631 CAFILE="${2}"
632 shift 2
633 ;;
634 -d | --cadir)
635 check_arg $1 $2
636 CADIR="${2}"
637 shift 2
638 ;;
639 -o | --outfile)
640 check_arg $1 $2
641 OUTFILE="${2}"
642 shift 2
643 ;;
644 -k | --keytool)
645 check_arg $1 $2
646 KEYTOOL="${2}"
647 shift 2
648 ;;
649 -s | --openssl)
650 check_arg $1 $2
651 OPENSSL="${2}"
652 shift 2
653 ;;
654 -h | --help)
655 showhelp
656 exit 0
657 ;;
658 *)
659 showhelp
660 exit 1
661 ;;
662 esac
663 done
664 }
665
666function check_arg()
667 {
668 echo "${2}" | grep -v "^-" > /dev/null
669 if [ -z "$?" -o ! -n "$2" ]; then
670 echo "Error: $1 requires a valid argument."
671 exit 1
672 fi
673 }
674
675# The date binary is not reliable on 32bit systems for dates after 2038
676function mydate()
677 {
678 local y=$( echo $1 | cut -d" " -f4 )
679 local M=$( echo $1 | cut -d" " -f1 )
680 local d=$( echo $1 | cut -d" " -f2 )
681 local m
682
683 if [ ${d} -lt 10 ]; then d="0${d}"; fi
684
685 case $M in
686 Jan) m="01";;
687 Feb) m="02";;
688 Mar) m="03";;
689 Apr) m="04";;
690 May) m="05";;
691 Jun) m="06";;
692 Jul) m="07";;
693 Aug) m="08";;
694 Sep) m="09";;
695 Oct) m="10";;
696 Nov) m="11";;
697 Dec) m="12";;
698 esac
699
700 certdate="${y}${m}${d}"
701 }
702
703function showhelp()
704 {
705 echo "`basename ${0}` creates a valid cacerts file for use with IcedTea."
706 echo ""
[64135787]707 echo " -f --cafile The path to a file containing PEM"
708 echo " formated CA certificates. May not be"
709 echo " used with -d/--cadir."
710 echo ""
711 echo " -d --cadir The path to a directory of PEM formatted"
712 echo " CA certificates. May not be used with"
713 echo " -f/--cafile."
714 echo ""
715 echo " -o --outfile The path to the output file."
[8b9034a]716 echo ""
[64135787]717 echo " -k --keytool The path to the java keytool utility."
[8b9034a]718 echo ""
[64135787]719 echo " -s --openssl The path to the openssl utility."
[8b9034a]720 echo ""
[64135787]721 echo " -h --help Show this help message and exit."
[8b9034a]722 echo ""
723 echo ""
724 }
725
[a407a1c]726# Initialize empty variables so that the shell does not pollute the script
[8b9034a]727CAFILE=""
728CADIR=""
729OUTFILE=""
730OPENSSL=""
731KEYTOOL=""
732certdate=""
733date=""
734today=$( date +%Y%m%d )
735
736# Process command line arguments
737get_args ${@}
738
739# Handle common errors
740if test "${CAFILE}x" == "x" -a "${CADIR}x" == "x" ; then
741 echo "ERROR! You must provide an x509 certificate store!"
742 echo "\'$(basename ${0}) --help\' for more info."
743 echo ""
744 exit 1
745fi
746
747if test "${CAFILE}x" != "x" -a "${CADIR}x" != "x" ; then
748 echo "ERROR! You cannot provide two x509 certificate stores!"
749 echo "\'$(basename ${0}) --help\' for more info."
750 echo ""
751 exit 1
752fi
753
754if test "${KEYTOOL}x" == "x" ; then
755 echo "ERROR! You must provide a valid keytool program!"
756 echo "\'$(basename ${0}) --help\' for more info."
757 echo ""
758 exit 1
759fi
760
761if test "${OPENSSL}x" == "x" ; then
762 echo "ERROR! You must provide a valid path to openssl!"
763 echo "\'$(basename ${0}) --help\' for more info."
764 echo ""
765 exit 1
766fi
767
768if test "${OUTFILE}x" == "x" ; then
769 echo "ERROR! You must provide a valid output file!"
770 echo "\'$(basename ${0}) --help\' for more info."
771 echo ""
772 exit 1
773fi
774
775# Get on with the work
776
777# If using a CAFILE, split it into individual files in a temp directory
778if test "${CAFILE}x" != "x" ; then
779 TEMPDIR=`mktemp -d`
780 CADIR="${TEMPDIR}"
781
782 # Get a list of staring lines for each cert
783 CERTLIST=`grep -n "^-----BEGIN" "${CAFILE}" | cut -d ":" -f 1`
784
785 # Get a list of ending lines for each cert
786 ENDCERTLIST=`grep -n "^-----END" "${CAFILE}" | cut -d ":" -f 1`
787
788 # Start a loop
789 for certbegin in `echo "${CERTLIST}"` ; do
790 for certend in `echo "${ENDCERTLIST}"` ; do
791 if test "${certend}" -gt "${certbegin}"; then
792 break
793 fi
794 done
795 sed -n "${certbegin},${certend}p" "${CAFILE}" > "${CADIR}/${certbegin}.pem"
796 keyhash=`${OPENSSL} x509 -noout -in "${CADIR}/${certbegin}.pem" -hash`
797 echo "Generated PEM file with hash: ${keyhash}."
798 done
799fi
800
801# Write the output file
802for cert in `find "${CADIR}" -type f -name "*.pem" -o -name "*.crt"`
803do
804
805 # Make sure the certificate date is valid...
806 date=$( ${OPENSSL} x509 -enddate -in "${cert}" -noout | sed 's/^notAfter=//' )
807 mydate "${date}"
808 if test "${certdate}" -lt "${today}" ; then
809 echo "${cert} expired on ${certdate}! Skipping..."
810 unset date certdate
811 continue
812 fi
813 unset date certdate
814 ls "${cert}"
815 tempfile=`mktemp`
816 certbegin=`grep -n "^-----BEGIN" "${cert}" | cut -d ":" -f 1`
817 certend=`grep -n "^-----END" "${cert}" | cut -d ":" -f 1`
818 sed -n "${certbegin},${certend}p" "${cert}" > "${tempfile}"
[64135787]819 echo yes | env LC_ALL=C "${KEYTOOL}" -import \
820 -alias `basename "${cert}"` \
821 -keystore "${OUTFILE}" \
822 -storepass 'changeit' \
823 -file "${tempfile}"
[8b9034a]824 rm "${tempfile}"
825done
826
827if test "${TEMPDIR}x" != "x" ; then
828 rm -rf "${TEMPDIR}"
829fi
830exit 0</literal>
831EOF
832
833chmod -c 0755 /opt/jdk/bin/mkcacerts</userinput></screen>
834
835 <note>
836 <para>
837 Doing a very large copy/paste directly to a terminal may result in a
838 corrupted file. Copying to an editor may overcome this issue.
839 </para>
840 </note>
841
[8824a1e]842 <para>If you need to generate a <filename>cacerts</filename> file,
843 and there is already one in
844 <filename class="directory">/opt/jdk/jre/lib/security</filename>, it
845 is better to make a backup. Then, you can create a new one, as the
[8b9034a]846 <systemitem class="username">root</systemitem> user:</para>
847
[64135787]848<screen role="root"><userinput>/opt/jdk/bin/mkcacerts \
849 -d "/etc/ssl/certs/" \
850 -k "/opt/jdk/bin/keytool" \
851 -s "/usr/bin/openssl" \
852 -o "/opt/jdk/jre/lib/security/cacerts"</userinput></screen>
[8b9034a]853
854 </sect3>
855
[2c25a56]856 </sect2>
857
858 <sect2 role="content">
859 <title>Contents</title>
860
861 <segmentedlist>
862 <segtitle>Installed Programs</segtitle>
863 <segtitle>Installed Libraries</segtitle>
864 <segtitle>Installed Directory</segtitle>
865
866 <seglistitem>
[49b50d4]867 <seg>appletviewer, apt, extcheck, idlj, jar,
[2c25a56]868 jarsigner, java, javac, javadoc, javah, javap, java-rmi.cgi,
[49b50d4]869 jcmd, jconsole, jdb, jhat, jinfo, jmap, jps,
[64135787]870 jrunscript, jsadebugd, jstack, jstat, jstatd, keytool, mkcacerts,
[2c25a56]871 native2ascii, orbd, pack200, policytool, rmic, rmid, rmiregistry,
872 schemagen, serialver, servertool, tnameserv, unpack200,
873 wsgen, wsimport, and xjc</seg>
[4d180035]874 <seg>/opt/OpenJDK-&openjdk-version;/lib/*, and
875 /opt/OpenJDK-&openjdk-version;/jre/lib/*</seg>
876 <seg>/opt/OpenJDK-&openjdk-version;</seg>
[2c25a56]877 </seglistitem>
878 </segmentedlist>
879
880 <variablelist>
881 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
882 <?dbfo list-presentation="list"?>
883 <?dbhtml list-presentation="table"?>
884
[49b50d4]885 <varlistentry id="appletviewer">
886 <term><command>appletviewer</command></term>
887 <listitem>
888 <para>allows you to run applets outside of a web browser.</para>
889 <indexterm zone="openjdk appletviewer">
890 <primary sortas="b-appletviewer">appletviewer</primary>
891 </indexterm>
892 </listitem>
893 </varlistentry>
894
895 <varlistentry id="apt">
[2c25a56]896 <term><command>apt</command></term>
897 <listitem>
898 <para>is an annotation processing tool.</para>
[49b50d4]899 <indexterm zone="openjdk apt">
[2c25a56]900 <primary sortas="b-apt">apt</primary>
901 </indexterm>
902 </listitem>
903 </varlistentry>
904
[49b50d4]905 <varlistentry id="extcheck">
[2c25a56]906 <term><command>extcheck</command></term>
907 <listitem>
908 <para>checks a specified jar file for title and version conflicts
[49b50d4]909 with any extensions installed in the
910 <application>OpenJDK</application> software.</para>
911 <indexterm zone="openjdk extcheck">
[2c25a56]912 <primary sortas="b-extcheck">extcheck</primary>
913 </indexterm>
914 </listitem>
915 </varlistentry>
916
[49b50d4]917 <varlistentry id="idlj">
[2c25a56]918 <term><command>idlj</command></term>
919 <listitem>
920 <para>generates Java bindings from a given IDL file.</para>
[49b50d4]921 <indexterm zone="openjdk idlj">
[2c25a56]922 <primary sortas="b-idlj">idlj</primary>
923 </indexterm>
924 </listitem>
925 </varlistentry>
926
[49b50d4]927 <varlistentry id="jar">
[2c25a56]928 <term><command>jar</command></term>
929 <listitem>
930 <para>combines multiple files into a single jar archive.</para>
[49b50d4]931 <indexterm zone="openjdk jar">
[2c25a56]932 <primary sortas="b-jar">jar</primary>
933 </indexterm>
934 </listitem>
935 </varlistentry>
936
[49b50d4]937 <varlistentry id="jarsigner">
[2c25a56]938 <term><command>jarsigner</command></term>
939 <listitem>
940 <para>signs jar files and verifies the signatures and integrity
941 of a signed jar file.</para>
[49b50d4]942 <indexterm zone="openjdk jarsigner">
[2c25a56]943 <primary sortas="b-jarsigner">jarsigner</primary>
944 </indexterm>
945 </listitem>
946 </varlistentry>
947
[784a1a7f]948 <varlistentry id="java-prog">
[2c25a56]949 <term><command>java</command></term>
950 <listitem>
951 <para>launches a Java application by starting a Java runtime
952 environment, loading a specified class and invoking its main
953 method.</para>
[784a1a7f]954 <indexterm zone="openjdk java-prog">
955 <primary sortas="b-java-prog">java</primary>
[2c25a56]956 </indexterm>
957 </listitem>
958 </varlistentry>
959
[49b50d4]960 <varlistentry id="javac">
[2c25a56]961 <term><command>javac</command></term>
962 <listitem>
963 <para>reads class and interface definitions, written in the
964 Java programming language, and compiles them into bytecode
965 class files.</para>
[49b50d4]966 <indexterm zone="openjdk javac">
[2c25a56]967 <primary sortas="b-javac">javac</primary>
968 </indexterm>
969 </listitem>
970 </varlistentry>
971
[49b50d4]972 <varlistentry id="javadoc">
[2c25a56]973 <term><command>javadoc</command></term>
974 <listitem>
975 <para>parses the declarations and documentation comments in a
976 set of Java source files and produces a corresponding set of
977 HTML pages describing the classes, interfaces,constructors,
978 methods, and fields.</para>
[49b50d4]979 <indexterm zone="openjdk javadoc">
[2c25a56]980 <primary sortas="b-javadoc">javadoc</primary>
981 </indexterm>
982 </listitem>
983 </varlistentry>
984
[49b50d4]985 <varlistentry id="javah">
[2c25a56]986 <term><command>javah</command></term>
987 <listitem>
988 <para>generates C header and source files
989 that are needed to implement native methods.</para>
[49b50d4]990 <indexterm zone="openjdk javah">
[2c25a56]991 <primary sortas="b-javah">javah</primary>
992 </indexterm>
993 </listitem>
994 </varlistentry>
995
[49b50d4]996 <varlistentry id="javap">
[2c25a56]997 <term><command>javap</command></term>
998 <listitem>
999 <para>disassembles a Java class file.</para>
[49b50d4]1000 <indexterm zone="openjdk javap">
[2c25a56]1001 <primary sortas="b-javap">javap</primary>
1002 </indexterm>
1003 </listitem>
1004 </varlistentry>
1005
[49b50d4]1006 <varlistentry id="java-rmi.cgi">
[2c25a56]1007 <term><command>java-rmi.cgi</command></term>
1008 <listitem>
1009 <para>is the Java RMI client.</para>
[49b50d4]1010 <indexterm zone="openjdk java-rmi.cgi">
[2c25a56]1011 <primary sortas="b-java-rmi.cgi">java-rmi.cgi</primary>
1012 </indexterm>
1013 </listitem>
1014 </varlistentry>
1015
[49b50d4]1016 <varlistentry id="jcmd">
1017 <term><command>jcmd</command></term>
1018 <listitem>
1019 <para>is a utility to send diagnostic command requests to a running
1020 Java Virtual Machine.</para>
1021 <indexterm zone="openjdk jcmd">
1022 <primary sortas="b-jcmd">jcmd</primary>
1023 </indexterm>
1024 </listitem>
1025 </varlistentry>
1026
1027 <varlistentry id="jconsole">
[2c25a56]1028 <term><command>jconsole</command></term>
1029 <listitem>
1030 <para>is a graphical console tool to monitor and manage both
1031 local and remote Java applications and virtual machines.</para>
[49b50d4]1032 <indexterm zone="openjdk jconsole">
[2c25a56]1033 <primary sortas="b-jconsole">jconsole</primary>
1034 </indexterm>
1035 </listitem>
1036 </varlistentry>
1037
[49b50d4]1038 <varlistentry id="jdb">
[2c25a56]1039 <term><command>jdb</command></term>
1040 <listitem>
1041 <para>is a simple command-line debugger for Java classes.</para>
[49b50d4]1042 <indexterm zone="openjdk jdb">
[2c25a56]1043 <primary sortas="b-jdb">jdb</primary>
1044 </indexterm>
1045 </listitem>
1046 </varlistentry>
1047
[49b50d4]1048 <varlistentry id="jhat">
[2c25a56]1049 <term><command>jhat</command></term>
1050 <listitem>
1051 <para>parses a java heap dump file and allows viewing
[4d180035]1052 in a web browser.</para>
[49b50d4]1053 <indexterm zone="openjdk jhat">
[2c25a56]1054 <primary sortas="b-jhat">jhat</primary>
1055 </indexterm>
1056 </listitem>
1057 </varlistentry>
1058
[49b50d4]1059 <varlistentry id="jinfo">
[2c25a56]1060 <term><command>jinfo</command></term>
1061 <listitem>
1062 <para>prints Java configuration information for a given Java
1063 process, core file, or a remote debug server.</para>
[49b50d4]1064 <indexterm zone="openjdk jinfo">
[2c25a56]1065 <primary sortas="b-jinfo">jinfo</primary>
1066 </indexterm>
1067 </listitem>
1068 </varlistentry>
1069
[49b50d4]1070 <varlistentry id="jmap">
[2c25a56]1071 <term><command>jmap</command></term>
1072 <listitem>
1073 <para>prints shared object memory maps or heap memory details
1074 of a given process, core file, or a remote debug server.</para>
[49b50d4]1075 <indexterm zone="openjdk jmap">
[2c25a56]1076 <primary sortas="b-jmap">jmap</primary>
1077 </indexterm>
1078 </listitem>
1079 </varlistentry>
1080
[49b50d4]1081 <varlistentry id="jps">
[2c25a56]1082 <term><command>jps</command></term>
1083 <listitem>
1084 <para>lists the instrumented JVMs on the target system.</para>
[49b50d4]1085 <indexterm zone="openjdk jps">
[2c25a56]1086 <primary sortas="b-jps">jps</primary>
1087 </indexterm>
1088 </listitem>
1089 </varlistentry>
1090
[49b50d4]1091 <varlistentry id="jrunscript">
[2c25a56]1092 <term><command>jrunscript</command></term>
1093 <listitem>
1094 <para>is a command line script shell.</para>
[49b50d4]1095 <indexterm zone="openjdk jrunscript">
[2c25a56]1096 <primary sortas="b-jrunscript">jrunscript</primary>
1097 </indexterm>
1098 </listitem>
1099 </varlistentry>
1100
[49b50d4]1101 <varlistentry id="jsadebugd">
[2c25a56]1102 <term><command>jsadebugd</command></term>
1103 <listitem>
1104 <para>attaches to a Java process or core file and acts as a
1105 debug server.</para>
[49b50d4]1106 <indexterm zone="openjdk jsadebugd">
[2c25a56]1107 <primary sortas="b-jsadebugd">jsadebugd</primary>
1108 </indexterm>
1109 </listitem>
1110 </varlistentry>
1111
[49b50d4]1112 <varlistentry id="jstack">
[2c25a56]1113 <term><command>jstack</command></term>
1114 <listitem>
1115 <para>prints Java stack traces of Java threads for a given
1116 Java process, core file, or a remote debug server.</para>
[49b50d4]1117 <indexterm zone="openjdk jstack">
[2c25a56]1118 <primary sortas="b-jstack">jstack</primary>
1119 </indexterm>
1120 </listitem>
1121 </varlistentry>
1122
[49b50d4]1123 <varlistentry id="jstat">
[2c25a56]1124 <term><command>jstat</command></term>
1125 <listitem>
1126 <para>displays performance statistics for an instrumented JVM.</para>
[49b50d4]1127 <indexterm zone="openjdk jstat">
[2c25a56]1128 <primary sortas="b-jstat">jstat</primary>
1129 </indexterm>
1130 </listitem>
1131 </varlistentry>
1132
[49b50d4]1133 <varlistentry id="jstatd">
[2c25a56]1134 <term><command>jstatd</command></term>
1135 <listitem>
1136 <para>is an RMI server application that monitors for the creation
1137 and termination of instrumented JVMs.</para>
[49b50d4]1138 <indexterm zone="openjdk jstatd">
[2c25a56]1139 <primary sortas="b-jstatd">jstatd</primary>
1140 </indexterm>
1141 </listitem>
1142 </varlistentry>
1143
[49b50d4]1144 <varlistentry id="keytool">
[2c25a56]1145 <term><command>keytool</command></term>
1146 <listitem>
1147 <para>is a key and certificate management utility.</para>
[49b50d4]1148 <indexterm zone="openjdk keytool">
[2c25a56]1149 <primary sortas="b-keytool">keytool</primary>
1150 </indexterm>
1151 </listitem>
1152 </varlistentry>
1153
[64135787]1154 <varlistentry id="mkcacerts">
1155 <term><command>mkcacerts</command></term>
1156 <listitem>
1157 <para> is a simple script to extract x509 certificates and create
1158 a JRE cacerts file using <command>keytool</command>.</para>
1159 <indexterm zone="openjdk mkcacerts">
1160 <primary sortas="b-mkcacerts">mkcacerts</primary>
1161 </indexterm>
1162 </listitem>
1163 </varlistentry>
1164
[49b50d4]1165 <varlistentry id="native2ascii">
[2c25a56]1166 <term><command>native2ascii</command></term>
1167 <listitem>
1168 <para> converts files that contain non-supported character encoding
1169 into files containing Latin-1 or Unicode-encoded characters.</para>
[49b50d4]1170 <indexterm zone="openjdk native2ascii">
[2c25a56]1171 <primary sortas="b-native2ascii">native2ascii</primary>
1172 </indexterm>
1173 </listitem>
1174 </varlistentry>
1175
[49b50d4]1176 <varlistentry id="orbd">
[2c25a56]1177 <term><command>orbd</command></term>
1178 <listitem>
1179 <para>is used to enable clients to transparently locate and invoke
1180 persistent objects on servers in the CORBA environment.</para>
[49b50d4]1181 <indexterm zone="openjdk orbd">
[2c25a56]1182 <primary sortas="b-orbd">orbd</primary>
1183 </indexterm>
1184 </listitem>
1185 </varlistentry>
1186
[49b50d4]1187 <varlistentry id="pack200">
[2c25a56]1188 <term><command>pack200</command></term>
1189 <listitem>
1190 <para>is a Java application that transforms a jar file into a
1191 compressed pack200 file using the Java gzip compressor.</para>
[49b50d4]1192 <indexterm zone="openjdk pack200">
[2c25a56]1193 <primary sortas="b-pack200">pack200</primary>
1194 </indexterm>
1195 </listitem>
1196 </varlistentry>
1197
[49b50d4]1198 <varlistentry id="policytool">
[2c25a56]1199 <term><command>policytool</command></term>
1200 <listitem>
1201 <para>creates and manages a policy file graphically.</para>
[49b50d4]1202 <indexterm zone="openjdk policytool">
[2c25a56]1203 <primary sortas="b-policytool">policytool</primary>
1204 </indexterm>
1205 </listitem>
1206 </varlistentry>
1207
[49b50d4]1208 <varlistentry id="rmic">
[2c25a56]1209 <term><command>rmic</command></term>
1210 <listitem>
1211 <para>generates stub and skeleton class files for remote objects
1212 from the names of compiled Java classes that contain remote
1213 object implementations.</para>
[49b50d4]1214 <indexterm zone="openjdk rmic">
[2c25a56]1215 <primary sortas="b-rmic">rmic</primary>
1216 </indexterm>
1217 </listitem>
1218 </varlistentry>
1219
[49b50d4]1220 <varlistentry id="rmid">
[2c25a56]1221 <term><command>rmid</command></term>
1222 <listitem>
1223 <para>starts the activation system daemon.</para>
[49b50d4]1224 <indexterm zone="openjdk rmid">
[2c25a56]1225 <primary sortas="b-rmid">rmid</primary>
1226 </indexterm>
1227 </listitem>
1228 </varlistentry>
1229
[49b50d4]1230 <varlistentry id="rmiregistry">
[2c25a56]1231 <term><command>rmiregistry</command></term>
1232 <listitem>
1233 <para>creates and starts a remote object registry on the specified
1234 port on the current host.</para>
[49b50d4]1235 <indexterm zone="openjdk rmiregistry">
[2c25a56]1236 <primary sortas="b-rmiregistry">rmiregistry</primary>
1237 </indexterm>
1238 </listitem>
1239 </varlistentry>
1240
[49b50d4]1241 <varlistentry id="schemagen">
[2c25a56]1242 <term><command>schemagen</command></term>
1243 <listitem>
1244 <para>is a Java XML binding schema generator.</para>
[49b50d4]1245 <indexterm zone="openjdk schemagen">
[2c25a56]1246 <primary sortas="b-schemagen">schemagen</primary>
1247 </indexterm>
1248 </listitem>
1249 </varlistentry>
1250
[49b50d4]1251 <varlistentry id="serialver">
[2c25a56]1252 <term><command>serialver</command></term>
1253 <listitem>
1254 <para>returns the serialVersionUID for one or more classes in a
1255 form suitable for copying into an evolving class.</para>
[49b50d4]1256 <indexterm zone="openjdk serialver">
[2c25a56]1257 <primary sortas="b-serialver">serialver</primary>
1258 </indexterm>
1259 </listitem>
1260 </varlistentry>
1261
[49b50d4]1262 <varlistentry id="servertool">
[2c25a56]1263 <term><command>servertool</command></term>
1264 <listitem>
1265 <para>provides an ease-of-use interface for application programmers
1266 to register, unregister, startup and shutdown a server.</para>
[49b50d4]1267 <indexterm zone="openjdk servertool">
[2c25a56]1268 <primary sortas="b-servertool">servertool</primary>
1269 </indexterm>
1270 </listitem>
1271 </varlistentry>
1272
[49b50d4]1273 <varlistentry id="tnameserv">
[2c25a56]1274 <term><command>tnameserv</command></term>
1275 <listitem>
1276 <para>starts the Java IDL name server.</para>
[49b50d4]1277 <indexterm zone="openjdk tnameserv">
[2c25a56]1278 <primary sortas="b-tnameserv">tnameserv</primary>
1279 </indexterm>
1280 </listitem>
1281 </varlistentry>
1282
[49b50d4]1283 <varlistentry id="unpack200">
[2c25a56]1284 <term><command>unpack200</command></term>
1285 <listitem>
1286 <para>is a native implementation that transforms a packed file
1287 produced by <application>pack200</application> into a jar
1288 file.</para>
[49b50d4]1289 <indexterm zone="openjdk unpack200">
[2c25a56]1290 <primary sortas="b-unpack200">unpack200</primary>
1291 </indexterm>
1292 </listitem>
1293 </varlistentry>
1294
[49b50d4]1295 <varlistentry id="wsgen">
[2c25a56]1296 <term><command>wsgen</command></term>
1297 <listitem>
1298 <para>generates JAX-WS portable artifacts used in JAX-WS
1299 web services.</para>
[49b50d4]1300 <indexterm zone="openjdk wsgen">
[2c25a56]1301 <primary sortas="b-wsgen">wsgen</primary>
1302 </indexterm>
1303 </listitem>
1304 </varlistentry>
1305
[49b50d4]1306 <varlistentry id="wsimport">
[2c25a56]1307 <term><command>wsimport</command></term>
1308 <listitem>
1309 <para>generates JAX-WS portable artifacts.</para>
[49b50d4]1310 <indexterm zone="openjdk wsimport">
[2c25a56]1311 <primary sortas="b-wsimport">wsimport</primary>
1312 </indexterm>
1313 </listitem>
1314 </varlistentry>
1315
[49b50d4]1316 <varlistentry id="xjc">
[2c25a56]1317 <term><command>xjc</command></term>
1318 <listitem>
1319 <para>is a Java XML binding compiler.</para>
[49b50d4]1320 <indexterm zone="openjdk xjc">
[2c25a56]1321 <primary sortas="b-xjc">xjc</primary>
1322 </indexterm>
1323 </listitem>
1324 </varlistentry>
1325
1326 </variablelist>
1327
1328 </sect2>
1329
1330</sect1>
Note: See TracBrowser for help on using the repository browser.