[52d29f7] | 1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
| 2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
|
---|
| 3 | "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd" [
|
---|
| 4 | <!ENTITY % general-entities SYSTEM "../../general.ent">
|
---|
| 5 | %general-entities;
|
---|
| 6 |
|
---|
[23460a6] | 7 | <!ENTITY j2sdk-download-source "http://www.sun.com/software/communitysource/j2se/java2/download.html">
|
---|
| 8 | <!ENTITY j2sdk-download-binary "http://java.sun.com/j2se/1.4.2/download.html">
|
---|
| 9 | <!ENTITY j2sdk-source-md5sum "http://anduin.linuxfromscratch.org/sources/BLFS/SVN/I-K/j2sdk-&j2sdk-src-version;.md5sums">
|
---|
| 10 | <!ENTITY j2sdk-bin-md5sum "a55a9150977de7d5c7f78d29593a8b8c">
|
---|
| 11 | <!ENTITY j2sdk-bin-size "36.4 MB">
|
---|
| 12 | <!ENTITY j2sdk-src-size "55.1 MB (three .zip files)">
|
---|
| 13 | <!ENTITY j2sdk-src-buildsize "1285 MB">
|
---|
| 14 | <!ENTITY j2sdk-time "29.57 SBU">
|
---|
[52d29f7] | 15 | ]>
|
---|
| 16 |
|
---|
[06aea651] | 17 | <sect1 id="j2sdk" xreflabel="J2SDK-&j2sdk-src-version;">
|
---|
[a0f03b0] | 18 | <sect1info>
|
---|
[5cd0959d] | 19 | <othername>$LastChangedBy$</othername>
|
---|
| 20 | <date>$Date$</date>
|
---|
[a0f03b0] | 21 | </sect1info>
|
---|
[19aa75a] | 22 | <?dbhtml filename="j2sdk.html" ?>
|
---|
[2a7340c2] | 23 | <title><application>J2<acronym>SDK</acronym></application>-&j2sdk-src-version;</title>
|
---|
| 24 | <indexterm zone="j2sdk">
|
---|
| 25 | <primary sortas="a-J2SDK">J2SDK</primary>
|
---|
| 26 | </indexterm>
|
---|
[74c1100] | 27 |
|
---|
[52d29f7] | 28 | <sect2>
|
---|
[2a7340c2] | 29 | <title>Introduction to
|
---|
| 30 | <application>J2<acronym>SDK</acronym></application></title>
|
---|
| 31 |
|
---|
| 32 | <para>The <application>J2<acronym>SDK</acronym></application> package contains
|
---|
| 33 | Sun's <application>Java</application> development environment. This is useful
|
---|
| 34 | for developing <application>Java</application> programs and provides the
|
---|
| 35 | runtime environment necessary to run <application>Java</application> programs.
|
---|
| 36 | It also includes a plug-in for browsers so that they can be
|
---|
| 37 | <application>Java</application> aware.</para>
|
---|
| 38 |
|
---|
| 39 | <para>The <acronym>JDK</acronym> comes in two flavors, a precompiled binary
|
---|
| 40 | and a source package. Previously, the plugin included in the
|
---|
| 41 | <acronym>JDK</acronym> binary package was unusable on <acronym>LFS</acronym>
|
---|
| 42 | owing to incompatibilities with <acronym>GCC</acronym>-3 compiled browsers.
|
---|
[52d29f7] | 43 | This is not the case anymore.</para>
|
---|
[014d11ad] | 44 |
|
---|
[2a7340c2] | 45 | <para>The source package requires registration at the Sun developer site and
|
---|
| 46 | accepting the Sun Community Source License. The source code cannot be
|
---|
| 47 | downloaded from some countries, so for users from those countries, the binary
|
---|
| 48 | may be the only option.</para>
|
---|
[014d11ad] | 49 |
|
---|
| 50 | <para>Even if you plan on compiling the <acronym>JDK</acronym> source, you will
|
---|
[52d29f7] | 51 | need to download the binary version to bootstrap the <acronym>JDK</acronym>
|
---|
| 52 | build. Follow the link below to download both source and binary packages. When
|
---|
[2a7340c2] | 53 | downloading the source (two files required), also download the
|
---|
| 54 | <application>Mozilla</application> headers package available at the same
|
---|
| 55 | location. To build from source, you'll end up downloading a total of four
|
---|
| 56 | files.</para>
|
---|
[014d11ad] | 57 |
|
---|
[52d29f7] | 58 | <sect3><title>Package information</title>
|
---|
| 59 | <itemizedlist spacing='compact'>
|
---|
[23460a6] | 60 | <listitem><para>Binary download:
|
---|
| 61 | <ulink url="&j2sdk-download-binary;"/></para></listitem>
|
---|
| 62 | <listitem><para>Source download:
|
---|
| 63 | <ulink url="&j2sdk-download-source;"/></para></listitem>
|
---|
| 64 | <listitem><para>Version used (binary):
|
---|
[52d29f7] | 65 | &j2sdk-bin-version;</para></listitem>
|
---|
[23460a6] | 66 | <listitem><para>Download MD5 sum (binary):
|
---|
| 67 | &j2sdk-bin-md5sum;</para></listitem>
|
---|
| 68 | <listitem><para>Download MD5 sum (source):
|
---|
| 69 | <ulink url="&j2sdk-source-md5sum;"/></para></listitem>
|
---|
| 70 | <listitem><para>Download size (binary):
|
---|
| 71 | &j2sdk-bin-size;</para></listitem>
|
---|
| 72 | <listitem><para>Download size (source):
|
---|
| 73 | &j2sdk-src-size;</para></listitem>
|
---|
| 74 | <listitem><para>Estimated disk space required:
|
---|
[52d29f7] | 75 | &j2sdk-src-buildsize;</para></listitem>
|
---|
[23460a6] | 76 | <listitem><para>Estimated build time:
|
---|
[52d29f7] | 77 | &j2sdk-time;</para></listitem></itemizedlist>
|
---|
| 78 | </sect3>
|
---|
[014d11ad] | 79 |
|
---|
[52d29f7] | 80 | <sect3><title>Additional downloads</title>
|
---|
| 81 | <itemizedlist spacing='compact'>
|
---|
[2a7340c2] | 82 | <listitem><para><ulink
|
---|
| 83 | url="&patch-root;/j2sdk-&j2sdk-src-version;-fix_inline_asm-1.patch"/></para>
|
---|
| 84 | </listitem>
|
---|
| 85 | <listitem><para><ulink
|
---|
| 86 | url="&patch-root;/j2sdk-&j2sdk-src-version;-gcc33-1.patch"/></para>
|
---|
| 87 | </listitem>
|
---|
| 88 | <listitem><para><ulink
|
---|
| 89 | url="&patch-root;/j2sdk-&j2sdk-src-version;-motif_mkmsgcat-1.patch"/></para>
|
---|
| 90 | </listitem>
|
---|
| 91 | <listitem><para><ulink
|
---|
| 92 | url="&patch-root;/j2sdk-&j2sdk-src-version;-nptl-1.patch"/></para>
|
---|
| 93 | </listitem>
|
---|
| 94 | <listitem><para><ulink
|
---|
| 95 | url="&patch-root;/j2sdk-&j2sdk-src-version;-remove_debug_image-1.patch"/></para>
|
---|
| 96 | </listitem>
|
---|
| 97 | <listitem><para><ulink
|
---|
| 98 | url="&patch-root;/j2sdk-&j2sdk-src-version;-remove_fixed_paths-1.patch"/></para>
|
---|
| 99 | </listitem>
|
---|
| 100 | <listitem><para><ulink
|
---|
| 101 | url="&patch-root;/j2sdk-&j2sdk-src-version;-static_cxx-1.patch"/></para>
|
---|
| 102 | </listitem>
|
---|
| 103 | <listitem><para><ulink
|
---|
| 104 | url="&patch-root;/j2sdk-&j2sdk-src-version;-ash-1.patch"/>
|
---|
| 105 | (Only required if /bin/sh is symlinked to <xref linkend="ash"/>)</para>
|
---|
| 106 | </listitem>
|
---|
[52d29f7] | 107 | </itemizedlist>
|
---|
| 108 | </sect3>
|
---|
[014d11ad] | 109 |
|
---|
[52d29f7] | 110 | <sect3><title><application>J2SDK</application> dependencies</title>
|
---|
[355e538] | 111 | <sect4><title>Required (to build <application>J2SDK</application> from
|
---|
| 112 | source)</title>
|
---|
[014d11ad] | 113 | <para>X (<xref linkend="xfree86"/> or <xref linkend="xorg"/>),
|
---|
[2a7340c2] | 114 | <xref linkend="zip"/>,
|
---|
| 115 | <xref linkend="unzip"/>,
|
---|
| 116 | <xref linkend="cpio"/>,
|
---|
| 117 | <xref linkend="alsa"/>,
|
---|
| 118 | <xref linkend="tcsh"/> and
|
---|
[9cb302c7] | 119 | <xref linkend="gcc3"/></para>
|
---|
| 120 | </sect4>
|
---|
[52d29f7] | 121 | </sect3>
|
---|
[014d11ad] | 122 |
|
---|
[52d29f7] | 123 | </sect2>
|
---|
| 124 |
|
---|
| 125 | <sect2>
|
---|
| 126 | <title>Installation of <application>J2SDK</application></title>
|
---|
[014d11ad] | 127 |
|
---|
[52d29f7] | 128 | <para>Both versions will be installed in parallel. You may choose to keep
|
---|
| 129 | either or both.</para>
|
---|
[014d11ad] | 130 |
|
---|
[52d29f7] | 131 | <para>Installation of the precompiled <acronym>JDK</acronym> is easy:
|
---|
| 132 | create a directory to install from, copy the .bin there, and run the
|
---|
| 133 | following commands:</para>
|
---|
[014d11ad] | 134 |
|
---|
[2a7340c2] | 135 | <screen><userinput><command>export VERSION=&j2sdk-bin-version; &&
|
---|
| 136 | export MV=`echo $VERSION | cut -d "_" -f 1,1` &&
|
---|
| 137 | export V=`echo ${VERSION} | sed -e "s/\./_/g"` &&
|
---|
[52d29f7] | 138 | sed -i "s:^PATH=.*::" j2sdk-${V}-linux-i?86.bin &&
|
---|
| 139 | chmod +x j2sdk-${V}-linux-i?86.bin &&
|
---|
| 140 | mkdir -p bin &&
|
---|
| 141 | ln -sf /bin/true bin/more &&
|
---|
| 142 | yes | PATH=$PWD/bin:$PATH ./j2sdk-${V}-linux-i?86.bin &&
|
---|
[2a7340c2] | 143 | cd j2sdk${VERSION}</command></userinput></screen>
|
---|
| 144 |
|
---|
| 145 | <para>Now, as the root user:</para>
|
---|
| 146 |
|
---|
| 147 | <screen><userinput role='root'><command>install -d /opt/j2sdk/j2sdk-precompiled-${MV} &&
|
---|
| 148 | mv * /opt/j2sdk/j2sdk-precompiled-${MV}
|
---|
| 149 | chown -R root:root /opt/j2sdk/j2sdk-precompiled-${MV}</command></userinput></screen>
|
---|
[014d11ad] | 150 |
|
---|
| 151 | <para>The binary version is now installed.</para>
|
---|
| 152 |
|
---|
| 153 | <para>If you don't want to compile the source or are not in a position to
|
---|
| 154 | download the source owing to license restrictions, skip ahead to the
|
---|
| 155 | configuration section.</para>
|
---|
| 156 |
|
---|
[6b5b87a6] | 157 | <para>Add the recently installed <acronym>JDK</acronym> to the path.</para>
|
---|
[014d11ad] | 158 |
|
---|
[52d29f7] | 159 | <screen><userinput><command>export JAVA_HOME=/opt/j2sdk/j2sdk-precompiled-${MV} &&
|
---|
| 160 | export PATH=$PATH:${JAVA_HOME}/bin</command></userinput></screen>
|
---|
[014d11ad] | 161 |
|
---|
[2a7340c2] | 162 | <para>Unzip the sources:</para>
|
---|
[014d11ad] | 163 |
|
---|
[6b5b87a6] | 164 | <screen><userinput><command>mkdir j2sdk-build &&
|
---|
| 165 | cd j2sdk-build &&
|
---|
| 166 | VERSION=&j2sdk-src-version; &&
|
---|
[52d29f7] | 167 | V=`echo $VERSION | sed -e "s/\./_/g"` &&
|
---|
[6b5b87a6] | 168 | unzip ../j2sdk-${V}-src-scsl.zip &&
|
---|
| 169 | unzip ../j2sdk-${V}-mozilla_headers-unix.zip &&
|
---|
| 170 | unzip ../j2sdk-${V}-bin-scsl.zip</command></userinput></screen>
|
---|
[014d11ad] | 171 |
|
---|
[52d29f7] | 172 | <para>Apply all the patches downloaded above.</para>
|
---|
[014d11ad] | 173 |
|
---|
[7ae9a90] | 174 | <screen><userinput><command>for PATCH in ../j2sdk-&j2sdk-src-version;*.patch
|
---|
[52d29f7] | 175 | do
|
---|
[6b5b87a6] | 176 | patch -Np1 -i $PATCH
|
---|
[52d29f7] | 177 | done</command></userinput></screen>
|
---|
[014d11ad] | 178 |
|
---|
[52d29f7] | 179 | <para>Set/unset some variables which affect the build:</para>
|
---|
[2a7340c2] | 180 |
|
---|
[52d29f7] | 181 | <screen><userinput><command>export ALT_BOOTDIR="$JAVA_HOME" &&
|
---|
| 182 | unset JAVA_HOME &&
|
---|
| 183 | unset CLASSPATH
|
---|
| 184 | unset CFLAGS
|
---|
| 185 | unset CXXFLAGS
|
---|
| 186 | unset LDFLAGS
|
---|
| 187 | export ALT_DEVTOOLS_PATH="/usr/bin" &&
|
---|
| 188 | export BUILD_NUMBER="blfs-`date +%s`" &&
|
---|
| 189 | export DEV_ONLY=true &&
|
---|
| 190 | export ALT_MOZILLA_PATH=$PWD &&
|
---|
| 191 | export INSANE=true &&
|
---|
| 192 | export MAKE_VERBOSE=true &&
|
---|
[d496aea] | 193 | export ALT_CACERTS_FILE=${ALT_BOOTDIR}/jre/lib/security/cacerts
|
---|
| 194 | export PATH_HOLD=$PATH
|
---|
| 195 | export PATH=/opt/gcc-&gcc3-version;/bin:$PATH</command></userinput></screen>
|
---|
[014d11ad] | 196 |
|
---|
| 197 | <warning><para>Setting CFLAGS/CXXFLAGS/LDFLAGS is guaranteed to make the build
|
---|
| 198 | fail. If you are interested in optimizing the build, set
|
---|
| 199 | OTHER_CFLAGS/OTHER_CXXFLAGS/OTHER_LDFLAGS instead.</para></warning>
|
---|
| 200 |
|
---|
[52d29f7] | 201 | <para>Additionally, if you would like to make in parallel, add the following
|
---|
| 202 | (adjust <envar>MAKE_PARALLEL</envar> to your liking):</para>
|
---|
[2a7340c2] | 203 |
|
---|
[52d29f7] | 204 | <screen><userinput><command>export HOTSPOT_BUILD_JOBS=$MAKE_PARALLEL</command></userinput></screen>
|
---|
[014d11ad] | 205 |
|
---|
| 206 | <para>If the included <application>Motif</application> doesn't build properly,
|
---|
| 207 | the error is noticed much later in the build. A solution is to build the
|
---|
| 208 | <application>Motif</application> library before compiling the
|
---|
[2a7340c2] | 209 | <application>J2<acronym>SDK</acronym></application>.</para>
|
---|
[014d11ad] | 210 |
|
---|
[52d29f7] | 211 | <screen><userinput><command>cd motif/lib/Xm &&
|
---|
| 212 | make &&
|
---|
| 213 | cd ../../..</command></userinput></screen>
|
---|
[014d11ad] | 214 |
|
---|
[2a7340c2] | 215 | <para>Build <application>J2SDK</application> with the following
|
---|
[52d29f7] | 216 | commands. There will be a lot of messages about missing files that look like
|
---|
[2a7340c2] | 217 | errors. As long as the build doesn't stop, the messages are harmless, so
|
---|
| 218 | ignore them.</para>
|
---|
[014d11ad] | 219 |
|
---|
[52d29f7] | 220 | <screen><userinput><command>cd control/make &&
|
---|
| 221 | make &&
|
---|
[2a7340c2] | 222 | cd ../build/linux-i?86</command></userinput></screen>
|
---|
| 223 |
|
---|
| 224 | <para>Now, as the root user, install <application>J2SDK</application>:</para>
|
---|
| 225 |
|
---|
| 226 | <screen><userinput role='root'><command>cp -a j2sdk-image /opt/j2sdk/j2sdk-&j2sdk-src-version; &&
|
---|
| 227 | chown -R root:root /opt/j2sdk/j2sdk-&j2sdk-src-version;</command></userinput></screen>
|
---|
| 228 |
|
---|
| 229 | <para>Restore the environment using the following commands:</para>
|
---|
| 230 |
|
---|
| 231 | <screen><userinput><command>unset VERSION &&
|
---|
| 232 | unset MV &&
|
---|
| 233 | unset V &&
|
---|
| 234 | unset ALT_BOOTDIR &&
|
---|
| 235 | unset ALT_DEVTOOLS_PATH &&
|
---|
| 236 | unset BUILD_NUMBER &&
|
---|
| 237 | unset DEV_ONLY &&
|
---|
| 238 | unset ALT_MOZILLA_PATH &&
|
---|
| 239 | unset INSANE &&
|
---|
| 240 | unset MAKE_VERBOSE &&
|
---|
| 241 | unset ALT_CACERTS_FILE &&
|
---|
| 242 | export PATH=$PATH_HOLD &&
|
---|
| 243 | unset PATH_HOLD</command></userinput></screen>
|
---|
[014d11ad] | 244 |
|
---|
[52d29f7] | 245 | </sect2>
|
---|
| 246 |
|
---|
| 247 | <sect2>
|
---|
| 248 | <title>Command explanations</title>
|
---|
[014d11ad] | 249 |
|
---|
[52d29f7] | 250 | <para><command>export ALT_BOOTDIR="$JAVA_HOME"</command>: This var sets
|
---|
[2a7340c2] | 251 | the location of the bootstrap <acronym>JDK</acronym>.</para>
|
---|
[014d11ad] | 252 |
|
---|
[52d29f7] | 253 | <para><command>export ALT_MOZILLA_PATH=$PWD</command>: This sets the
|
---|
[2a7340c2] | 254 | variable that points to where you unzipped the
|
---|
| 255 | <application>Mozilla</application> headers.</para>
|
---|
[014d11ad] | 256 |
|
---|
[52d29f7] | 257 | <para><command>export ALT_DEVTOOLS_PATH="/usr/bin"</command>: This
|
---|
[014d11ad] | 258 | changes the location where the build finds the needed executables.</para>
|
---|
| 259 |
|
---|
[52d29f7] | 260 | <para><command>export BUILD_NUMBER="blfs-`date +%s`"</command>: This will
|
---|
| 261 | help you identify this compiled version of the runtime environment and
|
---|
| 262 | virtual machine by appending this information to the version in the
|
---|
| 263 | output to <command>java -version</command>.</para>
|
---|
[014d11ad] | 264 |
|
---|
[52d29f7] | 265 | <para><command>export DEV_ONLY=true</command>: This command
|
---|
[2a7340c2] | 266 | eliminates compiling the documentation and a dependency for
|
---|
[014d11ad] | 267 | <application>rpm</application>.</para>
|
---|
| 268 |
|
---|
[52d29f7] | 269 | <para><command>unset JAVA_HOME</command>: This clears the
|
---|
[014d11ad] | 270 | <envar>JAVA_HOME</envar> variable as recommended by the build
|
---|
| 271 | instructions.</para>
|
---|
| 272 |
|
---|
[52d29f7] | 273 | <para><command>unset CLASSPATH</command>: This clears the
|
---|
[014d11ad] | 274 | <envar>CLASSPATH</envar> variable as per the recommendations in the build
|
---|
| 275 | instructions.</para>
|
---|
| 276 |
|
---|
[52d29f7] | 277 | <para><command>unset CFLAGS...</command>: These flags cause miscompilation
|
---|
| 278 | of the build. Never set these.</para>
|
---|
[014d11ad] | 279 |
|
---|
[52d29f7] | 280 | <para><command>export INSANE=true</command>: Unless you specify that you
|
---|
| 281 | are insane the build will not proceed. The certified platform for the build is
|
---|
| 282 | Redhat 6.1. The above variable ensures that all the errors related to
|
---|
| 283 | compiling on a non-certified platform will be converted to warnings.</para>
|
---|
[014d11ad] | 284 |
|
---|
[52d29f7] | 285 | <para><command>export MAKE_VERBOSE=true</command>: Allows the current
|
---|
| 286 | compilation command to be displayed on the console.</para>
|
---|
[014d11ad] | 287 |
|
---|
[52d29f7] | 288 | <para><command>export ALT_CACERTS_FILE...</command>: Specifies the
|
---|
| 289 | certificate file to use.</para>
|
---|
[014d11ad] | 290 |
|
---|
[52d29f7] | 291 | </sect2>
|
---|
| 292 |
|
---|
| 293 | <sect2>
|
---|
| 294 | <title>Configuring <application>J2SDK</application></title>
|
---|
[014d11ad] | 295 |
|
---|
[52d29f7] | 296 | <sect3><title>Configuration Information</title>
|
---|
[014d11ad] | 297 |
|
---|
[6b5b87a6] | 298 | <para>There are now two Java 2 <acronym>SDK</acronym>'s installed in
|
---|
| 299 | <filename>/opt/j2sdk</filename>. You should decide on which one you
|
---|
[52d29f7] | 300 | would like to use as the default. For example if you decide to use the source
|
---|
| 301 | compiled <application>J2SDK</application>, do the following:</para>
|
---|
[014d11ad] | 302 |
|
---|
[52d29f7] | 303 | <screen><userinput><command>ln -nsf j2sdk-&j2sdk-src-version; /opt/j2sdk/j2sdk</command></userinput></screen>
|
---|
[014d11ad] | 304 |
|
---|
[52d29f7] | 305 | <para>Add the following lines to your shell startup file (e.g.,
|
---|
| 306 | <filename>/etc/profile</filename>).</para>
|
---|
[014d11ad] | 307 |
|
---|
[52d29f7] | 308 | <screen><userinput>export JAVA_HOME=/opt/j2sdk/j2sdk
|
---|
| 309 | export PATH=$PATH:$JAVA_HOME/bin</userinput></screen>
|
---|
[014d11ad] | 310 |
|
---|
[52d29f7] | 311 | <para>Add <filename>$JAVA_HOME/man</filename> to your
|
---|
| 312 | <envar>MANPATH</envar> variable or to
|
---|
| 313 | <filename>/etc/man.conf</filename></para>
|
---|
[014d11ad] | 314 |
|
---|
[52d29f7] | 315 | <para>The <application>Java</application> plugin is in the directory
|
---|
| 316 | <filename class="directory">$JAVA_HOME/jre/plugin/i?86/ns610/</filename>.
|
---|
[53fb68f1] | 317 | Make a symbolic link to the file in that directory from your plugins directory.
|
---|
[6b5b87a6] | 318 | Note that the plugin must be a symlink for it to work. If not, the browsers
|
---|
[2a7340c2] | 319 | just crash when you attempt to load a <application>Java</application>
|
---|
| 320 | plugin.</para>
|
---|
[014d11ad] | 321 |
|
---|
[52d29f7] | 322 | </sect3>
|
---|
[014d11ad] | 323 |
|
---|
[52d29f7] | 324 | <sect3><title>Handling CLASSPATH</title>
|
---|
[014d11ad] | 325 |
|
---|
[2a7340c2] | 326 | <para>When compiling packages, the <envar>CLASSPATH</envar> environment
|
---|
| 327 | variable is used by the <acronym>JDK</acronym> to locate classes at
|
---|
| 328 | compile-time and run-time. It is tedious to add all the classes used to the
|
---|
| 329 | <envar>CLASSPATH</envar> manually. You may add the following lines to your
|
---|
| 330 | shell startup file to set <envar>CLASSPATH</envar> automatically to include
|
---|
| 331 | all JAR files in a specified directory, which in the example below is
|
---|
| 332 | <filename>/usr/lib/auto-java-classpath</filename>.</para>
|
---|
[014d11ad] | 333 |
|
---|
[52d29f7] | 334 | <screen><userinput>AUTO_CLASSPATH_DIR=/usr/lib/auto-java-classpath
|
---|
| 335 | if [ -z $CLASSPATH ]
|
---|
| 336 | then
|
---|
| 337 | CLASSPATH=.:$AUTO_CLASSPATH_DIR
|
---|
| 338 | else
|
---|
| 339 | CLASSPATH=$CLASSPATH:.:$AUTO_CLASSPATH_DIR
|
---|
| 340 | fi
|
---|
| 341 | for i in $(ls $AUTO_CLASSPATH_DIR/*.jar 2>/dev/null)
|
---|
| 342 | do
|
---|
| 343 | CLASSPATH=$CLASSPATH:$i
|
---|
| 344 | done</userinput></screen>
|
---|
[014d11ad] | 345 |
|
---|
[52d29f7] | 346 | </sect3>
|
---|
[014d11ad] | 347 |
|
---|
[52d29f7] | 348 | </sect2>
|
---|
| 349 |
|
---|
| 350 | <sect2>
|
---|
| 351 | <title>Contents</title>
|
---|
[014d11ad] | 352 |
|
---|
[2a7340c2] | 353 | <segmentedlist>
|
---|
| 354 | <segtitle>Installed Programs</segtitle>
|
---|
| 355 | <segtitle>Installed Libraries</segtitle>
|
---|
| 356 | <segtitle>Installed Directory</segtitle>
|
---|
| 357 |
|
---|
| 358 | <seglistitem>
|
---|
| 359 | <seg>appletviewer, extcheck, idlj, jar, jarsigner, java, javac, javadoc,
|
---|
| 360 | javah, javap, jdb, keytool, native2ascii, orbd, policytool, rmic, rmid,
|
---|
| 361 | rmiregistry, serialver, servertool and tnameserv</seg>
|
---|
| 362 | <seg><envar>$JAVA_HOME</envar>/lib/*, <envar>$JAVA_HOME</envar>/jre/lib/*
|
---|
| 363 | and libjavaplugin_oji.so</seg>
|
---|
| 364 | <seg>/opt/j2sdk</seg>
|
---|
| 365 | </seglistitem>
|
---|
| 366 | </segmentedlist>
|
---|
| 367 |
|
---|
| 368 | <variablelist>
|
---|
| 369 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 370 | <?dbfo list-presentation="list"?>
|
---|
| 371 |
|
---|
| 372 | <varlistentry id="appletviewer">
|
---|
| 373 | <term><command>appletviewer</command></term>
|
---|
| 374 | <listitem><para>runs <application>Java</application> applets outside of the
|
---|
| 375 | context of a browser.</para>
|
---|
| 376 | <indexterm zone="j2sdk appletviewer">
|
---|
| 377 | <primary sortas="b-appletviewer">appletviewer</primary>
|
---|
| 378 | </indexterm></listitem>
|
---|
| 379 | </varlistentry>
|
---|
| 380 |
|
---|
| 381 | <varlistentry id="extcheck">
|
---|
| 382 | <term><command>extcheck</command></term>
|
---|
| 383 | <listitem><para>checks a specified <filename>JAR</filename> file for title
|
---|
| 384 | and version conflicts with any extensions installed in the
|
---|
| 385 | <acronym>JDK</acronym> software.</para>
|
---|
| 386 | <indexterm zone="j2sdk extcheck">
|
---|
| 387 | <primary sortas="b-extcheck">extcheck</primary>
|
---|
| 388 | </indexterm></listitem>
|
---|
| 389 | </varlistentry>
|
---|
| 390 |
|
---|
| 391 | <varlistentry id="idlj">
|
---|
| 392 | <term><command>idlj</command></term>
|
---|
| 393 | <listitem><para>generates <application>Java</application> bindings from a
|
---|
| 394 | given <acronym>IDL</acronym> file.</para>
|
---|
| 395 | <indexterm zone="j2sdk idlj">
|
---|
| 396 | <primary sortas="b-idlj">idlj</primary>
|
---|
| 397 | </indexterm></listitem>
|
---|
| 398 | </varlistentry>
|
---|
| 399 |
|
---|
| 400 | <varlistentry id="jar">
|
---|
| 401 | <term><command>jar</command></term>
|
---|
| 402 | <listitem><para>combines multiple files into a single <acronym>JAR</acronym>
|
---|
| 403 | archive file.</para>
|
---|
| 404 | <indexterm zone="j2sdk jar">
|
---|
| 405 | <primary sortas="b-jar">jar</primary>
|
---|
| 406 | </indexterm></listitem>
|
---|
| 407 | </varlistentry>
|
---|
| 408 |
|
---|
| 409 | <varlistentry id="jarsigner">
|
---|
| 410 | <term><command>jarsigner</command></term>
|
---|
| 411 | <listitem><para>signs <filename>JAR</filename> (Java ARchive) files and
|
---|
| 412 | verifies the signatures and integrity of a signed
|
---|
| 413 | <filename>JAR</filename>.</para>
|
---|
| 414 | <indexterm zone="j2sdk jarsigner">
|
---|
| 415 | <primary sortas="b-jarsigner">jarsigner</primary>
|
---|
| 416 | </indexterm></listitem>
|
---|
| 417 | </varlistentry>
|
---|
| 418 |
|
---|
| 419 | <varlistentry id="java">
|
---|
| 420 | <term><command>java</command></term>
|
---|
| 421 | <listitem><para>launches a <application>Java</application> application by
|
---|
| 422 | starting a <application>Java</application> runtime environment, loading a
|
---|
| 423 | specified class and invoking its main method.</para>
|
---|
| 424 | <indexterm zone="j2sdk java">
|
---|
| 425 | <primary sortas="b-java">java</primary>
|
---|
| 426 | </indexterm></listitem>
|
---|
| 427 | </varlistentry>
|
---|
| 428 |
|
---|
| 429 | <varlistentry id="javac">
|
---|
| 430 | <term><command>javac</command></term>
|
---|
| 431 | <listitem><para>reads class and interface definitions, written in the
|
---|
| 432 | <application>Java</application> programming language, and compiles them into
|
---|
| 433 | bytecode class files.</para>
|
---|
| 434 | <indexterm zone="j2sdk javac">
|
---|
| 435 | <primary sortas="b-javac">javac</primary>
|
---|
| 436 | </indexterm></listitem>
|
---|
| 437 | </varlistentry>
|
---|
| 438 |
|
---|
| 439 | <varlistentry id="javadoc">
|
---|
| 440 | <term><command>javadoc</command></term>
|
---|
| 441 | <listitem><para>parses the declarations and documentation comments in a set of
|
---|
| 442 | <application>Java</application> source files and produces a corresponding set
|
---|
| 443 | of <acronym>HTML</acronym> pages describing the classes, interfaces,
|
---|
| 444 | constructors, methods, and fields.</para>
|
---|
| 445 | <indexterm zone="j2sdk javadoc">
|
---|
| 446 | <primary sortas="b-javadoc">javadoc</primary>
|
---|
| 447 | </indexterm></listitem>
|
---|
| 448 | </varlistentry>
|
---|
| 449 |
|
---|
| 450 | <varlistentry id="javah">
|
---|
| 451 | <term><command>javah</command></term>
|
---|
| 452 | <listitem><para>generates <application>C</application> header and source files
|
---|
| 453 | that are needed to implement native methods.</para>
|
---|
| 454 | <indexterm zone="j2sdk javah">
|
---|
| 455 | <primary sortas="b-javah">javah</primary>
|
---|
| 456 | </indexterm></listitem>
|
---|
| 457 | </varlistentry>
|
---|
| 458 |
|
---|
| 459 | <varlistentry id="javap">
|
---|
| 460 | <term><command>javap</command></term>
|
---|
| 461 | <listitem><para>disassembles a <application>Java</application> class
|
---|
| 462 | file.</para>
|
---|
| 463 | <indexterm zone="j2sdk javap">
|
---|
| 464 | <primary sortas="b-javap">javap</primary>
|
---|
| 465 | </indexterm></listitem>
|
---|
| 466 | </varlistentry>
|
---|
| 467 |
|
---|
| 468 | <varlistentry id="jdb">
|
---|
| 469 | <term><command>jdb</command></term>
|
---|
| 470 | <listitem><para>is a simple command-line debugger for
|
---|
| 471 | <application>Java</application> classes.</para>
|
---|
| 472 | <indexterm zone="j2sdk jdb">
|
---|
| 473 | <primary sortas="b-jdb">jdb</primary>
|
---|
| 474 | </indexterm></listitem>
|
---|
| 475 | </varlistentry>
|
---|
| 476 |
|
---|
| 477 | <varlistentry id="keytool">
|
---|
| 478 | <term><command>keytool</command></term>
|
---|
| 479 | <listitem><para>is a key and certificate management utility.</para>
|
---|
| 480 | <indexterm zone="j2sdk keytool">
|
---|
| 481 | <primary sortas="b-keytool">keytool</primary>
|
---|
| 482 | </indexterm></listitem>
|
---|
| 483 | </varlistentry>
|
---|
| 484 |
|
---|
| 485 | <varlistentry id="native2ascii">
|
---|
| 486 | <term><command>native2ascii</command></term>
|
---|
| 487 | <listitem><para> converts files that contain non-supported character encoding
|
---|
| 488 | into files containing Latin-1 or Unicode-encoded characters.</para>
|
---|
| 489 | <indexterm zone="j2sdk native2ascii">
|
---|
| 490 | <primary sortas="b-native2ascii">native2ascii</primary>
|
---|
| 491 | </indexterm></listitem>
|
---|
| 492 | </varlistentry>
|
---|
| 493 |
|
---|
| 494 | <varlistentry id="orbd">
|
---|
| 495 | <term><command>orbd</command></term>
|
---|
| 496 | <listitem><para>is used to enable clients to transparently locate and invoke
|
---|
| 497 | persistent objects on servers in the <acronym>CORBA</acronym>
|
---|
| 498 | environment.</para>
|
---|
| 499 | <indexterm zone="j2sdk orbd">
|
---|
| 500 | <primary sortas="b-orbd">orbd</primary>
|
---|
| 501 | </indexterm></listitem>
|
---|
| 502 | </varlistentry>
|
---|
| 503 |
|
---|
| 504 | <varlistentry id="policytool">
|
---|
| 505 | <term><command>policytool</command></term>
|
---|
| 506 | <listitem><para>creates and manages a policy file graphically.</para>
|
---|
| 507 | <indexterm zone="j2sdk policytool">
|
---|
| 508 | <primary sortas="b-policytool">policytool</primary>
|
---|
| 509 | </indexterm></listitem>
|
---|
| 510 | </varlistentry>
|
---|
| 511 |
|
---|
| 512 | <varlistentry id="rmic">
|
---|
| 513 | <term><command>rmic</command></term>
|
---|
| 514 | <listitem><para>generates stub and skeleton class files for remote objects
|
---|
| 515 | from the names of compiled <application>Java</application> classes that
|
---|
| 516 | contain remote object implementations.</para>
|
---|
| 517 | <indexterm zone="j2sdk rmic">
|
---|
| 518 | <primary sortas="b-rmic">rmic</primary>
|
---|
| 519 | </indexterm></listitem>
|
---|
| 520 | </varlistentry>
|
---|
| 521 |
|
---|
| 522 | <varlistentry id="rmid">
|
---|
| 523 | <term><command>rmid</command></term>
|
---|
| 524 | <listitem><para>starts the activation system daemon.</para>
|
---|
| 525 | <indexterm zone="j2sdk rmid">
|
---|
| 526 | <primary sortas="b-rmid">rmid</primary>
|
---|
| 527 | </indexterm></listitem>
|
---|
| 528 | </varlistentry>
|
---|
| 529 |
|
---|
| 530 | <varlistentry id="rmiregistry">
|
---|
| 531 | <term><command>rmiregistry</command></term>
|
---|
| 532 | <listitem><para>creates and starts a remote object registry on the specified
|
---|
| 533 | port on the current host.</para>
|
---|
| 534 | <indexterm zone="j2sdk rmiregistry">
|
---|
| 535 | <primary sortas="b-rmiregistry">rmiregistry</primary>
|
---|
| 536 | </indexterm></listitem>
|
---|
| 537 | </varlistentry>
|
---|
| 538 |
|
---|
| 539 | <varlistentry id="serialver">
|
---|
| 540 | <term><command>serialver</command></term>
|
---|
| 541 | <listitem><para>returns the serialVersionUID for one or more classes in a
|
---|
| 542 | form suitable for copying into an evolving class.</para>
|
---|
| 543 | <indexterm zone="j2sdk serialver">
|
---|
| 544 | <primary sortas="b-serialver">serialver</primary>
|
---|
| 545 | </indexterm></listitem>
|
---|
| 546 | </varlistentry>
|
---|
| 547 |
|
---|
| 548 | <varlistentry id="servertool">
|
---|
| 549 | <term><command>servertool</command></term>
|
---|
| 550 | <listitem><para>provides an ease-of-use interface for application programmers
|
---|
| 551 | to register, unregister, startup and shutdown a server.</para>
|
---|
| 552 | <indexterm zone="j2sdk servertool">
|
---|
| 553 | <primary sortas="b-servertool">servertool</primary>
|
---|
| 554 | </indexterm></listitem>
|
---|
| 555 | </varlistentry>
|
---|
| 556 |
|
---|
| 557 | <varlistentry id="tnameserv">
|
---|
| 558 | <term><command>tnameserv</command></term>
|
---|
| 559 | <listitem><para>starts the <application>Java</application>
|
---|
| 560 | <acronym>IDL</acronym> name server.</para>
|
---|
| 561 | <indexterm zone="j2sdk tnameserv">
|
---|
| 562 | <primary sortas="b-tnameserv">tnameserv</primary>
|
---|
| 563 | </indexterm></listitem>
|
---|
| 564 | </varlistentry>
|
---|
| 565 | </variablelist>
|
---|
[52d29f7] | 566 |
|
---|
| 567 | </sect2>
|
---|
[74c1100] | 568 |
|
---|
| 569 | </sect1>
|
---|
| 570 |
|
---|