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