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