[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 |
|
---|
| 7 | <!ENTITY j2sdk-download-http "http://freshmeat.net/projects/sunjdk">
|
---|
| 8 | <!ENTITY j2sdk-download-ftp " ">
|
---|
| 9 | <!ENTITY j2sdk-bin-size "35 MB">
|
---|
| 10 | <!ENTITY j2sdk-src-size "77 MB">
|
---|
| 11 | <!ENTITY j2sdk-src-buildsize "1810 MB">
|
---|
| 12 | <!ENTITY j2sdk-time "85 SBU">
|
---|
| 13 | ]>
|
---|
| 14 |
|
---|
[06aea651] | 15 | <sect1 id="j2sdk" xreflabel="J2SDK-&j2sdk-src-version;">
|
---|
[a0f03b0] | 16 | <sect1info>
|
---|
[5cd0959d] | 17 | <othername>$LastChangedBy$</othername>
|
---|
| 18 | <date>$Date$</date>
|
---|
[a0f03b0] | 19 | </sect1info>
|
---|
[19aa75a] | 20 | <?dbhtml filename="j2sdk.html" ?>
|
---|
[06aea651] | 21 | <title>J2SDK-&j2sdk-src-version;</title>
|
---|
[74c1100] | 22 |
|
---|
[52d29f7] | 23 | <sect2>
|
---|
| 24 | <title>Introduction to j2sdk</title>
|
---|
[014d11ad] | 25 |
|
---|
[52d29f7] | 26 | <para>The <application>J2SDK</application> package contains Sun's
|
---|
| 27 | <application>Java</application> development environment. This is useful for
|
---|
| 28 | developing <application>Java</application> programs and provides the runtime
|
---|
[014d11ad] | 29 | environment necessary to run <application>Java</application> programs. It also
|
---|
[52d29f7] | 30 | includes a plug-in for browsers so that they can be <application>Java
|
---|
| 31 | </application> aware.</para>
|
---|
[014d11ad] | 32 |
|
---|
[52d29f7] | 33 | <para>
|
---|
| 34 | The <acronym>JDK</acronym> comes in two flavors, a precompiled binary and a
|
---|
| 35 | source package. Previously, the plugin included in the <acronym>JDK</acronym> binary
|
---|
| 36 | package was unusable on <acronym>LFS</acronym>
|
---|
| 37 | owing to incompatibilities with <acronym>GCC</acronym>-3 compiled browsers.
|
---|
| 38 | This is not the case anymore.</para>
|
---|
[014d11ad] | 39 |
|
---|
[52d29f7] | 40 | <para>The source package requires registration at the Sun
|
---|
| 41 | developer site and accepting the Sun Community Source License.
|
---|
| 42 | The source code cannot be downloaded from some countries, so for users
|
---|
| 43 | from those countries, the binary may be the only option.</para>
|
---|
[014d11ad] | 44 |
|
---|
| 45 | <para>Even if you plan on compiling the <acronym>JDK</acronym> source, you will
|
---|
[52d29f7] | 46 | need to download the binary version to bootstrap the <acronym>JDK</acronym>
|
---|
| 47 | build. Follow the link below to download both source and binary packages. When
|
---|
| 48 | downloading the source also download the <application>Mozilla</application>
|
---|
| 49 | headers package available at the same location.</para>
|
---|
[014d11ad] | 50 |
|
---|
[52d29f7] | 51 | <!--
|
---|
[014d11ad] | 52 | <para>For users who cannot download the <application>J2SDK</application>
|
---|
| 53 | source owing to license restrictions, <application>blackdown
|
---|
[52d29f7] | 54 | </application> has an <acronym>GCC</acronym>-3 based precompiled version.
|
---|
| 55 | Check out <ulink url="http://www.blackdown.org/"/> for more
|
---|
| 56 | information.</para>
|
---|
| 57 | -->
|
---|
[014d11ad] | 58 |
|
---|
[52d29f7] | 59 | <sect3><title>Package information</title>
|
---|
| 60 | <itemizedlist spacing='compact'>
|
---|
| 61 | <listitem><para>Download (HTTP): <ulink
|
---|
| 62 | url="&j2sdk-download-http;"/></para></listitem>
|
---|
| 63 |
|
---|
| 64 | <!--
|
---|
| 65 | <listitem><para>Download (FTP): <ulink
|
---|
| 66 | url="&j2sdk-download-ftp;"/></para></listitem>
|
---|
| 67 | -->
|
---|
| 68 | <listitem><para>Version used (binary):
|
---|
| 69 | &j2sdk-bin-version;</para></listitem>
|
---|
| 70 | <listitem><para>Download size (binary): &j2sdk-bin-size;</para></listitem>
|
---|
| 71 | <listitem><para>Download size (source): &j2sdk-src-size;</para></listitem>
|
---|
| 72 | <listitem><para>Estimated Disk space required:
|
---|
| 73 | &j2sdk-src-buildsize;</para></listitem>
|
---|
| 74 | <listitem><para>Estimated build time:
|
---|
| 75 | &j2sdk-time;</para></listitem></itemizedlist>
|
---|
| 76 | </sect3>
|
---|
[014d11ad] | 77 |
|
---|
[52d29f7] | 78 | <sect3><title>Additional downloads</title>
|
---|
| 79 | <itemizedlist spacing='compact'>
|
---|
[4f6275fd] | 80 | <listitem><para><ulink url="&patch-root;/j2sdk-&j2sdk-src-version;-fix_inline_asm-1.patch"/></para></listitem>
|
---|
| 81 | <listitem><para><ulink url="&patch-root;/j2sdk-&j2sdk-src-version;-gcc33-1.patch"/></para></listitem>
|
---|
| 82 | <listitem><para><ulink url="&patch-root;/j2sdk-&j2sdk-src-version;-motif_mkmsgcat-1.patch"/></para></listitem>
|
---|
| 83 | <listitem><para><ulink url="&patch-root;/j2sdk-&j2sdk-src-version;-remove_debug_image-1.patch"/></para></listitem>
|
---|
| 84 | <listitem><para><ulink url="&patch-root;/j2sdk-&j2sdk-src-version;-remove_fixed_paths-1.patch"/></para></listitem>
|
---|
| 85 | <listitem><para><ulink url="&patch-root;/j2sdk-&j2sdk-src-version;-static_cxx-1.patch"/></para></listitem>
|
---|
| 86 | <listitem><para><ulink url="&patch-root;/j2sdk-&j2sdk-src-version;-ash-1.patch"/> (Only required if /bin/sh is symlinked to <xref linkend="ash"/>)</para></listitem>
|
---|
[52d29f7] | 87 | </itemizedlist>
|
---|
| 88 | </sect3>
|
---|
[014d11ad] | 89 |
|
---|
[52d29f7] | 90 | <sect3><title><application>J2SDK</application> dependencies</title>
|
---|
| 91 | <sect4><title>Required</title>
|
---|
[014d11ad] | 92 | <para>X (<xref linkend="xfree86"/> or <xref linkend="xorg"/>),
|
---|
| 93 | <xref linkend="zip"/>, <xref linkend="unzip"/>, <xref linkend="cpio"/>,
|
---|
[d496aea] | 94 | <xref linkend="alsa"/>, <xref linkend="tcsh"/> and <xref linkend="gcc3"/>
|
---|
[52d29f7] | 95 | </para></sect4>
|
---|
| 96 | </sect3>
|
---|
[014d11ad] | 97 |
|
---|
[52d29f7] | 98 | </sect2>
|
---|
| 99 |
|
---|
| 100 | <sect2>
|
---|
| 101 | <title>Installation of <application>J2SDK</application></title>
|
---|
[014d11ad] | 102 |
|
---|
[52d29f7] | 103 | <para>Both versions will be installed in parallel. You may choose to keep
|
---|
| 104 | either or both.</para>
|
---|
[014d11ad] | 105 |
|
---|
[52d29f7] | 106 | <para>Installation of the precompiled <acronym>JDK</acronym> is easy:
|
---|
| 107 | create a directory to install from, copy the .bin there, and run the
|
---|
| 108 | following commands:</para>
|
---|
[014d11ad] | 109 |
|
---|
[52d29f7] | 110 | <screen><userinput><command>VERSION=&j2sdk-bin-version; &&
|
---|
| 111 | MV=`echo $VERSION | cut -d "_" -f 1,1` &&
|
---|
| 112 | V=`echo ${VERSION} | sed -e "s/\./_/g"` &&
|
---|
| 113 | sed -i "s:^PATH=.*::" j2sdk-${V}-linux-i?86.bin &&
|
---|
| 114 | chmod +x j2sdk-${V}-linux-i?86.bin &&
|
---|
| 115 | mkdir -p bin &&
|
---|
| 116 | ln -sf /bin/true bin/more &&
|
---|
| 117 | yes | PATH=$PWD/bin:$PATH ./j2sdk-${V}-linux-i?86.bin &&
|
---|
| 118 | cd j2sdk${VERSION} &&
|
---|
| 119 | install -d /opt/j2sdk/j2sdk-precompiled-${MV} &&
|
---|
| 120 | mv * /opt/j2sdk/j2sdk-precompiled-${MV}</command></userinput></screen>
|
---|
[014d11ad] | 121 |
|
---|
| 122 | <para>The binary version is now installed.</para>
|
---|
| 123 |
|
---|
| 124 | <para>If you don't want to compile the source or are not in a position to
|
---|
| 125 | download the source owing to license restrictions, skip ahead to the
|
---|
| 126 | configuration section.</para>
|
---|
| 127 |
|
---|
[52d29f7] | 128 | <para>Add the recently compiled <acronym>JDK</acronym> to the path.</para>
|
---|
[014d11ad] | 129 |
|
---|
[52d29f7] | 130 | <screen><userinput><command>export JAVA_HOME=/opt/j2sdk/j2sdk-precompiled-${MV} &&
|
---|
| 131 | export PATH=$PATH:${JAVA_HOME}/bin</command></userinput></screen>
|
---|
[014d11ad] | 132 |
|
---|
[52d29f7] | 133 | <para>Unzip the source:</para>
|
---|
[014d11ad] | 134 |
|
---|
[52d29f7] | 135 | <screen><userinput><command>VERSION=&j2sdk-src-version; &&
|
---|
| 136 | V=`echo $VERSION | sed -e "s/\./_/g"` &&
|
---|
| 137 | unzip j2sdk-${V}-src-scsl.zip &&
|
---|
| 138 | unzip j2sdk-${V}-mozilla_headers-unix.zip &&
|
---|
| 139 | unzip j2sdk-${V}-bin-scsl.zip</command></userinput></screen>
|
---|
[014d11ad] | 140 |
|
---|
[52d29f7] | 141 | <para>Apply all the patches downloaded above.</para>
|
---|
[014d11ad] | 142 |
|
---|
| 143 | <screen><userinput><command>for PATCH in fix_inline_asm-1 gcc33-1 \
|
---|
| 144 | motif_mkmsgcat-1 remove_debug_image-1 remove_fixed_paths-1 \
|
---|
[d496aea] | 145 | static_cxx-1 nptl-1
|
---|
[52d29f7] | 146 | do
|
---|
[4f6275fd] | 147 | patch -Np1 -i j2sdk-&j2sdk-src-version;-$PATCH.patch
|
---|
[52d29f7] | 148 | done</command></userinput></screen>
|
---|
[014d11ad] | 149 |
|
---|
[52d29f7] | 150 | <para>Set/unset some variables which affect the build:</para>
|
---|
| 151 | <screen><userinput><command>export ALT_BOOTDIR="$JAVA_HOME" &&
|
---|
| 152 | unset JAVA_HOME &&
|
---|
| 153 | unset CLASSPATH
|
---|
| 154 | unset CFLAGS
|
---|
| 155 | unset CXXFLAGS
|
---|
| 156 | unset LDFLAGS
|
---|
| 157 | export ALT_DEVTOOLS_PATH="/usr/bin" &&
|
---|
| 158 | export BUILD_NUMBER="blfs-`date +%s`" &&
|
---|
| 159 | export DEV_ONLY=true &&
|
---|
| 160 | export ALT_MOZILLA_PATH=$PWD &&
|
---|
| 161 | export INSANE=true &&
|
---|
| 162 | export MAKE_VERBOSE=true &&
|
---|
[d496aea] | 163 | export ALT_CACERTS_FILE=${ALT_BOOTDIR}/jre/lib/security/cacerts
|
---|
| 164 | export PATH_HOLD=$PATH
|
---|
| 165 | export PATH=/opt/gcc-&gcc3-version;/bin:$PATH</command></userinput></screen>
|
---|
[014d11ad] | 166 |
|
---|
| 167 | <warning><para>Setting CFLAGS/CXXFLAGS/LDFLAGS is guaranteed to make the build
|
---|
| 168 | fail. If you are interested in optimizing the build, set
|
---|
| 169 | OTHER_CFLAGS/OTHER_CXXFLAGS/OTHER_LDFLAGS instead.</para></warning>
|
---|
| 170 |
|
---|
[52d29f7] | 171 | <para>Additionally, if you would like to make in parallel, add the following
|
---|
| 172 | (adjust <envar>MAKE_PARALLEL</envar> to your liking):</para>
|
---|
| 173 | <screen><userinput><command>export HOTSPOT_BUILD_JOBS=$MAKE_PARALLEL</command></userinput></screen>
|
---|
[014d11ad] | 174 |
|
---|
| 175 | <para>If the included <application>Motif</application> doesn't build properly,
|
---|
| 176 | the error is noticed much later in the build. A solution is to build the
|
---|
| 177 | <application>Motif</application> library before compiling the
|
---|
| 178 | <application>J2SDK</application>.</para>
|
---|
| 179 |
|
---|
[52d29f7] | 180 | <screen><userinput><command>cd motif/lib/Xm &&
|
---|
| 181 | make &&
|
---|
| 182 | cd ../../..</command></userinput></screen>
|
---|
[014d11ad] | 183 |
|
---|
[52d29f7] | 184 | <para>Make and Install <application>J2SDK</application> with the following
|
---|
| 185 | commands. There will be a lot of messages about missing files that look like
|
---|
[014d11ad] | 186 | errors. As long as the build doesn't stop, the messages are harmless, so ignore
|
---|
[52d29f7] | 187 | them.</para>
|
---|
[014d11ad] | 188 |
|
---|
[52d29f7] | 189 | <screen><userinput><command>cd control/make &&
|
---|
| 190 | make &&
|
---|
| 191 | cd ../.. &&
|
---|
| 192 | cd control/build/linux-i?86 &&
|
---|
[d496aea] | 193 | cp -a j2sdk-image /opt/j2sdk/j2sdk-&j2sdk-src-version; &&
|
---|
| 194 | export PATH=$PATH_HOLD</command></userinput></screen>
|
---|
[014d11ad] | 195 |
|
---|
[52d29f7] | 196 | </sect2>
|
---|
| 197 |
|
---|
| 198 | <sect2>
|
---|
| 199 | <title>Command explanations</title>
|
---|
[014d11ad] | 200 |
|
---|
[52d29f7] | 201 | <para><command>export ALT_BOOTDIR="$JAVA_HOME"</command>: This var sets
|
---|
[014d11ad] | 202 | location of the bootstrap <acronym>JDK</acronym>.</para>
|
---|
| 203 |
|
---|
[52d29f7] | 204 | <para><command>export ALT_MOZILLA_PATH=$PWD</command>: This sets the
|
---|
| 205 | variable that points to where you unzipped the <application>Mozilla
|
---|
| 206 | </application> headers.</para>
|
---|
[014d11ad] | 207 |
|
---|
[52d29f7] | 208 | <para><command>export ALT_DEVTOOLS_PATH="/usr/bin"</command>: This
|
---|
[014d11ad] | 209 | changes the location where the build finds the needed executables.</para>
|
---|
| 210 |
|
---|
[52d29f7] | 211 | <para><command>export BUILD_NUMBER="blfs-`date +%s`"</command>: This will
|
---|
| 212 | help you identify this compiled version of the runtime environment and
|
---|
| 213 | virtual machine by appending this information to the version in the
|
---|
| 214 | output to <command>java -version</command>.</para>
|
---|
[014d11ad] | 215 |
|
---|
[52d29f7] | 216 | <para><command>export DEV_ONLY=true</command>: This command
|
---|
| 217 | eliminates compiling the documentation and eliminates a dependency for
|
---|
[014d11ad] | 218 | <application>rpm</application>.</para>
|
---|
| 219 |
|
---|
[52d29f7] | 220 | <para><command>unset JAVA_HOME</command>: This clears the
|
---|
[014d11ad] | 221 | <envar>JAVA_HOME</envar> variable as recommended by the build
|
---|
| 222 | instructions.</para>
|
---|
| 223 |
|
---|
[52d29f7] | 224 | <para><command>unset CLASSPATH</command>: This clears the
|
---|
[014d11ad] | 225 | <envar>CLASSPATH</envar> variable as per the recommendations in the build
|
---|
| 226 | instructions.</para>
|
---|
| 227 |
|
---|
[52d29f7] | 228 | <para><command>unset CFLAGS...</command>: These flags cause miscompilation
|
---|
| 229 | of the build. Never set these.</para>
|
---|
[014d11ad] | 230 |
|
---|
[52d29f7] | 231 | <para><command>export INSANE=true</command>: Unless you specify that you
|
---|
| 232 | are insane the build will not proceed. The certified platform for the build is
|
---|
| 233 | Redhat 6.1. The above variable ensures that all the errors related to
|
---|
| 234 | compiling on a non-certified platform will be converted to warnings.</para>
|
---|
[014d11ad] | 235 |
|
---|
[52d29f7] | 236 | <para><command>export MAKE_VERBOSE=true</command>: Allows the current
|
---|
| 237 | compilation command to be displayed on the console.</para>
|
---|
[014d11ad] | 238 |
|
---|
[52d29f7] | 239 | <para><command>export ALT_CACERTS_FILE...</command>: Specifies the
|
---|
| 240 | certificate file to use.</para>
|
---|
[014d11ad] | 241 |
|
---|
[52d29f7] | 242 | </sect2>
|
---|
| 243 |
|
---|
| 244 | <sect2>
|
---|
| 245 | <title>Configuring <application>J2SDK</application></title>
|
---|
[014d11ad] | 246 |
|
---|
[52d29f7] | 247 | <sect3><title>Configuration Information</title>
|
---|
[014d11ad] | 248 |
|
---|
[52d29f7] | 249 | <para>We have two Java 2 <acronym>SDK</acronym>'s installed in
|
---|
| 250 | <filename>/opt/j2sdk</filename>. Decide on which one you
|
---|
| 251 | would like to use as the default. For example if you decide to use the source
|
---|
| 252 | compiled <application>J2SDK</application>, do the following:</para>
|
---|
[014d11ad] | 253 |
|
---|
[52d29f7] | 254 | <screen><userinput><command>ln -nsf j2sdk-&j2sdk-src-version; /opt/j2sdk/j2sdk</command></userinput></screen>
|
---|
[014d11ad] | 255 |
|
---|
[52d29f7] | 256 | <para>Add the following lines to your shell startup file (e.g.,
|
---|
| 257 | <filename>/etc/profile</filename>).</para>
|
---|
[014d11ad] | 258 |
|
---|
[52d29f7] | 259 | <screen><userinput>export JAVA_HOME=/opt/j2sdk/j2sdk
|
---|
| 260 | export PATH=$PATH:$JAVA_HOME/bin</userinput></screen>
|
---|
[014d11ad] | 261 |
|
---|
[52d29f7] | 262 | <para>Add <filename>$JAVA_HOME/man</filename> to your
|
---|
| 263 | <envar>MANPATH</envar> variable or to
|
---|
| 264 | <filename>/etc/man.conf</filename></para>
|
---|
[014d11ad] | 265 |
|
---|
[52d29f7] | 266 | <para>The <application>Java</application> plugin is in the directory
|
---|
| 267 | <filename class="directory">$JAVA_HOME/jre/plugin/i?86/ns610/</filename>.
|
---|
[53fb68f1] | 268 | Make a symbolic link to the file in that directory from your plugins directory.
|
---|
| 269 | Note that plugin must be a symlink for it to work. If not, the browsers
|
---|
| 270 | just crash when a Java plugin is attempted to be loaded.</para>
|
---|
[014d11ad] | 271 |
|
---|
[52d29f7] | 272 | </sect3>
|
---|
[014d11ad] | 273 |
|
---|
[52d29f7] | 274 | <sect3><title>Handling CLASSPATH</title>
|
---|
[014d11ad] | 275 |
|
---|
[52d29f7] | 276 | <para>When compiling packages, the <envar>CLASSPATH</envar> environment variable
|
---|
[014d11ad] | 277 | is used by JDK to locate classes at compile-time and run-time. It is tedious to
|
---|
| 278 | add all the classes used to the <envar>CLASSPATH</envar> manually. You may add
|
---|
[52d29f7] | 279 | the following lines to your shell startup file to set <envar>CLASSPATH</envar>
|
---|
| 280 | automatically to include all JAR files in a specified directory, which in
|
---|
| 281 | the example below is <filename>/usr/lib/auto-java-classpath</filename>.</para>
|
---|
[014d11ad] | 282 |
|
---|
[52d29f7] | 283 | <screen><userinput>AUTO_CLASSPATH_DIR=/usr/lib/auto-java-classpath
|
---|
| 284 | if [ -z $CLASSPATH ]
|
---|
| 285 | then
|
---|
| 286 | CLASSPATH=.:$AUTO_CLASSPATH_DIR
|
---|
| 287 | else
|
---|
| 288 | CLASSPATH=$CLASSPATH:.:$AUTO_CLASSPATH_DIR
|
---|
| 289 | fi
|
---|
| 290 | for i in $(ls $AUTO_CLASSPATH_DIR/*.jar 2>/dev/null)
|
---|
| 291 | do
|
---|
| 292 | CLASSPATH=$CLASSPATH:$i
|
---|
| 293 | done</userinput></screen>
|
---|
[014d11ad] | 294 |
|
---|
[52d29f7] | 295 | </sect3>
|
---|
[014d11ad] | 296 |
|
---|
[52d29f7] | 297 | </sect2>
|
---|
| 298 |
|
---|
| 299 | <sect2>
|
---|
| 300 | <title>Contents</title>
|
---|
[014d11ad] | 301 |
|
---|
[52d29f7] | 302 | <para>The <application>J2SDK</application> package contains
|
---|
| 303 | <command>appletviewer</command>,
|
---|
| 304 | <command>extcheck</command>, <command>idlj</command>,
|
---|
| 305 | <command>jar</command>, <command>jarsigner</command>,
|
---|
| 306 | <command>java</command>, <command>javac</command>,
|
---|
| 307 | <command>javadoc</command>, <command>javah</command>,
|
---|
| 308 | <command>javap</command>, <command>jdb</command>,
|
---|
| 309 | <command>keytool</command>, <command>native2ascii</command>,
|
---|
| 310 | <command>orbd</command>, <command>policytool</command>,
|
---|
| 311 | <command>rmic</command>, <command>rmid</command>,
|
---|
| 312 | <command>rmiregistry</command>, <command>rmiregistry</command>,
|
---|
| 313 | <command>serialver</command>, <command>servertool</command> and
|
---|
| 314 | <command>tnameserv</command>.</para>
|
---|
[014d11ad] | 315 |
|
---|
[52d29f7] | 316 | </sect2>
|
---|
[014d11ad] | 317 |
|
---|
[52d29f7] | 318 | <sect2><title>Description</title>
|
---|
[014d11ad] | 319 |
|
---|
[52d29f7] | 320 | <sect3><title>appletviewer</title>
|
---|
[014d11ad] | 321 | <para><command>appletviewer</command> runs <application>Java</application>
|
---|
| 322 | applets outside of the context of a browser.</para></sect3>
|
---|
| 323 |
|
---|
[52d29f7] | 324 | <sect3><title>extcheck</title>
|
---|
| 325 | <para><command>extcheck</command> checks a specified <filename>JAR</filename>
|
---|
| 326 | file for title and version conflicts with any extensions installed in the
|
---|
| 327 | <acronym>JDK</acronym> software.</para></sect3>
|
---|
[014d11ad] | 328 |
|
---|
[52d29f7] | 329 | <sect3><title>idlj</title>
|
---|
| 330 | <para><command>idlj</command> generates <application>Java</application>
|
---|
| 331 | bindings from a given <acronym>IDL</acronym> file.</para></sect3>
|
---|
[014d11ad] | 332 |
|
---|
[52d29f7] | 333 | <sect3><title>jar</title>
|
---|
| 334 | <para><command>jar</command> combines multiple files into a single
|
---|
| 335 | <acronym>JAR</acronym> archive file.</para></sect3>
|
---|
[014d11ad] | 336 |
|
---|
[52d29f7] | 337 | <sect3><title>jarsigner</title>
|
---|
| 338 | <para><command>jarsigner</command> signs <filename>JAR</filename>
|
---|
| 339 | (Java ARchive) files and verifies the signatures and integrity of a signed
|
---|
| 340 | <filename>JAR</filename>.</para></sect3>
|
---|
[014d11ad] | 341 |
|
---|
[52d29f7] | 342 | <sect3><title>java</title>
|
---|
| 343 | <para><command>java</command> launches a <application>Java</application>
|
---|
| 344 | application by starting a <application>Java</application> runtime
|
---|
| 345 | environment, loading a specified class and invoking its main
|
---|
| 346 | method.</para></sect3>
|
---|
[014d11ad] | 347 |
|
---|
[52d29f7] | 348 | <sect3><title>javac</title>
|
---|
| 349 | <para><command>javac</command> reads class and interface definitions, written
|
---|
| 350 | in the <application>Java</application> programming language, and compiles them
|
---|
| 351 | into bytecode class files.</para></sect3>
|
---|
[014d11ad] | 352 |
|
---|
[52d29f7] | 353 | <sect3><title>javadoc</title>
|
---|
| 354 | <para><command>javadoc</command> parses the declarations and documentation
|
---|
| 355 | comments in a set of <application>Java</application> source files and produces
|
---|
| 356 | a corresponding set of <acronym>HTML</acronym> pages describing the classes,
|
---|
| 357 | interfaces, constructors, methods, and fields.</para></sect3>
|
---|
[014d11ad] | 358 |
|
---|
[52d29f7] | 359 | <sect3><title>javah</title>
|
---|
| 360 | <para><command>javah</command> generates <application>C</application> header
|
---|
| 361 | and source files that are needed to implement native methods.</para></sect3>
|
---|
[014d11ad] | 362 |
|
---|
[52d29f7] | 363 | <sect3><title>javap</title>
|
---|
| 364 | <para><command>javap</command> disassembles a
|
---|
| 365 | <application>Java</application> class file.</para></sect3>
|
---|
[014d11ad] | 366 |
|
---|
[52d29f7] | 367 | <sect3><title>jdb</title>
|
---|
| 368 | <para><command>jdb</command> is a simple command-line debugger for
|
---|
| 369 | <application>Java</application> classes.</para></sect3>
|
---|
[014d11ad] | 370 |
|
---|
[52d29f7] | 371 | <sect3><title>keytool</title>
|
---|
[014d11ad] | 372 | <para><command>keytool</command> is a key and certificate management
|
---|
| 373 | utility.</para></sect3>
|
---|
| 374 |
|
---|
[52d29f7] | 375 | <sect3><title>native2ascii</title>
|
---|
| 376 | <para><command>native2ascii</command> converts files that contain non-supported
|
---|
[014d11ad] | 377 | character encoding into files containing Latin-1 or Unicode-encoded
|
---|
| 378 | characters.</para></sect3>
|
---|
| 379 |
|
---|
[52d29f7] | 380 | <sect3><title>orbd</title>
|
---|
| 381 | <para><command>orbd</command> is used to enable clients to transparently locate
|
---|
| 382 | and invoke persistent objects on servers in the <acronym>CORBA</acronym>
|
---|
| 383 | environment.</para></sect3>
|
---|
[014d11ad] | 384 |
|
---|
[52d29f7] | 385 | <sect3><title>policytool</title>
|
---|
| 386 | <para><command>policytool</command> creates and manages a policy file
|
---|
| 387 | graphically.</para></sect3>
|
---|
[014d11ad] | 388 |
|
---|
[52d29f7] | 389 | <sect3><title>rmic</title>
|
---|
| 390 | <para><command>rmic</command> generates stub and skeleton class files for
|
---|
| 391 | remote objects from the names of compiled <application>Java</application>
|
---|
| 392 | classes that contain remote object implementations.</para></sect3>
|
---|
[014d11ad] | 393 |
|
---|
[52d29f7] | 394 | <sect3><title>rmid</title>
|
---|
| 395 | <para><command>rmid</command> starts the activation system daemon.</para>
|
---|
| 396 | </sect3>
|
---|
[014d11ad] | 397 |
|
---|
[52d29f7] | 398 | <sect3><title>rmiregistry</title>
|
---|
| 399 | <para><command>rmiregistry</command> creates and starts a remote object
|
---|
| 400 | registry on the specified port on the current host.</para></sect3>
|
---|
[014d11ad] | 401 |
|
---|
[52d29f7] | 402 | <sect3><title>serialver</title>
|
---|
| 403 | <para><command>serialver</command> returns the serialVersionUID for one or
|
---|
| 404 | more classes in a form suitable for copying into an evolving class.</para>
|
---|
| 405 | </sect3>
|
---|
[014d11ad] | 406 |
|
---|
[52d29f7] | 407 | <sect3><title>servertool</title>
|
---|
| 408 | <para><command>servertool</command> provides an ease-of-use interface for
|
---|
[014d11ad] | 409 | application programmers to register, unregister, startup and shutdown a
|
---|
| 410 | server.</para></sect3>
|
---|
| 411 |
|
---|
[52d29f7] | 412 | <sect3><title>tnameserv</title>
|
---|
| 413 | <para><command>tnameserv</command> starts the <application>Java</application>
|
---|
| 414 | <acronym>IDL</acronym> name server.</para></sect3>
|
---|
| 415 |
|
---|
| 416 | </sect2>
|
---|
[74c1100] | 417 |
|
---|
| 418 | </sect1>
|
---|
| 419 |
|
---|