source: general/prog/openjdk.xml@ 170e308

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.1 kea ken/TL2024 ken/inkscape-core-mods ken/tuningfonts lazarus lxqt 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 170e308 was 10b16af, checked in by Pierre Labastie <pieere@…>, 4 years ago

Fix openjdk fopr glibc-32

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

  • Property mode set to 100644
File size: 32.8 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
[d61ead0a]7 <!ENTITY ojdk-tarball "jdk-&openjdk-version;+&openjdk-build;.tar.bz2">
[3db7af8]8 <!ENTITY ojdk-repo "http://hg.openjdk.java.net/jdk-updates/jdk14u">
[042f456]9 <!ENTITY ojdk-download "&ojdk-repo;/archive/&ojdk-tarball;">
[49b50d4]10
[a29486e4]11 <!ENTITY anduin-download "&sources-anduin-http;/OpenJDK/OpenJDK-&openjdk-version;">
[49b50d4]12
[3db7af8]13 <!ENTITY ojdk-md5sum "bf287746bb1be5e0d94c27e3d79d800e">
[c7a230b]14 <!ENTITY ojdk-size "80 MB">
[d2cb534]15
[fedac85]16 <!ENTITY jtreg-version "4.2-b13-517">
[55bcdd7]17 <!ENTITY jtreg-download "&anduin-download;/jtreg-&jtreg-version;.tar.gz">
[fedac85]18 <!ENTITY jtreg-md5sum "ffcef8f1caa5c22f4d006fb82e074de4">
[91a82cb]19 <!ENTITY jtreg-size "6.8 MB">
[d61ead0a]20
[3db7af8]21 <!ENTITY ojdk-bdsize "5.3 GB (an additional 394 MB for tests)">
22 <!ENTITY ojdk-time "4.5 SBU with 4 jobs (an additional 51 SBU for tests with 4 jobs)">
[2c25a56]23]>
24
[bf7a1821]25<sect1 id="openjdk" xreflabel="OpenJDK-&openjdk-version;">
[49b50d4]26 <?dbhtml filename="openjdk.html" ?>
[2c25a56]27
28 <sect1info>
29 <othername>$LastChangedBy$</othername>
30 <date>$Date$</date>
31 </sect1info>
32
[042f456]33 <title>OpenJDK-&openjdk-version;</title>
[2c25a56]34
[49b50d4]35 <indexterm zone="openjdk">
36 <primary sortas="a-OpenJDK">OpenJDK</primary>
[2c25a56]37 </indexterm>
38
39 <sect2 role="package">
[042f456]40 <title>Introduction to OpenJDK</title>
41
42 <para>
43 <application>OpenJDK</application> is an open-source implementation
44 of Oracle's Java Standard Edition platform.
45 <application>OpenJDK</application> is useful for developing
46 <application>Java</application> programs, and provides a complete
47 runtime environment to run <application>Java</application> programs.
48 </para>
[2c25a56]49
[88377804]50 &lfs10_checked;
[c599277]51
[042f456]52 <para>
53 OpenJDK is GPL'd code, with a special exception made for non-free
54 projects to use these classes in their proprietary products.
55 In similar fashion to the LGPL, which allows non-free programs to link
56 to libraries provided by free software, the
57 <ulink url="http://openjdk.java.net/legal/gplv2+ce.html">GNU
58 General Public License, version 2, with the Classpath Exception</ulink>
59 allows third party programs to use classes provided by free software
60 without the requirement that the third party software also be free. As
61 with the LGPL, any modifications made to the free software portions of a
62 third party application, must also be made freely available.
63 </para>
[2c25a56]64
65 <note>
[042f456]66 <para>
67 The <application>OpenJDK</application> source includes a very
68 thorough, open source test suite using the
69 <application>JTreg</application> test harness. The testing instructions
70 below allow to test the just built JDK for reasonable compatibility
71 with the proprietary Oracle JDK. However, in order for an independent
72 implementation to claim compatibility, it must pass a proprietary
73 <application>JCK/TCK</application> test suite. No claims of
74 compatibility, even partial compatibility, may be made without passing
75 an approved test suite.
76 </para>
77
78 <para>
79 Oracle does provide free community access, on a case by case basis, to
80 a closed toolkit to ensure 100% compatibility with its proprietary JDK.
81 Neither the binary version provided on the <xref linkend="java"/> page
82 nor the JVM built with the instructions below have been tested against
83 the <ulink
84 url="http://openjdk.java.net/groups/conformance/JckAccess/jck-access.html">
85 TCK</ulink>. Any version that is built using the instructions given,
86 cannot claim to be compatible with the proprietary JDK, without the
87 user applying for, and completing the compatibility tests themselves.
88 </para>
89
90 <para>
91 With that in mind, the binaries produced using this build method are
92 regularly tested against the TCK by the members listed on the site
93 above. In addition to the community license above, an educational,
94 non-commercial license for the TCK can be obtained from <ulink
95 url="http://www.oracle.com/technetwork/java/index-137188.html">
96 here</ulink>.
97 </para>
[2c25a56]98 </note>
99
[d133d429]100 <bridgehead renderas="sect3">Package Information</bridgehead>
[2c25a56]101 <itemizedlist spacing="compact">
102 <listitem>
[d61ead0a]103 <para>
104 Download (HTTP): <ulink url="&ojdk-download;"/>
105 </para>
106 </listitem>
107 <listitem>
108 <para>
109 Download (FTP): <ulink url=" "/>
110 </para>
111 </listitem>
112 <listitem>
113 <para>
114 Download MD5 sum: &ojdk-md5sum;
115 </para>
116 </listitem>
117 <listitem>
118 <para>
119 Download Size: &ojdk-size;
[2c25a56]120 </para>
121 </listitem>
122 <listitem>
[de33b2a]123 <para>
124 Estimated disk space required: &ojdk-bdsize;
125 </para>
[042f456]126 </listitem>
127 <listitem>
[de33b2a]128 <para>
129 Estimated build time: &ojdk-time;
130 </para>
[2c25a56]131 </listitem>
132 </itemizedlist>
133
134 <bridgehead renderas="sect3">Additional Downloads</bridgehead>
135
[d61ead0a]136 <bridgehead renderas="sect4">Optional test harness</bridgehead>
137
[2c25a56]138 <itemizedlist spacing='compact'>
139 <listitem>
[d61ead0a]140 <para>
141 <ulink url="&jtreg-download;"/>
142 </para>
143 </listitem>
144 <listitem>
145 <para>
146 Download MD5 sum: &jtreg-md5sum;
[b1129a10]147 </para>
[870e4acf]148 </listitem>
[2c25a56]149 <listitem>
[b1129a10]150 <para>
[d61ead0a]151 Download Size: &jtreg-size;
[b1129a10]152 </para>
[2c25a56]153 </listitem>
154 </itemizedlist>
155
[5409013]156 <bridgehead renderas="sect4">Required patch</bridgehead>
157
158 <itemizedlist spacing='compact'>
159 <listitem>
160 <para>
[d96708a]161 <ulink url="&patch-root;/openjdk-&openjdk-version;-make_4.3_fix-1.patch"/>
[5409013]162 </para>
163 </listitem>
164 </itemizedlist>
165
[49b50d4]166 <bridgehead renderas="sect3">OpenJDK Dependencies</bridgehead>
[bc00982]167
[92b1341]168 <bridgehead renderas="sect4">Required Dependencies</bridgehead>
[2e41a4f]169 <para role="required">
[042f456]170 An existing binary (<xref linkend="java"/> or an earlier built
[ada4e5f5]171 version of this package. The instructions below assume that
172 you are using <xref linkend="ojdk-conf"/>),
[52a4df28]173 <xref linkend="alsa-lib"/>,
[92b1341]174 <xref linkend="cpio"/>,
[de930747]175 <xref linkend="cups"/>,
[2e41a4f]176 <xref linkend="unzip"/>,
[92b1341]177 <xref linkend="which"/>,
[042f456]178 <xref linkend="xorg7-lib"/>, and
[2e41a4f]179 <xref linkend="zip"/>
180 </para>
[2c25a56]181
[52a4df28]182 <bridgehead renderas="sect4">Recommended</bridgehead>
183 <para role="recommended">
[2198a32]184 <xref linkend="make-ca"/>,
[d61ead0a]185 <xref linkend="giflib"/>,
186 <xref linkend="lcms2"/>,
187 <xref linkend="libjpeg"/>,
188 <xref linkend="libpng"/>, and
[5aa8088]189 <xref linkend="wget"/>
[52a4df28]190 </para>
191
[e01f402]192 <bridgehead renderas="sect4">Optional</bridgehead>
193 <para role="optional">
[c7a230b]194 <xref linkend="git"/>,
[91a82cb]195 <xref linkend="graphviz"/>,
196 <xref linkend="mercurial"/>,
197 an X Window manager such as <xref linkend="twm"/> (for the tests), and
198 <ulink url="https://pandoc.org/">pandoc</ulink>
[e01f402]199 </para>
200
[2c25a56]201 <para condition="html" role="usernotes">User Notes:
[49b50d4]202 <ulink url="&blfs-wiki;/openjdk"/></para>
[2c25a56]203
204 </sect2>
205
206 <sect2 role="installation">
[49b50d4]207 <title>Installation of OpenJDK</title>
[2c25a56]208
[042f456]209 <para>
[91a82cb]210 If you have downloaded the optional test harness, unpack it now:
[042f456]211 </para>
[6f01fd2e]212
[5aa8088]213<screen><userinput>tar -xf ../jtreg-&jtreg-version;.tar.gz</userinput></screen>
[bc00982]214
[5409013]215 <para>
216 Apply a patch to allow building with make-4.3:
217 </para>
218
219<screen><userinput>patch -p1 -i ../openjdk-&openjdk-version;-make_4.3_fix-1.patch</userinput></screen>
220
[10b16af]221 <para>
222 Fix an issue coming from a removed header in glibc-2.32:
223 </para>
224
225<screen><userinput>sed -i /sysctl/d \
226 src/jdk.incubator.jpackage/unix/native/libapplauncher/PosixPlatform.cpp</userinput></screen>
227
[042f456]228 <note>
229 <para>
230 Before proceeding, you should ensure that your environment
231 <envar>PATH</envar> variable contains the location of the Java
[bf7a1821]232 compiler used for bootstrapping <application>OpenJDK</application>.
[042f456]233 This is the only requirement for the environment. Modern Java
234 installations do not need <envar>JAVA_HOME</envar> and
235 <envar>CLASSPATH</envar> is not used here. Furthermore, OpenJDK
[b82dab5]236 developers recommend to unset <envar>JAVA_HOME</envar>.
[042f456]237 </para>
[49b50d4]238
[042f456]239 <para>
240 The build system does not support the <option>-j</option> switch in
[8d759c7]241 <envar>MAKEFLAGS</envar>. See the command explanation for
242 <option>--with-jobs=</option> and <option>--with-test-jobs=</option>
243 for more information on customizing parallelization.
[042f456]244 </para>
245 </note>
[870e4acf]246
[5aa8088]247 <para>
248 Configure and build the package with the following commands
249 (--with-milestone value can be modified to fit user preferences):
250 </para>
[042f456]251
[6c183b5]252<screen><userinput>unset JAVA_HOME &amp;&amp;
253bash configure --enable-unlimited-crypto \
254 --with-extra-cflags="$CFLAGS -fcommon" \
255 --disable-warnings-as-errors \
256 --with-stdc++lib=dynamic \
257 --with-giflib=system \
258 --with-jtreg=$PWD/jtreg \
259 --with-lcms=system \
260 --with-libjpeg=system \
261 --with-libpng=system \
262 --with-zlib=system \
263 --with-version-build="&openjdk-build;" \
264 --with-version-pre="" \
265 --with-version-opt="" \
[5c3f3856]266 --with-cacerts-file=/etc/pki/tls/java/cacerts &amp;&amp;
[d61ead0a]267make images</userinput></screen>
[870e4acf]268
[042f456]269 <para>
[d2cb534]270 To test the results, you will need to execute the jtreg program.
271 You can set the number of concurrent tests by adding the
272 <parameter>-conc:<replaceable>&lt;X&gt;</replaceable></parameter>
273 value in the below command (tests will run sequentially otherwise):
[042f456]274 </para>
275
[e7d4e823]276<screen remap="test"><userinput>export JT_JAVA=$(echo $PWD/build/*/jdk) &amp;&amp;
[d2cb534]277jtreg/bin/jtreg -jdk:$JT_JAVA -automatic -ignore:quiet -v1 \
[e537773]278 test/jdk:tier1 test/langtools:tier1 &amp;&amp;
279unset JT_JAVA</userinput></screen>
[d2cb534]280
[de33b2a]281 <para>
282 For more control over the test suite, review the documentation
283 available in <filename>jtreg/doc/jtreg/usage.txt</filename>. To review
284 the results, see the files
285 <filename>JTreport/test_{jdk,langtools}/text/stats.txt</filename> and
286 <filename>JTreport/test_{jdk,langtools}/text/summary.txt</filename>.
[3db7af8]287 You should expect to see around 40 failures and about the same number
288 of errors.
[de33b2a]289 </para>
[c7a230b]290 <!-- 11.0.2+9:
291 for x86_64: 2 Errors, 28 Failures
[c599277]292 for i686: 13 Errors, 48 Failures
[c7a230b]293 12.0.2+10:
294 for x86_64: 5828 Passed, 52 Errors, no failures
[3db7af8]295 for i686: PENDING
296 14.0.1+7:
297 for x86_64: passed: 5,836; failed: 42; error: 50-->
[d2cb534]298
[de33b2a]299 <para>
300 Install the package with the following commands as the
301 <systemitem class="username">root</systemitem> user:
302 </para>
[2c25a56]303
[d61ead0a]304<screen role="root"><userinput>install -vdm755 /opt/jdk-&openjdk-version;+&openjdk-build; &amp;&amp;
305cp -Rv build/*/images/jdk/* /opt/jdk-&openjdk-version;+&openjdk-build; &amp;&amp;
306chown -R root:root /opt/jdk-&openjdk-version;+&openjdk-build; &amp;&amp;
307for s in 16 24 32 48; do
[d2cb534]308 install -vDm644 src/java.desktop/unix/classes/sun/awt/X11/java-icon${s}.png \
[91a82cb]309 /usr/share/icons/hicolor/${s}x${s}/apps/java.png
[e537773]310done</userinput></screen>
[2c25a56]311
[d61ead0a]312 <note>
313 <para>
314 If you only wish to install the Java Runtime Environment, you can
[55bcdd7]315 substitute <filename>build/*/images/jre</filename> in the above
[d61ead0a]316 <command>cp</command> command.
317 </para>
318 </note>
319
[58cba7f0]320 <para>
321 There are now two <application>OpenJDK</application> SDKs installed
322 in <filename class="directory">/opt</filename>. You should decide on
323 which one you would like to use as the default. Normally, you would opt
324 for the just installed <application>OpenJDK</application>. If so, do
325 the following as the <systemitem class="username">root</systemitem>
326 user:
327 </para>
328
[d61ead0a]329<screen role="root"><userinput>ln -v -nsf jdk-&openjdk-version;+&openjdk-build; /opt/jdk</userinput></screen>
[58cba7f0]330
[bf7a1821]331 <para>
[d61ead0a]332 If desired, you may create .desktop files to add entries
[5409013]333 in the menu for <command>java</command>
[d61ead0a]334 and <command>jconsole</command>. The needed icons have already been
335 installed. As the <systemitem class="username">root</systemitem> user:
[bf7a1821]336 </para>
[76df61c]337
[b1129a10]338<screen role="root"><userinput>mkdir -pv /usr/share/applications &amp;&amp;
339
[89b38c1e]340cat &gt; /usr/share/applications/openjdk-java.desktop &lt;&lt; "EOF" &amp;&amp;
[76df61c]341<literal>[Desktop Entry]
[91a82cb]342Name=OpenJDK Java &openjdk-version; Runtime
343Comment=OpenJDK Java &openjdk-version; Runtime
[d61ead0a]344Exec=/opt/jdk/bin/java -jar
345Terminal=false
346Type=Application
[91a82cb]347Icon=java
[d61ead0a]348MimeType=application/x-java-archive;application/java-archive;application/x-jar;
349NoDisplay=true</literal>
350EOF
[89b38c1e]351cat &gt; /usr/share/applications/openjdk-jconsole.desktop &lt;&lt; "EOF"
[d61ead0a]352<literal>[Desktop Entry]
[91a82cb]353Name=OpenJDK Java &openjdk-version; Console
354Comment=OpenJDK Java &openjdk-version; Console
[8d759c7]355Keywords=java;console;monitoring
[d61ead0a]356Exec=/opt/jdk/bin/jconsole
357Terminal=false
358Type=Application
[91a82cb]359Icon=java
[d61ead0a]360Categories=Application;System;</literal>
361EOF</userinput></screen>
[d2cb534]362
[2c25a56]363 </sect2>
364
365 <sect2 role="commands">
366 <title>Command Explanations</title>
367
[042f456]368 <para>
[d61ead0a]369 <command>bash configure...</command>: the top level
[042f456]370 <filename>configure</filename> is a wrapper around the autotools one.
[d61ead0a]371 It is not executable and must be run through <command>bash</command>.
[042f456]372 </para>
[2c25a56]373
[3db7af8]374 <para>
375 <parameter>--with-extra-cflags=-fcommon</parameter>: Allows building
376 with GCC 10.
377 <!-- patchs are available upstream and will be included in java 15 -->
378 </para>
379
[042f456]380 <para>
[d61ead0a]381 <parameter>--enable-unlimited-crypto</parameter>: Because of limitations
382 on the usage of cryptography in some countries, there is the possibility
383 to limit the size of encryption keys and the use of some algorithms in a
384 policy file. This switch allows to ship a policy file with no
385 restriction. It is the responsibility of the user to ensure proper
386 adherence to the law.
[042f456]387 </para>
[2c25a56]388
[042f456]389 <para>
[d61ead0a]390 <parameter>--disable-warnings-as-errors</parameter>: This switch disables
391 use of <envar>-Werror</envar> in the build.
[042f456]392 </para>
[5292423]393
[042f456]394 <para>
[d61ead0a]395 <parameter>--with-stdc++lib=dynamic</parameter>: This switch forces the
396 build system to link to <filename>libstdc++.so</filename> (dynamic)
397 instead of <filename>libstdc++.a</filename> (static).
[042f456]398 </para>
[5292423]399
[d2cb534]400 <para>
[aa41434]401 <option>--with-jobs=<replaceable>&lt;X&gt;</replaceable></option>:
[d2cb534]402 The <parameter>-j</parameter> passed to make does not work with make as
403 invoked here. By default, the build system will use the number of
404 CPUs - 1.
405 </para>
406
[042f456]407 <para>
[d61ead0a]408 <parameter>--with-jtreg=$PWD/jtreg</parameter>: This switch tells
409 configure where to find jtreg. Omit if you have not downloaded the
410 optional test suite.
[042f456]411 </para>
[52a4df28]412
[042f456]413 <para>
[d61ead0a]414 <parameter>--with-{giflib,lcms,libjpeg,libpng,zlib}=system</parameter>:
415 These switches force the build system to use the system libraries instead
416 of the bundled versions.
[042f456]417 </para>
[e01f402]418
[042f456]419 <para>
[d61ead0a]420 <parameter>--with-version-build</parameter>: Currently, the build
421 system does not include the build number in the version string. It has
422 to be specified here.
[042f456]423 </para>
[c770e18]424
[8eb9e848]425 <para>
[d61ead0a]426 <parameter>--with-version-pre</parameter>: This switch allows you to
427 prefix the version string with a custom string.
[8eb9e848]428 </para>
429
[042f456]430 <para>
[d61ead0a]431 <parameter>--with-version-opt</parameter>: This switch allows you to add
432 an optional build description to the version string.
[042f456]433 </para>
434
435 <para>
[5c3f3856]436 <parameter>--with-cacerts-file=/etc/pki/tls/java/cacerts</parameter>:
[d61ead0a]437 Specifies where to find a <filename>cacerts</filename> file,
[5c3f3856]438 <filename>/etc/pki/tls/java/</filename> on a BLFS system. Otherwise, an
439 empty one is created. You can use the
[120b315]440 <command>/usr/sbin/make-ca --force</command> command to generate it, once
441 you have installed the Java binaries.
[042f456]442 </para>
[df15e9f]443
[042f456]444 <para>
[d61ead0a]445 <option>--with-boot-jdk</option>: This switch provides the
446 location of the temporary <application>JDK</application>. It is normally
447 not needed if <command>java</command> is found in the <envar>PATH</envar>.
[042f456]448 </para>
449
450 <para>
[df15e9f]451 <command>find ... -iname '*.diz' -delete</command>: This command
452 removes redundant files.
[042f456]453 </para>
[5889b848]454
[2c25a56]455 </sect2>
456
[b1129a10]457 <sect2 role="configuration"
458 id="openjdk-config"
459 xreflabel="Configuring OpenJDK">
[49b50d4]460 <title>Configuring OpenJDK</title>
[2c25a56]461
462 <sect3>
463 <title>Configuration Information</title>
464
[5aa8088]465 <para>
466 Normally, the JAVA environment has been configured after installing
467 the binary version, and can be used with the just built package as well.
468 Review <xref linkend="ojdk-conf"/> in case you want to modify
469 something.
470 </para>
[2c25a56]471
[5aa8088]472 <para>
473 To test if the man pages are correctly installed, issue
474 <command>source /etc/profile</command> and <command>man java</command>
475 to display the respective man page.
476 </para>
[76df61c]477
[2c25a56]478 </sect3>
479
[55bcdd7]480 <sect3>
481 <title>
482 Settting up the JRE Certificate Authority Certificates (cacerts) file
483 </title>
[8b9034a]484
[042f456]485 <para>
[c1cd435e]486 If you have run the instructions on the <xref linkend="make-ca"/> page,
487 you only need to create a symlink in the default location for the
488 <filename>cacerts</filename> file. As user <systemitem
[55bcdd7]489 class="username">root</systemitem>:
[042f456]490 </para>
[8b9034a]491
[5c3f3856]492<screen role="root"><userinput>ln -sfv /etc/pki/tls/java/cacerts /opt/jdk/lib/security/cacerts</userinput></screen>
[8b9034a]493
[bf7a1821]494 <para>
[2838a645]495 To check the installation, issue:
[bf7a1821]496 </para>
[a727127f]497
498<screen role="root"><userinput>cd /opt/jdk
[55bcdd7]499bin/keytool -list -cacerts</userinput></screen>
[5941d6e1]500
[2838a645]501 <para>
502 At the prompt <computeroutput>Enter keystore password:</computeroutput>,
503 enter <userinput>changeit</userinput> (the default) or just press the
504 <quote>Enter</quote> key. If the <filename>cacerts</filename> file was
505 installed correctly, you will see a list of the certificates with
506 related information for each one. If not, you need to reinstall them.
507 </para>
508
[8b9034a]509 </sect3>
510
[2c25a56]511 </sect2>
512
513 <sect2 role="content">
514 <title>Contents</title>
515
516 <segmentedlist>
517 <segtitle>Installed Programs</segtitle>
518 <segtitle>Installed Libraries</segtitle>
519 <segtitle>Installed Directory</segtitle>
520
521 <seglistitem>
[3db7af8]522 <seg>jaotc, jar, jarsigner, java, javac, javadoc, javap, jcmd,
523 jconsole, jdb, jdeprscan, jdeps, jfr, jhsdb, jimage, jinfo, jjs,
524 jlink, jmap, jmod, jpackage, jps, jrunscript, jshell, jstack,
525 jstat, jstatd, keytool, rmic, rmid, rmiregistry, and serialver</seg>
[91a82cb]526 <seg>/opt/jdk-&openjdk-version;/lib/*</seg>
527 <seg>/opt/jdk-&openjdk-version;</seg>
[2c25a56]528 </seglistitem>
529 </segmentedlist>
530
531 <variablelist>
532 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
533 <?dbfo list-presentation="list"?>
534 <?dbhtml list-presentation="table"?>
[fedac85]535
[91a82cb]536 <varlistentry id="jaotc">
537 <term><command>jaotc</command></term>
538 <listitem>
[de33b2a]539 <para>
540 is an <quote>ahead-of-time</quote> java class compiler.
541 </para>
[91a82cb]542 <indexterm zone="openjdk jaotc">
543 <primary sortas="b-jaotc">jaotc</primary>
544 </indexterm>
545 </listitem>
546 </varlistentry>
547
[49b50d4]548 <varlistentry id="jar">
[2c25a56]549 <term><command>jar</command></term>
550 <listitem>
[de33b2a]551 <para>
552 combines multiple files into a single jar archive.
553 </para>
[49b50d4]554 <indexterm zone="openjdk jar">
[2c25a56]555 <primary sortas="b-jar">jar</primary>
556 </indexterm>
557 </listitem>
558 </varlistentry>
559
[49b50d4]560 <varlistentry id="jarsigner">
[2c25a56]561 <term><command>jarsigner</command></term>
562 <listitem>
[de33b2a]563 <para>
564 signs jar files and verifies the signatures and integrity
565 of a signed jar file.
566 </para>
[49b50d4]567 <indexterm zone="openjdk jarsigner">
[2c25a56]568 <primary sortas="b-jarsigner">jarsigner</primary>
569 </indexterm>
570 </listitem>
571 </varlistentry>
572
[784a1a7f]573 <varlistentry id="java-prog">
[2c25a56]574 <term><command>java</command></term>
575 <listitem>
[de33b2a]576 <para>
577 launches a Java application by starting a Java runtime
578 environment, loading a specified class and invoking its main
579 method.
580 </para>
[784a1a7f]581 <indexterm zone="openjdk java-prog">
582 <primary sortas="b-java-prog">java</primary>
[2c25a56]583 </indexterm>
584 </listitem>
585 </varlistentry>
586
[49b50d4]587 <varlistentry id="javac">
[2c25a56]588 <term><command>javac</command></term>
589 <listitem>
[de33b2a]590 <para>
591 reads class and interface definitions, written in the
592 Java programming language, and compiles them into bytecode
593 class files.
594 </para>
[49b50d4]595 <indexterm zone="openjdk javac">
[2c25a56]596 <primary sortas="b-javac">javac</primary>
597 </indexterm>
598 </listitem>
599 </varlistentry>
600
[49b50d4]601 <varlistentry id="javadoc">
[2c25a56]602 <term><command>javadoc</command></term>
603 <listitem>
[de33b2a]604 <para>
605 parses the declarations and documentation comments in a
606 set of Java source files and produces a corresponding set of
607 HTML pages describing the classes, interfaces, constructors,
608 methods, and fields.
609 </para>
[49b50d4]610 <indexterm zone="openjdk javadoc">
[2c25a56]611 <primary sortas="b-javadoc">javadoc</primary>
612 </indexterm>
613 </listitem>
614 </varlistentry>
615
[49b50d4]616 <varlistentry id="javap">
[2c25a56]617 <term><command>javap</command></term>
618 <listitem>
[de33b2a]619 <para>
620 disassembles a Java class file.
621 </para>
[49b50d4]622 <indexterm zone="openjdk javap">
[2c25a56]623 <primary sortas="b-javap">javap</primary>
624 </indexterm>
625 </listitem>
626 </varlistentry>
[fedac85]627
[49b50d4]628 <varlistentry id="jcmd">
629 <term><command>jcmd</command></term>
630 <listitem>
[de33b2a]631 <para>
632 is a utility to send diagnostic command requests to a running
633 Java Virtual Machine.
634 </para>
[49b50d4]635 <indexterm zone="openjdk jcmd">
636 <primary sortas="b-jcmd">jcmd</primary>
637 </indexterm>
638 </listitem>
639 </varlistentry>
640
641 <varlistentry id="jconsole">
[2c25a56]642 <term><command>jconsole</command></term>
643 <listitem>
[de33b2a]644 <para>
645 is a graphical console tool to monitor and manage both
646 local and remote Java applications and virtual machines.
647 </para>
[49b50d4]648 <indexterm zone="openjdk jconsole">
[2c25a56]649 <primary sortas="b-jconsole">jconsole</primary>
650 </indexterm>
651 </listitem>
652 </varlistentry>
653
[49b50d4]654 <varlistentry id="jdb">
[2c25a56]655 <term><command>jdb</command></term>
656 <listitem>
[de33b2a]657 <para>
658 is a simple command-line debugger for Java classes.
659 </para>
[49b50d4]660 <indexterm zone="openjdk jdb">
[2c25a56]661 <primary sortas="b-jdb">jdb</primary>
662 </indexterm>
663 </listitem>
664 </varlistentry>
665
[91a82cb]666 <varlistentry id="jdeprscan">
667 <term><command>jdeprscan</command></term>
668 <listitem>
[de33b2a]669 <para>
670 scans class or jar files for uses of deprecated API elements.
671 </para>
[91a82cb]672 <indexterm zone="openjdk jdeprscan">
673 <primary sortas="b-jdeprscan">jdeprscan</primary>
674 </indexterm>
675 </listitem>
676 </varlistentry>
677
[042f456]678 <varlistentry id="jdeps">
679 <term><command>jdeps</command></term>
680 <listitem>
[de33b2a]681 <para>
682 shows the package-level or class-level dependencies of
683 Java class files.
684 </para>
[042f456]685 <indexterm zone="openjdk jdeps">
686 <primary sortas="b-jdeps">jdeps</primary>
687 </indexterm>
688 </listitem>
689 </varlistentry>
690
[3db7af8]691 <varlistentry id="jfr">
692 <term><command>jfr</command></term>
693 <listitem>
694 <para>
695 is a tool for working with <quote>Flight Recorder</quote> files.
696 </para>
697 <indexterm zone="openjdk jfr">
698 <primary sortas="b-jfr">jfr</primary>
699 </indexterm>
700 </listitem>
701 </varlistentry>
702
[91a82cb]703 <varlistentry id="jhsdb">
704 <term><command>jhsdb</command></term>
705 <listitem>
[de33b2a]706 <para>
707 is a tool to analyze the content of a core dump from a
708 crashed Java Virtual Machine (JVM).
709 </para>
[91a82cb]710 <indexterm zone="openjdk jhsdb">
711 <primary sortas="b-jhsdb">jhsdb</primary>
712 </indexterm>
713 </listitem>
714 </varlistentry>
[fedac85]715
[91a82cb]716 <varlistentry id="jimage">
717 <term><command>jimage</command></term>
718 <listitem>
[de33b2a]719 <para>
720 is used to list, extract, verify, or get information about
721 modules in <emphasis>jimage</emphasis> format.
722 </para>
[91a82cb]723 <indexterm zone="openjdk jimage">
724 <primary sortas="b-jimage">jimage</primary>
725 </indexterm>
726 </listitem>
727 </varlistentry>
[2c25a56]728
[49b50d4]729 <varlistentry id="jinfo">
[2c25a56]730 <term><command>jinfo</command></term>
731 <listitem>
[de33b2a]732 <para>
733 prints Java configuration information for a given Java
734 process, core file, or a remote debug server.
735 </para>
[49b50d4]736 <indexterm zone="openjdk jinfo">
[2c25a56]737 <primary sortas="b-jinfo">jinfo</primary>
738 </indexterm>
[042f456]739 </listitem>
740 </varlistentry>
741
742 <varlistentry id="jjs">
743 <term><command>jjs</command></term>
744 <listitem>
[de33b2a]745 <para>
746 is a command-line tool used to invoke the Nashorn engine. It
747 can be used to interpret one or several script files, or to run
748 an interactive shell.
749 </para>
[042f456]750 <indexterm zone="openjdk jjs">
751 <primary sortas="b-jjs">jjs</primary>
752 </indexterm>
[2c25a56]753 </listitem>
754 </varlistentry>
755
[91a82cb]756 <varlistentry id="jlink">
757 <term><command>jlink</command></term>
758 <listitem>
[de33b2a]759 <para>
760 is used to assemble and optimize a set of modules and their
761 dependencies into a custom runtime image.
762 </para>
[91a82cb]763 <indexterm zone="openjdk jlink">
764 <primary sortas="b-jlink">jlink</primary>
765 </indexterm>
766 </listitem>
767 </varlistentry>
768
[49b50d4]769 <varlistentry id="jmap">
[2c25a56]770 <term><command>jmap</command></term>
771 <listitem>
[de33b2a]772 <para>
773 prints shared object memory maps or heap memory details
774 of a given process, core file, or a remote debug server.
775 </para>
[49b50d4]776 <indexterm zone="openjdk jmap">
[2c25a56]777 <primary sortas="b-jmap">jmap</primary>
778 </indexterm>
779 </listitem>
780 </varlistentry>
781
[91a82cb]782 <varlistentry id="jmod">
783 <term><command>jmod</command></term>
784 <listitem>
[de33b2a]785 <para>
786 creates JMOD files and lists the content of existing JMOD files.
787 </para>
[91a82cb]788 <indexterm zone="openjdk jmod">
789 <primary sortas="b-jmod">jmod</primary>
790 </indexterm>
791 </listitem>
792 </varlistentry>
793
[3db7af8]794 <varlistentry id="jpackage">
795 <term><command>jpackage</command></term>
796 <listitem>
797 <para>
798 generates java application packages and images.
799 </para>
800 <indexterm zone="openjdk jpackage">
801 <primary sortas="b-jpackage">jpackage</primary>
802 </indexterm>
803 </listitem>
804 </varlistentry>
805
[49b50d4]806 <varlistentry id="jps">
[2c25a56]807 <term><command>jps</command></term>
808 <listitem>
[de33b2a]809 <para>
810 lists the instrumented JVMs on the target system.
811 </para>
[49b50d4]812 <indexterm zone="openjdk jps">
[2c25a56]813 <primary sortas="b-jps">jps</primary>
814 </indexterm>
815 </listitem>
816 </varlistentry>
817
[49b50d4]818 <varlistentry id="jrunscript">
[2c25a56]819 <term><command>jrunscript</command></term>
820 <listitem>
[de33b2a]821 <para>
822 is a command line script shell.
823 </para>
[49b50d4]824 <indexterm zone="openjdk jrunscript">
[2c25a56]825 <primary sortas="b-jrunscript">jrunscript</primary>
826 </indexterm>
827 </listitem>
828 </varlistentry>
829
[91a82cb]830 <varlistentry id="jshell">
831 <term><command>jshell</command></term>
832 <listitem>
[de33b2a]833 <para>
834 is an interactive tool for learning the Java programming
835 language and prototyping Java code.
836 </para>
[91a82cb]837 <indexterm zone="openjdk jshell">
838 <primary sortas="b-jshell">jshell</primary>
839 </indexterm>
840 </listitem>
841 </varlistentry>
[fedac85]842
[49b50d4]843 <varlistentry id="jstack">
[2c25a56]844 <term><command>jstack</command></term>
845 <listitem>
[de33b2a]846 <para>
847 prints Java stack traces of Java threads for a given
848 Java process, core file, or a remote debug server.
849 </para>
[49b50d4]850 <indexterm zone="openjdk jstack">
[2c25a56]851 <primary sortas="b-jstack">jstack</primary>
852 </indexterm>
853 </listitem>
854 </varlistentry>
855
[49b50d4]856 <varlistentry id="jstat">
[2c25a56]857 <term><command>jstat</command></term>
858 <listitem>
[de33b2a]859 <para>
860 displays performance statistics for an instrumented JVM.
861 </para>
[49b50d4]862 <indexterm zone="openjdk jstat">
[2c25a56]863 <primary sortas="b-jstat">jstat</primary>
864 </indexterm>
865 </listitem>
866 </varlistentry>
867
[49b50d4]868 <varlistentry id="jstatd">
[2c25a56]869 <term><command>jstatd</command></term>
870 <listitem>
[de33b2a]871 <para>
872 is an RMI server application that monitors for the creation
873 and termination of instrumented JVMs.
874 </para>
[49b50d4]875 <indexterm zone="openjdk jstatd">
[2c25a56]876 <primary sortas="b-jstatd">jstatd</primary>
877 </indexterm>
878 </listitem>
879 </varlistentry>
880
[49b50d4]881 <varlistentry id="keytool">
[2c25a56]882 <term><command>keytool</command></term>
883 <listitem>
[de33b2a]884 <para>
885 is a key and certificate management utility.
886 </para>
[49b50d4]887 <indexterm zone="openjdk keytool">
[2c25a56]888 <primary sortas="b-keytool">keytool</primary>
889 </indexterm>
890 </listitem>
891 </varlistentry>
[3db7af8]892 <!--
[49b50d4]893 <varlistentry id="pack200">
[2c25a56]894 <term><command>pack200</command></term>
895 <listitem>
[de33b2a]896 <para>
897 is a Java application that transforms a jar file into a
898 compressed pack200 file using the Java gzip compressor.
899 </para>
[49b50d4]900 <indexterm zone="openjdk pack200">
[2c25a56]901 <primary sortas="b-pack200">pack200</primary>
902 </indexterm>
903 </listitem>
904 </varlistentry>
[3db7af8]905 -->
[49b50d4]906 <varlistentry id="rmic">
[2c25a56]907 <term><command>rmic</command></term>
908 <listitem>
[de33b2a]909 <para>
910 generates stub and skeleton class files for remote objects
911 from the names of compiled Java classes that contain remote
912 object implementations.
913 </para>
[49b50d4]914 <indexterm zone="openjdk rmic">
[2c25a56]915 <primary sortas="b-rmic">rmic</primary>
916 </indexterm>
917 </listitem>
918 </varlistentry>
919
[49b50d4]920 <varlistentry id="rmid">
[2c25a56]921 <term><command>rmid</command></term>
922 <listitem>
[de33b2a]923 <para>
924 starts the activation system daemon.
925 </para>
[49b50d4]926 <indexterm zone="openjdk rmid">
[2c25a56]927 <primary sortas="b-rmid">rmid</primary>
928 </indexterm>
929 </listitem>
930 </varlistentry>
931
[49b50d4]932 <varlistentry id="rmiregistry">
[2c25a56]933 <term><command>rmiregistry</command></term>
934 <listitem>
[de33b2a]935 <para>
936 creates and starts a remote object registry on the specified
937 port on the current host.
938 </para>
[49b50d4]939 <indexterm zone="openjdk rmiregistry">
[2c25a56]940 <primary sortas="b-rmiregistry">rmiregistry</primary>
941 </indexterm>
942 </listitem>
943 </varlistentry>
[de33b2a]944
[49b50d4]945 <varlistentry id="serialver">
[2c25a56]946 <term><command>serialver</command></term>
947 <listitem>
[de33b2a]948 <para>
949 returns the serialVersionUID for one or more classes in a
950 form suitable for copying into an evolving class.
951 </para>
[49b50d4]952 <indexterm zone="openjdk serialver">
[2c25a56]953 <primary sortas="b-serialver">serialver</primary>
954 </indexterm>
955 </listitem>
956 </varlistentry>
[3db7af8]957 <!--
[49b50d4]958 <varlistentry id="unpack200">
[2c25a56]959 <term><command>unpack200</command></term>
960 <listitem>
[de33b2a]961 <para>
962 is a native implementation that transforms a packed file
963 produced by <application>pack200</application> into a jar
964 file.
965 </para>
[49b50d4]966 <indexterm zone="openjdk unpack200">
[2c25a56]967 <primary sortas="b-unpack200">unpack200</primary>
968 </indexterm>
969 </listitem>
970 </varlistentry>
[3db7af8]971 -->
[2c25a56]972 </variablelist>
973
974 </sect2>
975
976</sect1>
Note: See TracBrowser for help on using the repository browser.