[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 |
|
---|
[5b5d604] | 7 | <!ENTITY ojdk-tarball "jdk-&openjdk-version;-ga.tar.gz">
|
---|
[35ea4f04] | 8 | <!ENTITY ojdk-repo "https://github.com/openjdk/jdk19u">
|
---|
[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 |
|
---|
[35ea4f04] | 13 | <!ENTITY ojdk-md5sum "e1067bc90894e5377b61dca68a22f07c">
|
---|
| 14 | <!ENTITY ojdk-size "103 MB">
|
---|
[d2cb534] | 15 |
|
---|
[172f41c] | 16 | <!ENTITY jtreg-version "6.1+1">
|
---|
[55bcdd7] | 17 | <!ENTITY jtreg-download "&anduin-download;/jtreg-&jtreg-version;.tar.gz">
|
---|
[172f41c] | 18 | <!ENTITY jtreg-md5sum "49e6bfa2506e96f461a01f9421a0961c">
|
---|
| 19 | <!ENTITY jtreg-size "8.0 MB">
|
---|
[d61ead0a] | 20 |
|
---|
[35ea4f04] | 21 | <!ENTITY ojdk-bdsize "5.1 GB (add 596 MB for tests)">
|
---|
| 22 | <!ENTITY ojdk-time "5.0 SBU with 4 jobs (add 48 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 |
|
---|
[d6696ec] | 46 | &lfs112_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>
|
---|
| 75 | Oracle does provide free community access, on a case by case basis, to
|
---|
| 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
|
---|
[80106051] | 91 | url="https://www.oracle.com/technetwork/java/index-137188.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"/>,
|
---|
| 184 | <xref linkend="lcms2"/>,
|
---|
| 185 | <xref linkend="libjpeg"/>,
|
---|
| 186 | <xref linkend="libpng"/>, and
|
---|
[5aa8088] | 187 | <xref linkend="wget"/>
|
---|
[52a4df28] | 188 | </para>
|
---|
| 189 |
|
---|
[e01f402] | 190 | <bridgehead renderas="sect4">Optional</bridgehead>
|
---|
| 191 | <para role="optional">
|
---|
[c7a230b] | 192 | <xref linkend="git"/>,
|
---|
[91a82cb] | 193 | <xref linkend="graphviz"/>,
|
---|
[d53d455] | 194 | <xref linkend="mercurial"/>,
|
---|
[5b5d604] | 195 | <!-- not needed now, it seems
|
---|
[91a82cb] | 196 | an X Window manager such as <xref linkend="twm"/> (for the tests), and
|
---|
[d53d455] | 197 | --> <ulink url="https://pandoc.org/">pandoc</ulink>, and
|
---|
| 198 | <ulink url="https://zlib.net/pigz">pigz</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>
|
---|
[5b5d604] | 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>
|
---|
[5b5d604] | 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
|
---|
[0d754e01] | 236 | developers recommend unsetting <envar>JAVA_HOME</envar>.
|
---|
[042f456] | 237 | </para>
|
---|
[49b50d4] | 238 |
|
---|
[042f456] | 239 | <para>
|
---|
[5b5d604] | 240 | The build system does not allow the <option>-j</option> switch in
|
---|
[8d759c7] | 241 | <envar>MAKEFLAGS</envar>. See the command explanation for
|
---|
[5b5d604] | 242 | <option>--with-jobs=</option>
|
---|
[8d759c7] | 243 | for more information on customizing parallelization.
|
---|
[042f456] | 244 | </para>
|
---|
| 245 | </note>
|
---|
[870e4acf] | 246 |
|
---|
[5aa8088] | 247 | <para>
|
---|
[0d754e01] | 248 | Configure and build the package with the following commands:
|
---|
[5aa8088] | 249 | </para>
|
---|
[042f456] | 250 |
|
---|
[6c183b56] | 251 | <screen><userinput>unset JAVA_HOME &&
|
---|
| 252 | bash configure --enable-unlimited-crypto \
|
---|
| 253 | --disable-warnings-as-errors \
|
---|
| 254 | --with-stdc++lib=dynamic \
|
---|
| 255 | --with-giflib=system \
|
---|
| 256 | --with-jtreg=$PWD/jtreg \
|
---|
| 257 | --with-lcms=system \
|
---|
| 258 | --with-libjpeg=system \
|
---|
| 259 | --with-libpng=system \
|
---|
| 260 | --with-zlib=system \
|
---|
[7e21dae] | 261 | --with-version-build="&openjdk-build;" \
|
---|
[6c183b56] | 262 | --with-version-pre="" \
|
---|
| 263 | --with-version-opt="" \
|
---|
[5c3f3856] | 264 | --with-cacerts-file=/etc/pki/tls/java/cacerts &&
|
---|
[d61ead0a] | 265 | make images</userinput></screen>
|
---|
[870e4acf] | 266 |
|
---|
[042f456] | 267 | <para>
|
---|
[d2cb534] | 268 | To test the results, you will need to execute the jtreg program.
|
---|
| 269 | You can set the number of concurrent tests by adding the
|
---|
| 270 | <parameter>-conc:<replaceable><X></replaceable></parameter>
|
---|
| 271 | value in the below command (tests will run sequentially otherwise):
|
---|
[042f456] | 272 | </para>
|
---|
| 273 |
|
---|
[e7d4e823] | 274 | <screen remap="test"><userinput>export JT_JAVA=$(echo $PWD/build/*/jdk) &&
|
---|
[d2cb534] | 275 | jtreg/bin/jtreg -jdk:$JT_JAVA -automatic -ignore:quiet -v1 \
|
---|
[e537773] | 276 | test/jdk:tier1 test/langtools:tier1 &&
|
---|
| 277 | unset JT_JAVA</userinput></screen>
|
---|
[d2cb534] | 278 |
|
---|
[de33b2a] | 279 | <para>
|
---|
| 280 | For more control over the test suite, review the documentation
|
---|
| 281 | available in <filename>jtreg/doc/jtreg/usage.txt</filename>. To review
|
---|
| 282 | the results, see the files
|
---|
| 283 | <filename>JTreport/test_{jdk,langtools}/text/stats.txt</filename> and
|
---|
| 284 | <filename>JTreport/test_{jdk,langtools}/text/summary.txt</filename>.
|
---|
[f30a09a] | 285 | You should expect to see around 40 failures and 10 errors.
|
---|
[de33b2a] | 286 | </para>
|
---|
[35ea4f04] | 287 | <!--
|
---|
[3db7af8] | 288 | 14.0.1+7:
|
---|
[f30a09a] | 289 | for x86_64: passed: 5,836; failed: 42; error: 50
|
---|
| 290 | 17.0.2+8:
|
---|
| 291 | for x86_64: passed: 6,238; failed: 48; error: 13
|
---|
[5bc36fc] | 292 | for i686: passed: 6,208; failed: 29; error: 6
|
---|
| 293 | 18.0.1+10:
|
---|
| 294 | for x86_64: passed: 6,323; failed: 53; error: 14
|
---|
[7e21dae] | 295 | for i686: passed: 6,290; failed: 29; error: 11
|
---|
| 296 | 18.0.1.1+2:
|
---|
| 297 | for x86_64: passed: 6,323; failed: 53; error: 14
|
---|
[66f6b74] | 298 | for i686: passed: 6,290; failed: 29; error: 11
|
---|
| 299 | 18.0.2+8:
|
---|
| 300 | for x86_64: passed: 6,329; failed: 50; error: 14
|
---|
| 301 | for i686: passed: 6,289; failed: 31; error: 13
|
---|
[35ea4f04] | 302 | 19.0.1+10:
|
---|
| 303 | for x86_64: passed: 6,423; failed: 58; error: 15
|
---|
| 304 | for i686: passed: 6,376; failed: 31; error: 12
|
---|
[66f6b74] | 305 | -->
|
---|
[d2cb534] | 306 |
|
---|
[de33b2a] | 307 | <para>
|
---|
| 308 | Install the package with the following commands as the
|
---|
| 309 | <systemitem class="username">root</systemitem> user:
|
---|
| 310 | </para>
|
---|
[2c25a56] | 311 |
|
---|
[d61ead0a] | 312 | <screen role="root"><userinput>install -vdm755 /opt/jdk-&openjdk-version;+&openjdk-build; &&
|
---|
| 313 | cp -Rv build/*/images/jdk/* /opt/jdk-&openjdk-version;+&openjdk-build; &&
|
---|
| 314 | chown -R root:root /opt/jdk-&openjdk-version;+&openjdk-build; &&
|
---|
| 315 | for s in 16 24 32 48; do
|
---|
[d2cb534] | 316 | install -vDm644 src/java.desktop/unix/classes/sun/awt/X11/java-icon${s}.png \
|
---|
[91a82cb] | 317 | /usr/share/icons/hicolor/${s}x${s}/apps/java.png
|
---|
[e537773] | 318 | done</userinput></screen>
|
---|
[2c25a56] | 319 |
|
---|
[d61ead0a] | 320 | <note>
|
---|
| 321 | <para>
|
---|
| 322 | If you only wish to install the Java Runtime Environment, you can
|
---|
[55bcdd7] | 323 | substitute <filename>build/*/images/jre</filename> in the above
|
---|
[d61ead0a] | 324 | <command>cp</command> command.
|
---|
| 325 | </para>
|
---|
| 326 | </note>
|
---|
[8558044] | 327 |
|
---|
[58cba7f0] | 328 | <para>
|
---|
| 329 | There are now two <application>OpenJDK</application> SDKs installed
|
---|
| 330 | in <filename class="directory">/opt</filename>. You should decide on
|
---|
| 331 | which one you would like to use as the default. Normally, you would opt
|
---|
| 332 | for the just installed <application>OpenJDK</application>. If so, do
|
---|
| 333 | the following as the <systemitem class="username">root</systemitem>
|
---|
| 334 | user:
|
---|
| 335 | </para>
|
---|
| 336 |
|
---|
[d61ead0a] | 337 | <screen role="root"><userinput>ln -v -nsf jdk-&openjdk-version;+&openjdk-build; /opt/jdk</userinput></screen>
|
---|
[58cba7f0] | 338 |
|
---|
[bf7a1821] | 339 | <para>
|
---|
[0d754e01] | 340 | If desired, you can create .desktop files to add entries
|
---|
[5409013] | 341 | in the menu for <command>java</command>
|
---|
[d61ead0a] | 342 | and <command>jconsole</command>. The needed icons have already been
|
---|
| 343 | installed. As the <systemitem class="username">root</systemitem> user:
|
---|
[bf7a1821] | 344 | </para>
|
---|
[76df61c] | 345 |
|
---|
[b1129a10] | 346 | <screen role="root"><userinput>mkdir -pv /usr/share/applications &&
|
---|
| 347 |
|
---|
[89b38c1e] | 348 | cat > /usr/share/applications/openjdk-java.desktop << "EOF" &&
|
---|
[76df61c] | 349 | <literal>[Desktop Entry]
|
---|
[91a82cb] | 350 | Name=OpenJDK Java &openjdk-version; Runtime
|
---|
| 351 | Comment=OpenJDK Java &openjdk-version; Runtime
|
---|
[d61ead0a] | 352 | Exec=/opt/jdk/bin/java -jar
|
---|
| 353 | Terminal=false
|
---|
| 354 | Type=Application
|
---|
[91a82cb] | 355 | Icon=java
|
---|
[d61ead0a] | 356 | MimeType=application/x-java-archive;application/java-archive;application/x-jar;
|
---|
| 357 | NoDisplay=true</literal>
|
---|
| 358 | EOF
|
---|
[89b38c1e] | 359 | cat > /usr/share/applications/openjdk-jconsole.desktop << "EOF"
|
---|
[d61ead0a] | 360 | <literal>[Desktop Entry]
|
---|
[91a82cb] | 361 | Name=OpenJDK Java &openjdk-version; Console
|
---|
| 362 | Comment=OpenJDK Java &openjdk-version; Console
|
---|
[8d759c7] | 363 | Keywords=java;console;monitoring
|
---|
[d61ead0a] | 364 | Exec=/opt/jdk/bin/jconsole
|
---|
| 365 | Terminal=false
|
---|
| 366 | Type=Application
|
---|
[91a82cb] | 367 | Icon=java
|
---|
[d61ead0a] | 368 | Categories=Application;System;</literal>
|
---|
| 369 | EOF</userinput></screen>
|
---|
[d2cb534] | 370 |
|
---|
[2c25a56] | 371 | </sect2>
|
---|
| 372 |
|
---|
| 373 | <sect2 role="commands">
|
---|
| 374 | <title>Command Explanations</title>
|
---|
| 375 |
|
---|
[042f456] | 376 | <para>
|
---|
[d61ead0a] | 377 | <command>bash configure...</command>: the top level
|
---|
[042f456] | 378 | <filename>configure</filename> is a wrapper around the autotools one.
|
---|
[d61ead0a] | 379 | It is not executable and must be run through <command>bash</command>.
|
---|
[042f456] | 380 | </para>
|
---|
[5b5d604] | 381 | <!-- Not needed in openjdk-15
|
---|
[3db7af8] | 382 | <para>
|
---|
[5b5d604] | 383 | <parameter>- -with-extra-cflags=-fcommon</parameter>: Allows building
|
---|
[3db7af8] | 384 | with GCC 10.
|
---|
| 385 | </para>
|
---|
[5b5d604] | 386 | -->
|
---|
[042f456] | 387 | <para>
|
---|
[d61ead0a] | 388 | <parameter>--enable-unlimited-crypto</parameter>: Because of limitations
|
---|
| 389 | on the usage of cryptography in some countries, there is the possibility
|
---|
| 390 | to limit the size of encryption keys and the use of some algorithms in a
|
---|
| 391 | policy file. This switch allows to ship a policy file with no
|
---|
| 392 | restriction. It is the responsibility of the user to ensure proper
|
---|
| 393 | adherence to the law.
|
---|
[042f456] | 394 | </para>
|
---|
[2c25a56] | 395 |
|
---|
[042f456] | 396 | <para>
|
---|
[d61ead0a] | 397 | <parameter>--disable-warnings-as-errors</parameter>: This switch disables
|
---|
| 398 | use of <envar>-Werror</envar> in the build.
|
---|
[042f456] | 399 | </para>
|
---|
[5292423] | 400 |
|
---|
[042f456] | 401 | <para>
|
---|
[d61ead0a] | 402 | <parameter>--with-stdc++lib=dynamic</parameter>: This switch forces the
|
---|
| 403 | build system to link to <filename>libstdc++.so</filename> (dynamic)
|
---|
| 404 | instead of <filename>libstdc++.a</filename> (static).
|
---|
[042f456] | 405 | </para>
|
---|
[5292423] | 406 |
|
---|
[d2cb534] | 407 | <para>
|
---|
[aa41434] | 408 | <option>--with-jobs=<replaceable><X></replaceable></option>:
|
---|
[d2cb534] | 409 | The <parameter>-j</parameter> passed to make does not work with make as
|
---|
| 410 | invoked here. By default, the build system will use the number of
|
---|
| 411 | CPUs - 1.
|
---|
| 412 | </para>
|
---|
| 413 |
|
---|
[042f456] | 414 | <para>
|
---|
[d61ead0a] | 415 | <parameter>--with-jtreg=$PWD/jtreg</parameter>: This switch tells
|
---|
| 416 | configure where to find jtreg. Omit if you have not downloaded the
|
---|
| 417 | optional test suite.
|
---|
[042f456] | 418 | </para>
|
---|
[52a4df28] | 419 |
|
---|
[042f456] | 420 | <para>
|
---|
[d61ead0a] | 421 | <parameter>--with-{giflib,lcms,libjpeg,libpng,zlib}=system</parameter>:
|
---|
| 422 | These switches force the build system to use the system libraries instead
|
---|
| 423 | of the bundled versions.
|
---|
[042f456] | 424 | </para>
|
---|
[e01f402] | 425 |
|
---|
[042f456] | 426 | <para>
|
---|
[d61ead0a] | 427 | <parameter>--with-version-build</parameter>: Currently, the build
|
---|
| 428 | system does not include the build number in the version string. It has
|
---|
| 429 | to be specified here.
|
---|
[042f456] | 430 | </para>
|
---|
[c770e18] | 431 |
|
---|
[8eb9e848] | 432 | <para>
|
---|
[d61ead0a] | 433 | <parameter>--with-version-pre</parameter>: This switch allows you to
|
---|
| 434 | prefix the version string with a custom string.
|
---|
[8eb9e848] | 435 | </para>
|
---|
| 436 |
|
---|
[042f456] | 437 | <para>
|
---|
[d61ead0a] | 438 | <parameter>--with-version-opt</parameter>: This switch allows you to add
|
---|
| 439 | an optional build description to the version string.
|
---|
[042f456] | 440 | </para>
|
---|
| 441 |
|
---|
| 442 | <para>
|
---|
[5c3f3856] | 443 | <parameter>--with-cacerts-file=/etc/pki/tls/java/cacerts</parameter>:
|
---|
[d61ead0a] | 444 | Specifies where to find a <filename>cacerts</filename> file,
|
---|
[5c3f3856] | 445 | <filename>/etc/pki/tls/java/</filename> on a BLFS system. Otherwise, an
|
---|
| 446 | empty one is created. You can use the
|
---|
[120b315] | 447 | <command>/usr/sbin/make-ca --force</command> command to generate it, once
|
---|
| 448 | you have installed the Java binaries.
|
---|
[042f456] | 449 | </para>
|
---|
[df15e9f] | 450 |
|
---|
[042f456] | 451 | <para>
|
---|
[d61ead0a] | 452 | <option>--with-boot-jdk</option>: This switch provides the
|
---|
| 453 | location of the temporary <application>JDK</application>. It is normally
|
---|
| 454 | not needed if <command>java</command> is found in the <envar>PATH</envar>.
|
---|
[042f456] | 455 | </para>
|
---|
[5b5d604] | 456 | <!-- Seems to have disappeared
|
---|
[042f456] | 457 | <para>
|
---|
[df15e9f] | 458 | <command>find ... -iname '*.diz' -delete</command>: This command
|
---|
| 459 | removes redundant files.
|
---|
[042f456] | 460 | </para>
|
---|
[5b5d604] | 461 | -->
|
---|
[2c25a56] | 462 | </sect2>
|
---|
| 463 |
|
---|
[b1129a10] | 464 | <sect2 role="configuration"
|
---|
| 465 | id="openjdk-config"
|
---|
| 466 | xreflabel="Configuring OpenJDK">
|
---|
[49b50d4] | 467 | <title>Configuring OpenJDK</title>
|
---|
[2c25a56] | 468 |
|
---|
| 469 | <sect3>
|
---|
| 470 | <title>Configuration Information</title>
|
---|
| 471 |
|
---|
[5aa8088] | 472 | <para>
|
---|
| 473 | Normally, the JAVA environment has been configured after installing
|
---|
| 474 | the binary version, and can be used with the just built package as well.
|
---|
| 475 | Review <xref linkend="ojdk-conf"/> in case you want to modify
|
---|
| 476 | something.
|
---|
| 477 | </para>
|
---|
[2c25a56] | 478 |
|
---|
[5aa8088] | 479 | <para>
|
---|
| 480 | To test if the man pages are correctly installed, issue
|
---|
| 481 | <command>source /etc/profile</command> and <command>man java</command>
|
---|
| 482 | to display the respective man page.
|
---|
| 483 | </para>
|
---|
[76df61c] | 484 |
|
---|
[2c25a56] | 485 | </sect3>
|
---|
| 486 |
|
---|
[55bcdd7] | 487 | <sect3>
|
---|
| 488 | <title>
|
---|
[b9c353b] | 489 | Setting up the JRE Certificate Authority Certificates (cacerts) file
|
---|
[55bcdd7] | 490 | </title>
|
---|
[8b9034a] | 491 |
|
---|
[042f456] | 492 | <para>
|
---|
[c1cd435e] | 493 | If you have run the instructions on the <xref linkend="make-ca"/> page,
|
---|
| 494 | you only need to create a symlink in the default location for the
|
---|
| 495 | <filename>cacerts</filename> file. As user <systemitem
|
---|
[55bcdd7] | 496 | class="username">root</systemitem>:
|
---|
[042f456] | 497 | </para>
|
---|
[8b9034a] | 498 |
|
---|
[5c3f3856] | 499 | <screen role="root"><userinput>ln -sfv /etc/pki/tls/java/cacerts /opt/jdk/lib/security/cacerts</userinput></screen>
|
---|
[8b9034a] | 500 |
|
---|
[bf7a1821] | 501 | <para>
|
---|
[2838a645] | 502 | To check the installation, issue:
|
---|
[bf7a1821] | 503 | </para>
|
---|
[a727127f] | 504 |
|
---|
| 505 | <screen role="root"><userinput>cd /opt/jdk
|
---|
[55bcdd7] | 506 | bin/keytool -list -cacerts</userinput></screen>
|
---|
[5941d6e1] | 507 |
|
---|
[2838a645] | 508 | <para>
|
---|
| 509 | At the prompt <computeroutput>Enter keystore password:</computeroutput>,
|
---|
| 510 | enter <userinput>changeit</userinput> (the default) or just press the
|
---|
| 511 | <quote>Enter</quote> key. If the <filename>cacerts</filename> file was
|
---|
| 512 | installed correctly, you will see a list of the certificates with
|
---|
| 513 | related information for each one. If not, you need to reinstall them.
|
---|
| 514 | </para>
|
---|
| 515 |
|
---|
[8b9034a] | 516 | </sect3>
|
---|
| 517 |
|
---|
[2c25a56] | 518 | </sect2>
|
---|
| 519 |
|
---|
| 520 | <sect2 role="content">
|
---|
| 521 | <title>Contents</title>
|
---|
| 522 |
|
---|
| 523 | <segmentedlist>
|
---|
| 524 | <segtitle>Installed Programs</segtitle>
|
---|
| 525 | <segtitle>Installed Libraries</segtitle>
|
---|
| 526 | <segtitle>Installed Directory</segtitle>
|
---|
| 527 |
|
---|
| 528 | <seglistitem>
|
---|
[f30a09a] | 529 | <seg>jar, jarsigner, java, javac, javadoc, javap, jcmd,
|
---|
[5b5d604] | 530 | jconsole, jdb, jdeprscan, jdeps, jfr, jhsdb, jimage, jinfo,
|
---|
[5bc36fc] | 531 | jlink, jmap, jmod, jpackage, jps, jrunscript, jshell, jstack,
|
---|
| 532 | jstat, jstatd, jwebserver, keytool, rmiregistry, and serialver</seg>
|
---|
[91a82cb] | 533 | <seg>/opt/jdk-&openjdk-version;/lib/*</seg>
|
---|
| 534 | <seg>/opt/jdk-&openjdk-version;</seg>
|
---|
[2c25a56] | 535 | </seglistitem>
|
---|
| 536 | </segmentedlist>
|
---|
| 537 |
|
---|
| 538 | <variablelist>
|
---|
| 539 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 540 | <?dbfo list-presentation="list"?>
|
---|
| 541 | <?dbhtml list-presentation="table"?>
|
---|
[fedac85] | 542 |
|
---|
[172f41c] | 543 | <!-- Not seen in 17.0.1
|
---|
[91a82cb] | 544 | <varlistentry id="jaotc">
|
---|
| 545 | <term><command>jaotc</command></term>
|
---|
| 546 | <listitem>
|
---|
[de33b2a] | 547 | <para>
|
---|
[4c24eb0a] | 548 | is an <quote>ahead-of-time</quote> java class compiler
|
---|
[de33b2a] | 549 | </para>
|
---|
[91a82cb] | 550 | <indexterm zone="openjdk jaotc">
|
---|
| 551 | <primary sortas="b-jaotc">jaotc</primary>
|
---|
| 552 | </indexterm>
|
---|
| 553 | </listitem>
|
---|
| 554 | </varlistentry>
|
---|
[172f41c] | 555 | -->
|
---|
[91a82cb] | 556 |
|
---|
[49b50d4] | 557 | <varlistentry id="jar">
|
---|
[2c25a56] | 558 | <term><command>jar</command></term>
|
---|
| 559 | <listitem>
|
---|
[de33b2a] | 560 | <para>
|
---|
[4c24eb0a] | 561 | combines multiple files into a single jar archive
|
---|
[de33b2a] | 562 | </para>
|
---|
[49b50d4] | 563 | <indexterm zone="openjdk jar">
|
---|
[2c25a56] | 564 | <primary sortas="b-jar">jar</primary>
|
---|
| 565 | </indexterm>
|
---|
| 566 | </listitem>
|
---|
| 567 | </varlistentry>
|
---|
| 568 |
|
---|
[49b50d4] | 569 | <varlistentry id="jarsigner">
|
---|
[2c25a56] | 570 | <term><command>jarsigner</command></term>
|
---|
| 571 | <listitem>
|
---|
[de33b2a] | 572 | <para>
|
---|
| 573 | signs jar files and verifies the signatures and integrity
|
---|
[4c24eb0a] | 574 | of a signed jar file
|
---|
[de33b2a] | 575 | </para>
|
---|
[49b50d4] | 576 | <indexterm zone="openjdk jarsigner">
|
---|
[2c25a56] | 577 | <primary sortas="b-jarsigner">jarsigner</primary>
|
---|
| 578 | </indexterm>
|
---|
| 579 | </listitem>
|
---|
| 580 | </varlistentry>
|
---|
| 581 |
|
---|
[784a1a7f] | 582 | <varlistentry id="java-prog">
|
---|
[2c25a56] | 583 | <term><command>java</command></term>
|
---|
| 584 | <listitem>
|
---|
[de33b2a] | 585 | <para>
|
---|
| 586 | launches a Java application by starting a Java runtime
|
---|
| 587 | environment, loading a specified class and invoking its main
|
---|
[4c24eb0a] | 588 | method
|
---|
[de33b2a] | 589 | </para>
|
---|
[784a1a7f] | 590 | <indexterm zone="openjdk java-prog">
|
---|
| 591 | <primary sortas="b-java-prog">java</primary>
|
---|
[2c25a56] | 592 | </indexterm>
|
---|
| 593 | </listitem>
|
---|
| 594 | </varlistentry>
|
---|
| 595 |
|
---|
[49b50d4] | 596 | <varlistentry id="javac">
|
---|
[2c25a56] | 597 | <term><command>javac</command></term>
|
---|
| 598 | <listitem>
|
---|
[de33b2a] | 599 | <para>
|
---|
| 600 | reads class and interface definitions, written in the
|
---|
| 601 | Java programming language, and compiles them into bytecode
|
---|
[4c24eb0a] | 602 | class files
|
---|
[de33b2a] | 603 | </para>
|
---|
[49b50d4] | 604 | <indexterm zone="openjdk javac">
|
---|
[2c25a56] | 605 | <primary sortas="b-javac">javac</primary>
|
---|
| 606 | </indexterm>
|
---|
| 607 | </listitem>
|
---|
| 608 | </varlistentry>
|
---|
| 609 |
|
---|
[49b50d4] | 610 | <varlistentry id="javadoc">
|
---|
[2c25a56] | 611 | <term><command>javadoc</command></term>
|
---|
| 612 | <listitem>
|
---|
[de33b2a] | 613 | <para>
|
---|
| 614 | parses the declarations and documentation comments in a
|
---|
| 615 | set of Java source files and produces a corresponding set of
|
---|
| 616 | HTML pages describing the classes, interfaces, constructors,
|
---|
[4c24eb0a] | 617 | methods, and fields
|
---|
[de33b2a] | 618 | </para>
|
---|
[49b50d4] | 619 | <indexterm zone="openjdk javadoc">
|
---|
[2c25a56] | 620 | <primary sortas="b-javadoc">javadoc</primary>
|
---|
| 621 | </indexterm>
|
---|
| 622 | </listitem>
|
---|
| 623 | </varlistentry>
|
---|
| 624 |
|
---|
[49b50d4] | 625 | <varlistentry id="javap">
|
---|
[2c25a56] | 626 | <term><command>javap</command></term>
|
---|
| 627 | <listitem>
|
---|
[de33b2a] | 628 | <para>
|
---|
[4c24eb0a] | 629 | disassembles a Java class file
|
---|
[de33b2a] | 630 | </para>
|
---|
[49b50d4] | 631 | <indexterm zone="openjdk javap">
|
---|
[2c25a56] | 632 | <primary sortas="b-javap">javap</primary>
|
---|
| 633 | </indexterm>
|
---|
| 634 | </listitem>
|
---|
| 635 | </varlistentry>
|
---|
[fedac85] | 636 |
|
---|
[49b50d4] | 637 | <varlistentry id="jcmd">
|
---|
| 638 | <term><command>jcmd</command></term>
|
---|
| 639 | <listitem>
|
---|
[de33b2a] | 640 | <para>
|
---|
| 641 | is a utility to send diagnostic command requests to a running
|
---|
[4c24eb0a] | 642 | Java Virtual Machine
|
---|
[de33b2a] | 643 | </para>
|
---|
[49b50d4] | 644 | <indexterm zone="openjdk jcmd">
|
---|
| 645 | <primary sortas="b-jcmd">jcmd</primary>
|
---|
| 646 | </indexterm>
|
---|
| 647 | </listitem>
|
---|
| 648 | </varlistentry>
|
---|
| 649 |
|
---|
| 650 | <varlistentry id="jconsole">
|
---|
[2c25a56] | 651 | <term><command>jconsole</command></term>
|
---|
| 652 | <listitem>
|
---|
[de33b2a] | 653 | <para>
|
---|
| 654 | is a graphical console tool to monitor and manage both
|
---|
[4c24eb0a] | 655 | local and remote Java applications and virtual machines
|
---|
[de33b2a] | 656 | </para>
|
---|
[49b50d4] | 657 | <indexterm zone="openjdk jconsole">
|
---|
[2c25a56] | 658 | <primary sortas="b-jconsole">jconsole</primary>
|
---|
| 659 | </indexterm>
|
---|
| 660 | </listitem>
|
---|
| 661 | </varlistentry>
|
---|
| 662 |
|
---|
[49b50d4] | 663 | <varlistentry id="jdb">
|
---|
[2c25a56] | 664 | <term><command>jdb</command></term>
|
---|
| 665 | <listitem>
|
---|
[de33b2a] | 666 | <para>
|
---|
[4c24eb0a] | 667 | is a simple command-line debugger for Java classes
|
---|
[de33b2a] | 668 | </para>
|
---|
[49b50d4] | 669 | <indexterm zone="openjdk jdb">
|
---|
[2c25a56] | 670 | <primary sortas="b-jdb">jdb</primary>
|
---|
| 671 | </indexterm>
|
---|
| 672 | </listitem>
|
---|
| 673 | </varlistentry>
|
---|
| 674 |
|
---|
[91a82cb] | 675 | <varlistentry id="jdeprscan">
|
---|
| 676 | <term><command>jdeprscan</command></term>
|
---|
| 677 | <listitem>
|
---|
[de33b2a] | 678 | <para>
|
---|
[4c24eb0a] | 679 | scans class or jar files for uses of deprecated API elements
|
---|
[de33b2a] | 680 | </para>
|
---|
[91a82cb] | 681 | <indexterm zone="openjdk jdeprscan">
|
---|
| 682 | <primary sortas="b-jdeprscan">jdeprscan</primary>
|
---|
| 683 | </indexterm>
|
---|
| 684 | </listitem>
|
---|
| 685 | </varlistentry>
|
---|
| 686 |
|
---|
[042f456] | 687 | <varlistentry id="jdeps">
|
---|
| 688 | <term><command>jdeps</command></term>
|
---|
| 689 | <listitem>
|
---|
[de33b2a] | 690 | <para>
|
---|
| 691 | shows the package-level or class-level dependencies of
|
---|
[4c24eb0a] | 692 | Java class files
|
---|
[de33b2a] | 693 | </para>
|
---|
[042f456] | 694 | <indexterm zone="openjdk jdeps">
|
---|
| 695 | <primary sortas="b-jdeps">jdeps</primary>
|
---|
| 696 | </indexterm>
|
---|
| 697 | </listitem>
|
---|
| 698 | </varlistentry>
|
---|
| 699 |
|
---|
[3db7af8] | 700 | <varlistentry id="jfr">
|
---|
| 701 | <term><command>jfr</command></term>
|
---|
| 702 | <listitem>
|
---|
| 703 | <para>
|
---|
[4c24eb0a] | 704 | is a tool for working with <quote>Flight Recorder</quote> files
|
---|
[3db7af8] | 705 | </para>
|
---|
| 706 | <indexterm zone="openjdk jfr">
|
---|
| 707 | <primary sortas="b-jfr">jfr</primary>
|
---|
| 708 | </indexterm>
|
---|
| 709 | </listitem>
|
---|
| 710 | </varlistentry>
|
---|
| 711 |
|
---|
[91a82cb] | 712 | <varlistentry id="jhsdb">
|
---|
| 713 | <term><command>jhsdb</command></term>
|
---|
| 714 | <listitem>
|
---|
[de33b2a] | 715 | <para>
|
---|
| 716 | is a tool to analyze the content of a core dump from a
|
---|
[4c24eb0a] | 717 | crashed Java Virtual Machine (JVM)
|
---|
[de33b2a] | 718 | </para>
|
---|
[91a82cb] | 719 | <indexterm zone="openjdk jhsdb">
|
---|
| 720 | <primary sortas="b-jhsdb">jhsdb</primary>
|
---|
| 721 | </indexterm>
|
---|
| 722 | </listitem>
|
---|
| 723 | </varlistentry>
|
---|
[fedac85] | 724 |
|
---|
[91a82cb] | 725 | <varlistentry id="jimage">
|
---|
| 726 | <term><command>jimage</command></term>
|
---|
| 727 | <listitem>
|
---|
[de33b2a] | 728 | <para>
|
---|
| 729 | is used to list, extract, verify, or get information about
|
---|
[4c24eb0a] | 730 | modules in <emphasis>jimage</emphasis> format
|
---|
[de33b2a] | 731 | </para>
|
---|
[91a82cb] | 732 | <indexterm zone="openjdk jimage">
|
---|
| 733 | <primary sortas="b-jimage">jimage</primary>
|
---|
| 734 | </indexterm>
|
---|
| 735 | </listitem>
|
---|
| 736 | </varlistentry>
|
---|
[2c25a56] | 737 |
|
---|
[49b50d4] | 738 | <varlistentry id="jinfo">
|
---|
[2c25a56] | 739 | <term><command>jinfo</command></term>
|
---|
| 740 | <listitem>
|
---|
[de33b2a] | 741 | <para>
|
---|
| 742 | prints Java configuration information for a given Java
|
---|
[4c24eb0a] | 743 | process, core file, or a remote debug server
|
---|
[de33b2a] | 744 | </para>
|
---|
[49b50d4] | 745 | <indexterm zone="openjdk jinfo">
|
---|
[2c25a56] | 746 | <primary sortas="b-jinfo">jinfo</primary>
|
---|
| 747 | </indexterm>
|
---|
[042f456] | 748 | </listitem>
|
---|
| 749 | </varlistentry>
|
---|
[5b5d604] | 750 | <!--
|
---|
[042f456] | 751 | <varlistentry id="jjs">
|
---|
| 752 | <term><command>jjs</command></term>
|
---|
| 753 | <listitem>
|
---|
[de33b2a] | 754 | <para>
|
---|
| 755 | is a command-line tool used to invoke the Nashorn engine. It
|
---|
| 756 | can be used to interpret one or several script files, or to run
|
---|
| 757 | an interactive shell.
|
---|
| 758 | </para>
|
---|
[042f456] | 759 | <indexterm zone="openjdk jjs">
|
---|
| 760 | <primary sortas="b-jjs">jjs</primary>
|
---|
| 761 | </indexterm>
|
---|
[2c25a56] | 762 | </listitem>
|
---|
| 763 | </varlistentry>
|
---|
[5b5d604] | 764 | -->
|
---|
[91a82cb] | 765 | <varlistentry id="jlink">
|
---|
| 766 | <term><command>jlink</command></term>
|
---|
| 767 | <listitem>
|
---|
[de33b2a] | 768 | <para>
|
---|
| 769 | is used to assemble and optimize a set of modules and their
|
---|
[4c24eb0a] | 770 | dependencies into a custom runtime image
|
---|
[de33b2a] | 771 | </para>
|
---|
[91a82cb] | 772 | <indexterm zone="openjdk jlink">
|
---|
| 773 | <primary sortas="b-jlink">jlink</primary>
|
---|
| 774 | </indexterm>
|
---|
| 775 | </listitem>
|
---|
| 776 | </varlistentry>
|
---|
| 777 |
|
---|
[49b50d4] | 778 | <varlistentry id="jmap">
|
---|
[2c25a56] | 779 | <term><command>jmap</command></term>
|
---|
| 780 | <listitem>
|
---|
[de33b2a] | 781 | <para>
|
---|
| 782 | prints shared object memory maps or heap memory details
|
---|
[4c24eb0a] | 783 | of a given process, core file, or a remote debug server
|
---|
[de33b2a] | 784 | </para>
|
---|
[49b50d4] | 785 | <indexterm zone="openjdk jmap">
|
---|
[2c25a56] | 786 | <primary sortas="b-jmap">jmap</primary>
|
---|
| 787 | </indexterm>
|
---|
| 788 | </listitem>
|
---|
| 789 | </varlistentry>
|
---|
| 790 |
|
---|
[91a82cb] | 791 | <varlistentry id="jmod">
|
---|
| 792 | <term><command>jmod</command></term>
|
---|
| 793 | <listitem>
|
---|
[de33b2a] | 794 | <para>
|
---|
[4c24eb0a] | 795 | creates JMOD files and lists the content of existing JMOD files
|
---|
[de33b2a] | 796 | </para>
|
---|
[91a82cb] | 797 | <indexterm zone="openjdk jmod">
|
---|
| 798 | <primary sortas="b-jmod">jmod</primary>
|
---|
| 799 | </indexterm>
|
---|
| 800 | </listitem>
|
---|
| 801 | </varlistentry>
|
---|
| 802 |
|
---|
[3db7af8] | 803 | <varlistentry id="jpackage">
|
---|
| 804 | <term><command>jpackage</command></term>
|
---|
| 805 | <listitem>
|
---|
| 806 | <para>
|
---|
[4c24eb0a] | 807 | generates java application packages and images
|
---|
[3db7af8] | 808 | </para>
|
---|
| 809 | <indexterm zone="openjdk jpackage">
|
---|
| 810 | <primary sortas="b-jpackage">jpackage</primary>
|
---|
| 811 | </indexterm>
|
---|
| 812 | </listitem>
|
---|
| 813 | </varlistentry>
|
---|
| 814 |
|
---|
[49b50d4] | 815 | <varlistentry id="jps">
|
---|
[2c25a56] | 816 | <term><command>jps</command></term>
|
---|
| 817 | <listitem>
|
---|
[de33b2a] | 818 | <para>
|
---|
[4c24eb0a] | 819 | lists the instrumented JVMs on the target system
|
---|
[de33b2a] | 820 | </para>
|
---|
[49b50d4] | 821 | <indexterm zone="openjdk jps">
|
---|
[2c25a56] | 822 | <primary sortas="b-jps">jps</primary>
|
---|
| 823 | </indexterm>
|
---|
| 824 | </listitem>
|
---|
| 825 | </varlistentry>
|
---|
| 826 |
|
---|
[49b50d4] | 827 | <varlistentry id="jrunscript">
|
---|
[2c25a56] | 828 | <term><command>jrunscript</command></term>
|
---|
| 829 | <listitem>
|
---|
[de33b2a] | 830 | <para>
|
---|
[4c24eb0a] | 831 | is a command line script shell
|
---|
[de33b2a] | 832 | </para>
|
---|
[49b50d4] | 833 | <indexterm zone="openjdk jrunscript">
|
---|
[2c25a56] | 834 | <primary sortas="b-jrunscript">jrunscript</primary>
|
---|
| 835 | </indexterm>
|
---|
| 836 | </listitem>
|
---|
| 837 | </varlistentry>
|
---|
| 838 |
|
---|
[91a82cb] | 839 | <varlistentry id="jshell">
|
---|
| 840 | <term><command>jshell</command></term>
|
---|
| 841 | <listitem>
|
---|
[de33b2a] | 842 | <para>
|
---|
| 843 | is an interactive tool for learning the Java programming
|
---|
[4c24eb0a] | 844 | language and prototyping Java code
|
---|
[de33b2a] | 845 | </para>
|
---|
[91a82cb] | 846 | <indexterm zone="openjdk jshell">
|
---|
| 847 | <primary sortas="b-jshell">jshell</primary>
|
---|
| 848 | </indexterm>
|
---|
| 849 | </listitem>
|
---|
| 850 | </varlistentry>
|
---|
[fedac85] | 851 |
|
---|
[49b50d4] | 852 | <varlistentry id="jstack">
|
---|
[2c25a56] | 853 | <term><command>jstack</command></term>
|
---|
| 854 | <listitem>
|
---|
[de33b2a] | 855 | <para>
|
---|
| 856 | prints Java stack traces of Java threads for a given
|
---|
[4c24eb0a] | 857 | Java process, core file, or a remote debug server
|
---|
[de33b2a] | 858 | </para>
|
---|
[49b50d4] | 859 | <indexterm zone="openjdk jstack">
|
---|
[2c25a56] | 860 | <primary sortas="b-jstack">jstack</primary>
|
---|
| 861 | </indexterm>
|
---|
| 862 | </listitem>
|
---|
| 863 | </varlistentry>
|
---|
| 864 |
|
---|
[49b50d4] | 865 | <varlistentry id="jstat">
|
---|
[2c25a56] | 866 | <term><command>jstat</command></term>
|
---|
| 867 | <listitem>
|
---|
[de33b2a] | 868 | <para>
|
---|
[4c24eb0a] | 869 | displays performance statistics for an instrumented JVM
|
---|
[de33b2a] | 870 | </para>
|
---|
[49b50d4] | 871 | <indexterm zone="openjdk jstat">
|
---|
[2c25a56] | 872 | <primary sortas="b-jstat">jstat</primary>
|
---|
| 873 | </indexterm>
|
---|
| 874 | </listitem>
|
---|
| 875 | </varlistentry>
|
---|
| 876 |
|
---|
[49b50d4] | 877 | <varlistentry id="jstatd">
|
---|
[2c25a56] | 878 | <term><command>jstatd</command></term>
|
---|
| 879 | <listitem>
|
---|
[de33b2a] | 880 | <para>
|
---|
| 881 | is an RMI server application that monitors for the creation
|
---|
[4c24eb0a] | 882 | and termination of instrumented JVMs
|
---|
[de33b2a] | 883 | </para>
|
---|
[49b50d4] | 884 | <indexterm zone="openjdk jstatd">
|
---|
[2c25a56] | 885 | <primary sortas="b-jstatd">jstatd</primary>
|
---|
| 886 | </indexterm>
|
---|
| 887 | </listitem>
|
---|
| 888 | </varlistentry>
|
---|
[5bc36fc] | 889 |
|
---|
| 890 | <varlistentry id="jwebserver">
|
---|
| 891 | <term><command>jwebserver</command></term>
|
---|
| 892 | <listitem>
|
---|
| 893 | <para>
|
---|
| 894 | provides a minimal HTTP server, designed to be used for
|
---|
| 895 | prototyping, testing, and debugging
|
---|
| 896 | </para>
|
---|
| 897 | <indexterm zone="openjdk jwebserver">
|
---|
| 898 | <primary sortas="b-jwebserver">jwebserver</primary>
|
---|
| 899 | </indexterm>
|
---|
| 900 | </listitem>
|
---|
| 901 | </varlistentry>
|
---|
[2c25a56] | 902 |
|
---|
[49b50d4] | 903 | <varlistentry id="keytool">
|
---|
[2c25a56] | 904 | <term><command>keytool</command></term>
|
---|
| 905 | <listitem>
|
---|
[de33b2a] | 906 | <para>
|
---|
[4c24eb0a] | 907 | is a key and certificate management utility
|
---|
[de33b2a] | 908 | </para>
|
---|
[49b50d4] | 909 | <indexterm zone="openjdk keytool">
|
---|
[2c25a56] | 910 | <primary sortas="b-keytool">keytool</primary>
|
---|
| 911 | </indexterm>
|
---|
| 912 | </listitem>
|
---|
| 913 | </varlistentry>
|
---|
[3db7af8] | 914 | <!--
|
---|
[49b50d4] | 915 | <varlistentry id="pack200">
|
---|
[2c25a56] | 916 | <term><command>pack200</command></term>
|
---|
| 917 | <listitem>
|
---|
[de33b2a] | 918 | <para>
|
---|
| 919 | is a Java application that transforms a jar file into a
|
---|
| 920 | compressed pack200 file using the Java gzip compressor.
|
---|
| 921 | </para>
|
---|
[49b50d4] | 922 | <indexterm zone="openjdk pack200">
|
---|
[2c25a56] | 923 | <primary sortas="b-pack200">pack200</primary>
|
---|
| 924 | </indexterm>
|
---|
| 925 | </listitem>
|
---|
| 926 | </varlistentry>
|
---|
[5b5d604] | 927 |
|
---|
[49b50d4] | 928 | <varlistentry id="rmic">
|
---|
[2c25a56] | 929 | <term><command>rmic</command></term>
|
---|
| 930 | <listitem>
|
---|
[de33b2a] | 931 | <para>
|
---|
| 932 | generates stub and skeleton class files for remote objects
|
---|
| 933 | from the names of compiled Java classes that contain remote
|
---|
| 934 | object implementations.
|
---|
| 935 | </para>
|
---|
[49b50d4] | 936 | <indexterm zone="openjdk rmic">
|
---|
[2c25a56] | 937 | <primary sortas="b-rmic">rmic</primary>
|
---|
| 938 | </indexterm>
|
---|
| 939 | </listitem>
|
---|
| 940 | </varlistentry>
|
---|
[5b5d604] | 941 | -->
|
---|
[172f41c] | 942 | <!-- Not seen in 17.0.1
|
---|
[49b50d4] | 943 | <varlistentry id="rmid">
|
---|
[2c25a56] | 944 | <term><command>rmid</command></term>
|
---|
| 945 | <listitem>
|
---|
[de33b2a] | 946 | <para>
|
---|
[4c24eb0a] | 947 | starts the activation system daemon
|
---|
[de33b2a] | 948 | </para>
|
---|
[49b50d4] | 949 | <indexterm zone="openjdk rmid">
|
---|
[2c25a56] | 950 | <primary sortas="b-rmid">rmid</primary>
|
---|
| 951 | </indexterm>
|
---|
| 952 | </listitem>
|
---|
| 953 | </varlistentry>
|
---|
[172f41c] | 954 | -->
|
---|
[2c25a56] | 955 |
|
---|
[49b50d4] | 956 | <varlistentry id="rmiregistry">
|
---|
[2c25a56] | 957 | <term><command>rmiregistry</command></term>
|
---|
| 958 | <listitem>
|
---|
[de33b2a] | 959 | <para>
|
---|
| 960 | creates and starts a remote object registry on the specified
|
---|
[4c24eb0a] | 961 | port on the current host
|
---|
[de33b2a] | 962 | </para>
|
---|
[49b50d4] | 963 | <indexterm zone="openjdk rmiregistry">
|
---|
[2c25a56] | 964 | <primary sortas="b-rmiregistry">rmiregistry</primary>
|
---|
| 965 | </indexterm>
|
---|
| 966 | </listitem>
|
---|
| 967 | </varlistentry>
|
---|
[de33b2a] | 968 |
|
---|
[49b50d4] | 969 | <varlistentry id="serialver">
|
---|
[2c25a56] | 970 | <term><command>serialver</command></term>
|
---|
| 971 | <listitem>
|
---|
[de33b2a] | 972 | <para>
|
---|
| 973 | returns the serialVersionUID for one or more classes in a
|
---|
[4c24eb0a] | 974 | form suitable for copying into an evolving class
|
---|
[de33b2a] | 975 | </para>
|
---|
[49b50d4] | 976 | <indexterm zone="openjdk serialver">
|
---|
[2c25a56] | 977 | <primary sortas="b-serialver">serialver</primary>
|
---|
| 978 | </indexterm>
|
---|
| 979 | </listitem>
|
---|
| 980 | </varlistentry>
|
---|
[3db7af8] | 981 | <!--
|
---|
[49b50d4] | 982 | <varlistentry id="unpack200">
|
---|
[2c25a56] | 983 | <term><command>unpack200</command></term>
|
---|
| 984 | <listitem>
|
---|
[de33b2a] | 985 | <para>
|
---|
| 986 | is a native implementation that transforms a packed file
|
---|
| 987 | produced by <application>pack200</application> into a jar
|
---|
| 988 | file.
|
---|
| 989 | </para>
|
---|
[49b50d4] | 990 | <indexterm zone="openjdk unpack200">
|
---|
[2c25a56] | 991 | <primary sortas="b-unpack200">unpack200</primary>
|
---|
| 992 | </indexterm>
|
---|
| 993 | </listitem>
|
---|
| 994 | </varlistentry>
|
---|
[3db7af8] | 995 | -->
|
---|
[2c25a56] | 996 | </variablelist>
|
---|
| 997 |
|
---|
| 998 | </sect2>
|
---|
| 999 |
|
---|
| 1000 | </sect1>
|
---|