source: general/prog/openjdk.xml@ 5cdaaee

12.2 gimp3 lazarus trunk xry111/for-12.3 xry111/spidermonkey128
Last change on this file since 5cdaaee was b480490, checked in by Bruce Dubbs <bdubbs@…>, 4 months ago

Fix openjdk url.

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