source: general/prog/jdk.xml@ 7e1f3aa

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.1 6.2 6.2.0 6.2.0-rc1 6.2.0-rc2 6.3 6.3-rc1 6.3-rc2 6.3-rc3 7.10 7.4 7.5 7.6 7.6-blfs 7.6-systemd 7.7 7.8 7.9 8.0 8.1 8.2 8.3 8.4 9.0 9.1 basic bdubbs/svn elogind gnome kde5-13430 kde5-14269 kde5-14686 kea ken/TL2024 ken/inkscape-core-mods ken/tuningfonts krejzi/svn lazarus lxqt nosym perl-modules plabs/newcss plabs/python-mods python3.11 qt5new rahul/power-profiles-daemon renodr/vulkan-addition systemd-11177 systemd-13485 trunk upgradedb xry111/intltool xry111/llvm18 xry111/soup3 xry111/test-20220226 xry111/xf86-video-removal
Last change on this file since 7e1f3aa was e77976f, checked in by Randy McMurchy <randy@…>, 18 years ago

Changed all the references to X Window System links to a common entity displayed as 'X Window System' - now if there is ever an addition or removal of one of the X packages, an update in only one place will be required

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

  • Property mode set to 100644
File size: 25.9 KB
RevLine 
[52d29f7]1<?xml version="1.0" encoding="ISO-8859-1"?>
[ff769b8c]2<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN"
3 "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" [
[52d29f7]4 <!ENTITY % general-entities SYSTEM "../../general.ent">
5 %general-entities;
6
[99a7cb0]7 <!ENTITY jdk-download-source "https://tiger.dev.java.net/jdk_5_0_05.html">
[5f0bab7]8 <!ENTITY jdk-download-binary "http://java.sun.com/j2se/1.5.0/download.jsp">
[60a31248]9 <!ENTITY jdk-source-md5sum "&sources-anduin-http;/j/jdk-&jdk-src-version;.md5sums">
[f86db562]10 <!ENTITY jdk-bin-md5sum "3cdad4a383b93680f02f6f06198c2227">
11 <!ENTITY jdk-bin-size "46.7 MB">
[cb61e3a8]12 <!ENTITY jdk-src-size "64.4 MB (three .jar files)">
13 <!ENTITY jdk-src-buildsize "1553 MB">
[b26eca2]14 <!ENTITY jdk-time "29 SBU">
[52d29f7]15]>
16
[5f0bab7]17<sect1 id="jdk" xreflabel="JDK-&jdk-src-version;">
[4378f935]18 <?dbhtml filename="jdk.html" ?>
19
20 <sect1info>
21 <othername>$LastChangedBy$</othername>
22 <date>$Date$</date>
[256ee72c]23 <keywordset>
24 <keyword role="package">NONE</keyword>
[22ac237]25 <keyword role="ftpdir">jdk</keyword>
[256ee72c]26 </keywordset>
[4378f935]27 </sect1info>
28
[5eaa687]29 <title>JDK-&jdk-src-version;</title>
[4378f935]30
31 <indexterm zone="jdk">
32 <primary sortas="a-JDK">JDK</primary>
33 </indexterm>
34
35 <sect2 role="package">
36 <title>Introduction to JDK</title>
37
[dae2ba0b]38 <para>The <application>JDK</application> package contains
[bccbdaea]39 Sun's <application>Java</application> development environment. This is
40 useful for developing <application>Java</application> programs and provides
41 the runtime environment necessary to run <application>Java</application>
[cb61e3a8]42 programs. It also includes a plug-in for browsers so that they can be
[4378f935]43 <application>Java</application> aware.</para>
44
[bccbdaea]45 <para>The <application>JDK</application> comes in two flavors, a
46 precompiled binary and a source package. Previously, the plugin included
[cb61e3a8]47 in the <application>JDK</application> binary package was unusable on LFS
[bccbdaea]48 owing to incompatibilities with <application>GCC</application>-3 compiled
[cb61e3a8]49 browsers. This is not the case anymore.</para>
[4378f935]50
51 <para>In order to use the source code and patches, you must read and agree
[473131d]52 to the Sun <ulink url="http://www.java.net/jrl.csp"> Java Research
53 License</ulink> or optionally, the Sun <ulink
54 url="http://java.net/jiul.csp">Java Internal Use License</ulink>. In
55 addition, the source code is not allowed to be downloaded to some
56 countries, so for users in those countries, the binary is the only
57 option.</para>
[cb61e3a8]58
[6473e74]59 <para>You will first need to download and install the binary version of the
[b26eca2]60 <application>JDK</application>.</para>
[6473e74]61
[b26eca2]62 <para>To build from the source, you will also need to download the
63 additional files and patches to complete the source build as detailed
64 below.</para>
[4378f935]65
66 <bridgehead renderas="sect3">Package Information</bridgehead>
67 <itemizedlist spacing="compact">
68 <listitem>
[6473e74]69 <para>Binary download: <ulink url="&jdk-download-binary;"/>
[b26eca2]70 (to download jdk-&jdk-bin-string;-linux-i586.bin)</para>
[4378f935]71 </listitem>
72 <listitem>
73 <para>Download MD5 sum (binary): &jdk-bin-md5sum;</para>
74 </listitem>
75 <listitem>
[b26eca2]76 <para>Source download: <ulink url="&jdk-download-source;"/>
77 (to download jdk-&jdk-src-string;-fcs-src-b05-jrl-13_oct_2005.jar (or
78 optionally the JIUL version),
79 jdk-&jdk-src-string;-fcs-bin-b05-13_oct_2005.jar, and
80 jdk-&jdk-src-string;-mozilla_headers-b05-unix-26_aug_2005.jar)</para>
[4378f935]81 </listitem>
[428434e7]82
[4378f935]83 <listitem>
[6473e74]84 <para>Download MD5 sums (source):
[b26eca2]85 <simplelist>
86 <member>215c5175e54c2facccc2c7845e339725
[6473e74]87 jdk-&jdk-src-string;-fcs-bin-b05-13_oct_2005.jar
[b26eca2]88 </member>
89 <member>884dd87faa082d294f725857c895b6f6
90 jdk-&jdk-src-string;-fcs-src-b05-jrl-13_oct_2005.jar
91 </member>
92 <member>3a3627ab55c6a63cddc90d5b3fad4b83
93 jdk-&jdk-src-string;-mozilla_headers-b05-unix-26_aug_2005.jar
94 </member>
95 </simplelist>
96 </para>
[4378f935]97 </listitem>
[428434e7]98
[4378f935]99 <listitem>
100 <para>Download size (binary): &jdk-bin-size;</para>
101 </listitem>
102 <listitem>
103 <para>Download size (source): &jdk-src-size;</para>
104 </listitem>
105 <listitem>
106 <para>Estimated disk space required: &jdk-src-buildsize;</para>
107 </listitem>
108 <listitem>
109 <para>Estimated build time: &jdk-time;</para>
110 </listitem>
111 </itemizedlist>
112
113 <bridgehead renderas="sect3">Additional Downloads</bridgehead>
114
115 <bridgehead renderas="sect4">Required Patches</bridgehead>
116 <itemizedlist spacing='compact'>
117 <listitem>
118 <para><ulink
[d71866ba]119 url="&patch-root;/jdk-&jdk-src-version;-gcc4-1.patch"/></para>
[4378f935]120 </listitem>
121 <listitem>
[dae2ba0b]122 <para><ulink
[985c02e]123 url="&patch-root;/jdk-&jdk-src-version;-motif_fixes-1.patch"/></para>
[4378f935]124 </listitem>
125 <listitem>
126 <para><ulink
127 url="&patch-root;/jdk-&jdk-src-version;-nptl-1.patch"/></para></listitem>
128 <listitem>
[dae2ba0b]129 <para><ulink
[4378f935]130 url="&patch-root;/jdk-&jdk-src-version;-remove_broken_demo-1.patch"/></para>
131 </listitem>
132 <listitem>
133 <para><ulink
[d71866ba]134 url="&patch-root;/jdk-&jdk-src-version;-remove_fixed_paths-1.patch"/></para>
[4378f935]135 </listitem>
[b26eca2]136 <listitem>
137 <para><ulink
138 url="&patch-root;/jdk-&jdk-src-version;-xorg-6.8.1-1.patch"/></para>
139 </listitem>
[4378f935]140 </itemizedlist>
141
142 <bridgehead renderas="sect4">Recommended Patches</bridgehead>
143 <itemizedlist spacing='compact'>
144 <listitem>
[dae2ba0b]145 <para><ulink
[4378f935]146 url="&patch-root;/jdk-&jdk-src-version;-remove_debug_image-1.patch"/>
[bdf7e1b]147 (skips compiling of the <application>JDK</application> debug image)</para>
[4378f935]148 </listitem>
149 <listitem>
[dae2ba0b]150 <para><ulink
[4378f935]151 url="&patch-root;/jdk-&jdk-src-version;-static_cxx-1.patch"/>
[bdf7e1b]152 (forces dynamic linking to <application>GCC</application> libs)</para></listitem>
[1d61428d]153 </itemizedlist>
154
[42a04581]155 <bridgehead renderas="sect3">JDK Dependencies</bridgehead>
[4378f935]156
[5eaa687]157 <bridgehead renderas="sect4">Required (to Build JDK from Source)</bridgehead>
[e77976f]158 <para role="required"><xref linkend="x-window-system"/>,
[dae2ba0b]159 <xref linkend="zip"/>,
160 <xref linkend="unzip"/>,
161 <xref linkend="cpio"/>,
[12b5ece]162 <xref linkend="alsa-lib"/>, and
[4378f935]163 <xref linkend="tcsh"/></para>
164
165 </sect2>
166
167 <sect2 role="installation">
168 <title>Installation of JDK</title>
169
[b26eca2]170 <para>Both the binary and source built versions will be installed. You may
171 choose to keep either or both.</para>
[4378f935]172
[d4277d4]173 <tip>
174 <para>The <command>./jdk-&jdk-bin-string;-linux-i?86.bin</command>
175 command below unpacks the distribution into a
176 <filename class='directory'>jdk&jdk-bin-version;</filename> directory.
177 You will be required to view, and then accept (by entering a
178 <keycap>y</keycap> keypress), a license agreement before any files are
179 unpacked. If you are scripting (automating) the build, you'll need to
180 account for this. There is information about automating build commands
181 in the <xref linkend="automating-builds"/> section of Chapter 2. Towards
182 the end of this section, specific information for automating this type of
183 installation is discussed.</para>
184 </tip>
185
[b26eca2]186 <para>Normally in BLFS, the files are unpacked into a subdirectory
[6473e74]187 and the starting point for the installation procedures is that
[b26eca2]188 location. For this application only, start in the directory where all
189 the downloaded files are located.</para>
190
[4378f935]191 <para>Install the precompiled <application>JDK</application> with the
192 following commands:</para>
193
[b26eca2]194<screen><userinput>cp jdk-&jdk-bin-string;-linux-i?86.bin jdk-mod.bin &amp;&amp;
195sed -i "s:^PATH=.*::" jdk-mod.bin &amp;&amp;
196chmod -v +x jdk-mod.bin &amp;&amp;
197./jdk-mod.bin</userinput></screen>
[2a7340c2]198
[4378f935]199 <para>Now, as the <systemitem class="username">root</systemitem> user:</para>
[2a7340c2]200
[b26eca2]201<screen role="root"><userinput>cd jdk&jdk-bin-version; &amp;&amp;
202install -v -d /opt/jdk/jdk-precompiled-&jdk-bin-version; &amp;&amp;
[cb61e3a8]203mv -v * /opt/jdk/jdk-precompiled-&jdk-bin-version; &amp;&amp;
[f86db562]204chown -v -R root:root /opt/jdk/jdk-precompiled-&jdk-bin-version; &amp;&amp;
[256f9439]205ln -v -sf motif21/libmawt.so \
[b26eca2]206 /opt/jdk/jdk-precompiled-&jdk-bin-version;/jre/lib/i386/ &amp;&amp;
207cd ..</userinput></screen>
[014d11ad]208
[4378f935]209 <para>The binary version is now installed.</para>
[014d11ad]210
[dae2ba0b]211 <para>If you don't want to compile the source or are not in a position to
212 download the source owing to license restrictions, skip ahead to the
[4378f935]213 configuration section.</para>
[014d11ad]214
[bccbdaea]215 <para>Save the existing path, and append the recently installed
[cb61e3a8]216 <application>JDK</application>.</para>
[014d11ad]217
[cb61e3a8]218<screen><userinput>export JAVA_HOME=/opt/jdk/jdk-precompiled-&jdk-bin-version; &amp;&amp;
219export PATH_HOLD=${PATH} &amp;&amp;
220export PATH=${PATH}:${JAVA_HOME}/bin</userinput></screen>
[014d11ad]221
[b89c7ca]222 <para>The source code is contained in a self-extracting
[bccbdaea]223 <filename class='extension'>jar</filename> file. You
224 will need to be in a windowed environment to extract the sources.
[cb61e3a8]225 Create a directory to store the extracted sources. Choose the newly
226 created <filename class="directory">jdk-build</filename> directory
227 when prompted for the target directory.</para>
[014d11ad]228
[4378f935]229<screen><userinput>mkdir jdk-build &amp;&amp;
[5f0bab7]230cd jdk-build &amp;&amp;
[cb61e3a8]231for JAR in ../jdk-&jdk-src-string;*.jar
232 do java -jar ${JAR}
233done</userinput></screen>
[014d11ad]234
[b89c7ca]235 <para>Apply all the patches downloaded above:</para>
[014d11ad]236
[4378f935]237<screen><userinput>for PATCH in ../jdk-&jdk-src-version;*.patch
[5f0bab7]238 do patch -Np1 -i ${PATCH}
[4378f935]239done</userinput></screen>
[014d11ad]240
[985c02e]241 <para>If your X Window System is installed in any prefix other than
242 <filename class="directory">/usr/X11R6</filename>, adjust as necessary and
243 execute the following command:</para>
244
245<screen><userinput>find . -type f -exec sed -i 's@/usr/X11R6@<replaceable>[/usr]</replaceable>@g' {} \;</userinput></screen>
246
[4378f935]247 <para>Set/unset some variables which affect the build:</para>
[2a7340c2]248
[4378f935]249<screen><userinput>export ALT_BOOTDIR="$JAVA_HOME" &amp;&amp;
[52d29f7]250unset JAVA_HOME &amp;&amp;
251unset CLASSPATH
252unset CFLAGS
253unset CXXFLAGS
254unset LDFLAGS
255export ALT_DEVTOOLS_PATH="/usr/bin" &amp;&amp;
[99a7cb0]256export BUILD_NUMBER="update-05" &amp;&amp;
[52d29f7]257export DEV_ONLY=true &amp;&amp;
[cb61e3a8]258export ALT_MOZILLA_HEADERS_PATH=$PWD/share/plugin/ &amp;&amp;
[52d29f7]259export INSANE=true &amp;&amp;
260export MAKE_VERBOSE=true &amp;&amp;
[4378f935]261export ALT_CACERTS_FILE=${ALT_BOOTDIR}/jre/lib/security/cacerts</userinput></screen>
[014d11ad]262
[4378f935]263 <warning>
[dae2ba0b]264 <para>Setting CFLAGS/CXXFLAGS/LDFLAGS is guaranteed to make the build
[bccbdaea]265 fail. If you are interested in optimizing the build, set
266 OTHER_CFLAGS/OTHER_CXXFLAGS/OTHER_LDFLAGS instead. -O3, even in
[0b584261]267 OTHER_C{,XX}FLAGS, is known to cause a build failure.</para>
[4378f935]268 </warning>
[014d11ad]269
[40d6bab]270 <para>Additionally, if you would like to <command>make</command> in
271 parallel, add the following:</para>
[2a7340c2]272
[4378f935]273<screen><userinput>export HOTSPOT_BUILD_JOBS=<replaceable>[3]</replaceable></userinput></screen>
[014d11ad]274
[4378f935]275 <para>Build the <application>JDK</application> with the following
276 commands. There will be a lot of messages about missing files that look like
[bdf7e1b]277 errors. These are caused by not meeting the expected build environment
[dae2ba0b]278 (Red Hat). As long as the build doesn't stop, the messages
[4378f935]279 are harmless.</para>
[014d11ad]280
[4378f935]281<screen><userinput>cd control/make &amp;&amp;
[52d29f7]282make &amp;&amp;
[4378f935]283cd ../build/linux-i?86</userinput></screen>
[2a7340c2]284
[dae2ba0b]285 <para>Now, as the <systemitem class="username">root</systemitem> user,
[4378f935]286 install the <application>JDK</application>:</para>
[2a7340c2]287
[4378f935]288<screen role="root"><userinput>cp -v -a j2sdk-image /opt/jdk/jdk-&jdk-src-version; &amp;&amp;
[61e058b]289chown -v -R root:root /opt/jdk/jdk-&jdk-src-version; &amp;&amp;
[6dd0164]290ln -sf motif21/libmawt.so /opt/jdk/jdk-&jdk-src-version;/jre/lib/i386/</userinput></screen>
[2a7340c2]291
[40d6bab]292 <para>Restore the unprivileged user's environment using the following
293 commands:</para>
[2a7340c2]294
[cb61e3a8]295<screen><userinput>unset ALT_BOOTDIR &amp;&amp;
[2a7340c2]296unset ALT_DEVTOOLS_PATH &amp;&amp;
297unset BUILD_NUMBER &amp;&amp;
298unset DEV_ONLY &amp;&amp;
[cb61e3a8]299unset ALT_MOZILLA_HEADERS_PATH &amp;&amp;
[2a7340c2]300unset INSANE &amp;&amp;
301unset MAKE_VERBOSE &amp;&amp;
[cb61e3a8]302unset ALT_CACERTS_FILE &amp;&amp;
303export PATH=${PATH_HOLD} &amp;&amp;
304unset PATH_HOLD</userinput></screen>
[014d11ad]305
[4378f935]306 </sect2>
[52d29f7]307
[4378f935]308 <sect2 role="commands">
309 <title>Command Explanations</title>
[014d11ad]310
[40d6bab]311 <para><command>export ALT_BOOTDIR="$JAVA_HOME"</command>: This variable sets
[4378f935]312 the location of the bootstrap <application>JDK</application>.</para>
[014d11ad]313
[cb61e3a8]314 <para><command>export ALT_MOZILLA_HEADERS_PATH=$PWD/share/plugin/</command>:
315 This tells the build exactly where to find the
[bccbdaea]316 <application>Mozilla</application> headers. This has changed since the
317 previous version and is not mentioned in the installation documentation
[cb61e3a8]318 included with the package source.</para>
[014d11ad]319
[4378f935]320 <para><command>export ALT_DEVTOOLS_PATH="/usr/bin"</command>: This
321 changes the location where the build finds the needed executables.</para>
[014d11ad]322
[dae2ba0b]323 <para><command>export BUILD_NUMBER="blfs-&blfs-version;"</command>:
324 This will help you identify the compiled version of the runtime environment
325 and virtual machine by appending this information to the version
[4378f935]326 string.</para>
[014d11ad]327
[4378f935]328 <para><command>export DEV_ONLY=true</command>: This command
329 skips compiling the documentation and eliminates a dependency on
330 <application>rpm</application>.</para>
[014d11ad]331
[4378f935]332 <para><command>unset JAVA_HOME</command>: This clears the
[dae2ba0b]333 <envar>JAVA_HOME</envar> variable as recommended by the build
[4378f935]334 instructions.</para>
[014d11ad]335
[4378f935]336 <para><command>unset CLASSPATH</command>: This clears the
[40d6bab]337 <envar>CLASSPATH</envar> variable as recommended by the build
[4378f935]338 instructions.</para>
[014d11ad]339
[dae2ba0b]340 <para><command>unset CFLAGS/CXXFLAGS...</command>: These variables cause
[4378f935]341 miscompilation of the build. Never set them.</para>
[014d11ad]342
[dae2ba0b]343 <para><command>export INSANE=true</command>: The certified platform for the
344 build is Redhat Enterprise Advanced Server 2.1. This variable ensures that
345 all the errors related to compiling on a non-certified platform will be
[4378f935]346 displayed as warnings instead of errors.</para>
[014d11ad]347
[dae2ba0b]348 <para><command>export MAKE_VERBOSE=true</command>: Allows the compiler
[4378f935]349 commands to be displayed on the console.</para>
[014d11ad]350
[4378f935]351 <para><command>export ALT_CACERTS_FILE...</command>: Specifies the
[dae2ba0b]352 certificate file to use (from the installed binary
[4378f935]353 <application>JDK</application>).</para>
[014d11ad]354
[bccbdaea]355 <para><command>ln -sf motif21/libmawt.so
356 /opt/jdk/jdk-&jdk-src-version;/jre/lib/i386/</command>: This fixes
357 linking issues with other applications that expect to find the
358 <application>motif</application> libraries with the other
[6dd0164]359 <application>JDK</application> libraries.</para>
[61e058b]360
[4378f935]361 </sect2>
[52d29f7]362
[4378f935]363 <sect2 role="configuration">
364 <title>Configuring JDK</title>
[014d11ad]365
[4378f935]366 <sect3>
367 <title>Configuration Information</title>
[014d11ad]368
[bdf7e1b]369 <para>There are now two Java 2 SDKs installed in
[4378f935]370 <filename>/opt/jdk</filename>. You should decide on which one you
[bccbdaea]371 would like to use as the default. For example if you decide to use the
[cb61e3a8]372 source compiled <application>JDK</application>, do the following as the
[ceafb03e]373 <systemitem class="username">root</systemitem> user:</para>
[014d11ad]374
[8a64f4b]375<screen role="root"><userinput>ln -v -nsf jdk-&jdk-src-version; /opt/jdk/jdk</userinput></screen>
[014d11ad]376
[4378f935]377 <para>Add the following <filename>jdk.sh</filename> shell startup file to
[dae2ba0b]378 the <filename>/etc/profile.d</filename> directory with the following
[ceafb03e]379 commands as the <systemitem class="username">root</systemitem> user:</para>
[014d11ad]380
[8a64f4b]381<screen role="root"><userinput>cat &gt; /etc/profile.d/jdk.sh &lt;&lt; "EOF"
[4378f935]382<literal># Begin /etc/profile.d/jdk.sh
[014d11ad]383
[5f0bab7]384# Set JAVA_HOME directory
385JAVA_HOME=/opt/jdk/jdk
386export JAVA_HOME
[014d11ad]387
[92b34a8]388# Adjust PATH
[5f0bab7]389pathappend ${JAVA_HOME}/bin PATH
[014d11ad]390
[5f0bab7]391# Auto Java Classpath Updating
392# Create symlinks to this directory for auto classpath setting
393AUTO_CLASSPATH_DIR=/usr/lib/classpath
394if [ -z ${CLASSPATH} ]; then
[256ee72c]395 CLASSPATH=.:${AUTO_CLASSPATH_DIR}
[5f0bab7]396else
[256ee72c]397 CLASSPATH="${CLASSPATH}:.:${AUTO_CLASSPATH_DIR}"
[5f0bab7]398fi
[014d11ad]399
[92b34a8]400# Check for empty AUTO_CLASSPATH_DIR
401ls ${AUTO_CLASSPATH_DIR}/*.jar &amp;> /dev/null &amp;&amp;
402for i in ${AUTO_CLASSPATH_DIR}/*.jar
[256ee72c]403 do CLASSPATH=${CLASSPATH}:"${i}"
[5f0bab7]404done
[92b34a8]405export CLASSPATH
[014d11ad]406
[4378f935]407# End /etc/profile.d/jdk.sh</literal>
408EOF</userinput></screen>
409
[40d6bab]410 <para>The <application>Java</application> plugin is located in
[4378f935]411 <filename class="directory">$JAVA_HOME/jre/plugin/i?86/ns7/</filename>.
[40d6bab]412 Make a symbolic link to the file in that directory from your browser(s)
[4378f935]413 plugins directory.</para>
414
[40d6bab]415 <important>
[4378f935]416 <para>The plugin must be a symlink for it to work. If not, the browsers
[40d6bab]417 will crash when you attempt to load a <application>Java</application>
[4378f935]418 application.</para>
[40d6bab]419 </important>
[4378f935]420
421 </sect3>
422
423 </sect2>
424
425 <sect2 role="content">
426 <title>Contents</title>
427
428 <segmentedlist>
429 <segtitle>Installed Programs</segtitle>
430 <segtitle>Installed Libraries</segtitle>
431 <segtitle>Installed Directory</segtitle>
432
433 <seglistitem>
[bccbdaea]434 <seg>appletviewer, extcheck, idlj, jar, jarsigner, java, javac,
435 javadoc,javah, javap, javaws, jdb, keytool, native2ascii, orbd,
436 policytool, rmic, rmid, rmiregistry, serialver, servertool, and
[cb61e3a8]437 tnameserv</seg>
[bccbdaea]438 <seg><envar>$JAVA_HOME</envar>/lib/*,
[cb61e3a8]439 <envar>$JAVA_HOME</envar>/jre/lib/*,
[4378f935]440 and libjavaplugin_oji.so</seg>
441 <seg>/opt/jdk</seg>
442 </seglistitem>
443 </segmentedlist>
444
445 <variablelist>
446 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
447 <?dbfo list-presentation="list"?>
448 <?dbhtml list-presentation="table"?>
449
450 <varlistentry id="appletviewer">
451 <term><command>appletviewer</command></term>
452 <listitem>
[dae2ba0b]453 <para>runs <application>Java</application> applets outside of the
[4378f935]454 context of a browser.</para>
455 <indexterm zone="jdk appletviewer">
456 <primary sortas="b-appletviewer">appletviewer</primary>
457 </indexterm>
458 </listitem>
459 </varlistentry>
460
461 <varlistentry id="extcheck">
462 <term><command>extcheck</command></term>
463 <listitem>
[dae2ba0b]464 <para>checks a specified <filename>JAR</filename> file for title
465 and version conflicts with any extensions installed in the
[4378f935]466 <application>JDK</application> software.</para>
467 <indexterm zone="jdk extcheck">
468 <primary sortas="b-extcheck">extcheck</primary>
469 </indexterm>
470 </listitem>
471 </varlistentry>
472
473 <varlistentry id="idlj">
474 <term><command>idlj</command></term>
475 <listitem>
[dae2ba0b]476 <para>generates <application>Java</application> bindings from a
[4378f935]477 given IDL file.</para>
478 <indexterm zone="jdk idlj">
479 <primary sortas="b-idlj">idlj</primary>
480 </indexterm>
481 </listitem>
[0619e6d]482 </varlistentry>
[4378f935]483
484 <varlistentry id="jar">
485 <term><command>jar</command></term>
486 <listitem>
[0619e6d]487 <para>combines multiple files into a single <filename>JAR</filename>
[4378f935]488 archive file.</para>
489 <indexterm zone="jdk jar">
490 <primary sortas="b-jar">jar</primary>
491 </indexterm>
492 </listitem>
493 </varlistentry>
494
495 <varlistentry id="jarsigner">
496 <term><command>jarsigner</command></term>
497 <listitem>
[dae2ba0b]498 <para>signs <filename>JAR</filename> (Java ARchive) files and verifies the
[4378f935]499 signatures and integrity of a signed <filename>JAR</filename>.</para>
500 <indexterm zone="jdk jarsigner">
501 <primary sortas="b-jarsigner">jarsigner</primary>
502 </indexterm>
503 </listitem>
504 </varlistentry>
505
506 <varlistentry id="java">
507 <term><command>java</command></term>
508 <listitem>
[dae2ba0b]509 <para>launches a <application>Java</application> application by
510 starting a <application>Java</application> runtime environment, loading a
[4378f935]511 specified class and invoking its main method.</para>
512 <indexterm zone="jdk java">
513 <primary sortas="b-java">java</primary>
514 </indexterm>
515 </listitem>
516 </varlistentry>
517
518 <varlistentry id="javac">
519 <term><command>javac</command></term>
520 <listitem>
[dae2ba0b]521 <para>reads class and interface definitions, written in the
522 <application>Java</application> programming language, and compiles
[4378f935]523 them into bytecode class files.</para>
524 <indexterm zone="jdk javac">
525 <primary sortas="b-javac">javac</primary>
526 </indexterm>
527 </listitem>
528 </varlistentry>
529
530 <varlistentry id="javadoc">
531 <term><command>javadoc</command></term>
532 <listitem>
[dae2ba0b]533 <para>parses the declarations and documentation comments in a set of
534 <application>Java</application> source files and produces a corresponding
535 set of HTML pages describing the classes, interfaces,
[4378f935]536 constructors, methods, and fields.</para>
537 <indexterm zone="jdk javadoc">
538 <primary sortas="b-javadoc">javadoc</primary>
539 </indexterm>
540 </listitem>
541 </varlistentry>
542
543 <varlistentry id="javah">
544 <term><command>javah</command></term>
545 <listitem>
[dae2ba0b]546 <para>generates <application>C</application> header and source files
[4378f935]547 that are needed to implement native methods.</para>
548 <indexterm zone="jdk javah">
549 <primary sortas="b-javah">javah</primary>
550 </indexterm>
551 </listitem>
552 </varlistentry>
553
554 <varlistentry id="javap">
555 <term><command>javap</command></term>
556 <listitem>
557 <para>disassembles a <application>Java</application> class file.</para>
558 <indexterm zone="jdk javap">
559 <primary sortas="b-javap">javap</primary>
560 </indexterm>
561 </listitem>
562 </varlistentry>
563
564 <varlistentry id="javaws">
565 <term><command>javaws</command></term>
566 <listitem>
[dae2ba0b]567 <para>launches <application>Java </application>application/applets
[4378f935]568 hosted on a network.</para>
569 <indexterm zone="jdk javaws">
570 <primary sortas="b-javaws">javaws</primary>
571 </indexterm>
572 </listitem>
573 </varlistentry>
574
575 <varlistentry id="jdb">
576 <term><command>jdb</command></term>
577 <listitem>
[dae2ba0b]578 <para>is a simple command-line debugger for
[4378f935]579 <application>Java</application> classes.</para>
580 <indexterm zone="jdk jdb">
581 <primary sortas="b-jdb">jdb</primary>
582 </indexterm>
583 </listitem>
584 </varlistentry>
585
586 <varlistentry id="keytool">
587 <term><command>keytool</command></term>
588 <listitem>
589 <para>is a key and certificate management utility.</para>
590 <indexterm zone="jdk keytool">
591 <primary sortas="b-keytool">keytool</primary>
592 </indexterm>
593 </listitem>
594 </varlistentry>
595
596 <varlistentry id="native2ascii">
597 <term><command>native2ascii</command></term>
598 <listitem>
[dae2ba0b]599 <para> converts files that contain non-supported character encoding
[4378f935]600 into files containing Latin-1 or Unicode-encoded characters.</para>
601 <indexterm zone="jdk native2ascii">
602 <primary sortas="b-native2ascii">native2ascii</primary>
603 </indexterm>
604 </listitem>
605 </varlistentry>
606
607 <varlistentry id="orbd">
608 <term><command>orbd</command></term>
609 <listitem>
[dae2ba0b]610 <para>is used to enable clients to transparently locate and invoke
[4378f935]611 persistent objects on servers in the CORBA environment.</para>
612 <indexterm zone="jdk orbd">
613 <primary sortas="b-orbd">orbd</primary>
614 </indexterm>
615 </listitem>
616 </varlistentry>
617
618 <varlistentry id="policytool">
619 <term><command>policytool</command></term>
620 <listitem>
621 <para>creates and manages a policy file graphically.</para>
622 <indexterm zone="jdk policytool">
623 <primary sortas="b-policytool">policytool</primary>
624 </indexterm>
625 </listitem>
626 </varlistentry>
627
628 <varlistentry id="rmic">
629 <term><command>rmic</command></term>
630 <listitem>
[dae2ba0b]631 <para>generates stub and skeleton class files for remote objects
632 from the names of compiled <application>Java</application> classes that
[4378f935]633 contain remote object implementations.</para>
634 <indexterm zone="jdk rmic">
635 <primary sortas="b-rmic">rmic</primary>
636 </indexterm>
637 </listitem>
638 </varlistentry>
639
640 <varlistentry id="rmid">
641 <term><command>rmid</command></term>
642 <listitem>
643 <para>starts the activation system daemon.</para>
644 <indexterm zone="jdk rmid">
645 <primary sortas="b-rmid">rmid</primary>
646 </indexterm>
647 </listitem>
648 </varlistentry>
649
650 <varlistentry id="rmiregistry">
651 <term><command>rmiregistry</command></term>
652 <listitem>
[dae2ba0b]653 <para>creates and starts a remote object registry on the specified
[4378f935]654 port on the current host.</para>
655 <indexterm zone="jdk rmiregistry">
656 <primary sortas="b-rmiregistry">rmiregistry</primary>
657 </indexterm>
658 </listitem>
659 </varlistentry>
660
661 <varlistentry id="serialver">
662 <term><command>serialver</command></term>
663 <listitem>
[dae2ba0b]664 <para>returns the serialVersionUID for one or more classes in a
[4378f935]665 form suitable for copying into an evolving class.</para>
666 <indexterm zone="jdk serialver">
667 <primary sortas="b-serialver">serialver</primary>
668 </indexterm>
669 </listitem>
670 </varlistentry>
671
672 <varlistentry id="servertool">
673 <term><command>servertool</command></term>
674 <listitem>
[dae2ba0b]675 <para>provides an ease-of-use interface for application programmers
[4378f935]676 to register, unregister, startup and shutdown a server.</para>
677 <indexterm zone="jdk servertool">
678 <primary sortas="b-servertool">servertool</primary>
679 </indexterm>
680 </listitem>
681 </varlistentry>
682
683 <varlistentry id="tnameserv">
684 <term><command>tnameserv</command></term>
685 <listitem>
686 <para>starts the <application>Java</application> IDL name server.</para>
687 <indexterm zone="jdk tnameserv">
688 <primary sortas="b-tnameserv">tnameserv</primary>
689 </indexterm>
690 </listitem>
691 </varlistentry>
692
693 </variablelist>
694
695 </sect2>
[74c1100]696
697</sect1>
Note: See TracBrowser for help on using the repository browser.