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