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