Changeset 5f0bab7
- Timestamp:
- 04/24/2005 09:52:46 AM (18 years ago)
- Branches:
- 10.0, 10.1, 11.0, 11.1, 11.2, 11.3, 6.1, 6.2, 6.2.0, 6.2.0-rc1, 6.2.0-rc2, 6.3, 6.3-rc1, 6.3-rc2, 6.3-rc3, 7.10, 7.4, 7.5, 7.6, 7.6-blfs, 7.6-systemd, 7.7, 7.8, 7.9, 8.0, 8.1, 8.2, 8.3, 8.4, 9.0, 9.1, basic, bdubbs/svn, elogind, gnome, kde5-13430, kde5-14269, kde5-14686, ken/inkscape-core-mods, krejzi/svn, lazarus, nosym, perl-modules, plabs/python-mods, qt5new, systemd-11177, systemd-13485, trunk, upgradedb, xry111/intltool, xry111/soup3, xry111/test-20220226
- Children:
- 2ae9847
- Parents:
- 6a25deb2
- Files:
-
- 20 edited
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
basicnet/netprogs/subversion.xml
r6a25deb2 r5f0bab7 65 65 <xref linkend="openssh"/> (runtime only), 66 66 <ulink url="http://www.webdav.org/neon/">neon-&svn-neon-version;</ulink>, 67 <xref linkend="j 2sdk"/> (to build the <application>JAVA</application>67 <xref linkend="jdk"/> (to build the <application>JAVA</application> 68 68 bindings), 69 69 <ulink url="http://www.junit.org/">JUnit</ulink> (for running the -
general.ent
r6a25deb2 r5f0bab7 136 136 <!ENTITY gcc3-version "3.3.4"> 137 137 <!ENTITY guile-version "1.6.7"> 138 <!ENTITY j 2sdk-bin-version "1.4.2_07">139 <!ENTITY j 2sdk-src-version "1.4.2">138 <!ENTITY jdk-bin-version "1.5.0_02"> 139 <!ENTITY jdk-src-version "1.5.0"> 140 140 <!ENTITY librep-version "0.17"> 141 141 <!ENTITY NASM-version "0.98.39"> -
general/genutils/pilot-link.xml
r6a25deb2 r5f0bab7 55 55 <sect4><title>Optional</title> 56 56 <para><xref linkend="libpng"/>, 57 <xref linkend="j 2sdk"/>,57 <xref linkend="jdk"/>, 58 58 <xref linkend="tcl"/>, 59 59 <xref linkend="python"/> and -
general/prog/gcc.xml
r6a25deb2 r5f0bab7 175 175 <note><para>Some of the <application>Java</application> programs installed by 176 176 the <application><acronym>GCC</acronym></application> package conflict (have 177 the same names) with programs from the <xref linkend="j 2sdk"/> package. If177 the same names) with programs from the <xref linkend="jdk"/> package. If 178 178 you're installing the <application>Java</application> language from the 179 179 <application><acronym>GCC</acronym></application> package but you wish to 180 use the programs from the <application>J 2SDK</application> as the defaults,180 use the programs from the <application>JDK</application> as the defaults, 181 181 ensure <filename class='directory'>$JAVA_HOME/bin</filename> is listed before 182 182 <filename class='directory'>/usr/bin</filename> in your <envar>PATH</envar> -
general/prog/jdk.xml
r6a25deb2 r5f0bab7 5 5 %general-entities; 6 6 7 <!ENTITY j 2sdk-download-source "http://www.sun.com/software/communitysource/j2se/java2/download.html">8 <!ENTITY j 2sdk-download-binary "http://java.sun.com/j2se/1.4.2/download.html">9 <!ENTITY j 2sdk-source-md5sum "http://anduin.linuxfromscratch.org/sources/BLFS/SVN/I-K/j2sdk-&j2sdk-src-version;.md5sums">10 <!ENTITY j 2sdk-bin-md5sum "a55a9150977de7d5c7f78d29593a8b8c">11 <!ENTITY j 2sdk-bin-size "36.4MB">12 <!ENTITY j 2sdk-src-size "55.1MB (three .zip files)">13 <!ENTITY j 2sdk-src-buildsize "1285MB">14 <!ENTITY j 2sdk-time "29.57SBU">7 <!ENTITY jdk-download-source "http://java.sun.com/j2se/jrl_download.html"> 8 <!ENTITY jdk-download-binary "http://java.sun.com/j2se/1.5.0/download.jsp"> 9 <!ENTITY jdk-source-md5sum "http://anduin.linuxfromscratch.org/sources/BLFS/SVN/I-K/jdk/jdk-&jdk-src-version;.md5sums"> 10 <!ENTITY jdk-bin-md5sum "562d9797af801bfbe2b5e44417d8ccc4"> 11 <!ENTITY jdk-bin-size "45 MB"> 12 <!ENTITY jdk-src-size "65.7 MB (three .zip files)"> 13 <!ENTITY jdk-src-buildsize "1444 MB"> 14 <!ENTITY jdk-time "33.06 SBU"> 15 15 ]> 16 16 17 <sect1 id="j 2sdk" xreflabel="J2SDK-&j2sdk-src-version;">17 <sect1 id="jdk" xreflabel="JDK-&jdk-src-version;"> 18 18 <sect1info> 19 19 <othername>$LastChangedBy$</othername> 20 20 <date>$Date$</date> 21 21 </sect1info> 22 <?dbhtml filename="j 2sdk.html" ?>23 <title><application>J 2<acronym>SDK</acronym></application>-&j2sdk-src-version;</title>24 <indexterm zone="j 2sdk">25 <primary sortas="a-J 2SDK">J2SDK</primary>22 <?dbhtml filename="jdk.html" ?> 23 <title><application>JDK</application>-&jdk-src-version;</title> 24 <indexterm zone="jdk"> 25 <primary sortas="a-JDK">JDK</primary> 26 26 </indexterm> 27 27 28 28 <sect2> 29 29 <title>Introduction to 30 <application>J 2<acronym>SDK</acronym></application></title>31 32 <para>The <application>J 2<acronym>SDK</acronym></application> package contains30 <application>JDK</application></title> 31 32 <para>The <application>JDK</application> package contains 33 33 Sun's <application>Java</application> development environment. This is useful 34 34 for developing <application>Java</application> programs and provides the … … 43 43 This is not the case anymore.</para> 44 44 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 45 <para>In order to use the source code and patches, you must read and agree 46 to the Sun <ulink url="http://java.sun.com/j2se/1.5.0/jrl_5.0-license.txt"> 47 Java Research License</ulink>. In addition, the source code cannot be 47 48 downloaded from some countries, so for users from those countries, the binary 48 may be the only option.</para> 49 50 <para>Even if you plan on compiling the <acronym>JDK</acronym> source, you will 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 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> 49 is the only option.</para> 50 51 <para>If you plan on compiling the <acronym>JDK</acronym> source, you 52 will still need to download the binary version to bootstrap the 53 <acronym>JDK</acronym> build. You will need to download a total of four 54 files to complete the source build: 55 <filename>jdk-1_5_0_02-linux-i586.bin</filename>; 56 <filename>jdk-1_5_0-src-jrl.zip</filename>; 57 <filename>jdk-1_5_0-bin-jrl.zip</filename>; 58 and <filename>jdk-1_5_0-mozilla_headers-unix.zip</filename>.</para> 57 59 58 60 <sect3><title>Package information</title> 59 61 <itemizedlist spacing='compact'> 60 62 <listitem><para>Binary download: 61 <ulink url="&j2sdk-download-binary;"/></para></listitem> 63 <ulink url="&jdk-download-binary;"/></para></listitem> 64 <listitem><para>Version used (binary): 65 &jdk-bin-version;</para></listitem> 66 <listitem><para>Download MD5 sum (binary): 67 &jdk-bin-md5sum;</para></listitem> 62 68 <listitem><para>Source download: 63 <ulink url="&j2sdk-download-source;"/></para></listitem> 64 <listitem><para>Version used (binary): 65 &j2sdk-bin-version;</para></listitem> 66 <listitem><para>Download MD5 sum (binary): 67 &j2sdk-bin-md5sum;</para></listitem> 69 <ulink url="&jdk-download-source;"/></para></listitem> 68 70 <listitem><para>Download MD5 sum (source): 69 <ulink url="&j 2sdk-source-md5sum;"/></para></listitem>71 <ulink url="&jdk-source-md5sum;"/></para></listitem> 70 72 <listitem><para>Download size (binary): 71 &j 2sdk-bin-size;</para></listitem>73 &jdk-bin-size;</para></listitem> 72 74 <listitem><para>Download size (source): 73 &j 2sdk-src-size;</para></listitem>75 &jdk-src-size;</para></listitem> 74 76 <listitem><para>Estimated disk space required: 75 &j 2sdk-src-buildsize;</para></listitem>77 &jdk-src-buildsize;</para></listitem> 76 78 <listitem><para>Estimated build time: 77 &j 2sdk-time;</para></listitem></itemizedlist>79 &jdk-time;</para></listitem></itemizedlist> 78 80 </sect3> 79 81 80 <sect3><title> Additional downloads</title>82 <sect3><title>Needed Patches</title> 81 83 <itemizedlist spacing='compact'> 82 <listitem><para><ulink 83 url="&patch-root;/j 2sdk-&j2sdk-src-version;-fix_inline_asm-1.patch"/></para>84 <listitem><para><ulink 85 url="&patch-root;/jdk-&jdk-src-version;-gcc_3.4.2+-3.patch"/></para> 84 86 </listitem> 85 87 <listitem><para><ulink 86 url="&patch-root;/j 2sdk-&j2sdk-src-version;-gcc33-1.patch"/></para>88 url="&patch-root;/jdk-&jdk-src-version;-motif_mkmsgcat-1.patch"/></para> 87 89 </listitem> 90 <listitem><para><ulink 91 url="&patch-root;/jdk-&jdk-src-version;-nptl-1.patch"/></para></listitem> 88 92 <listitem><para><ulink 89 url="&patch-root;/j 2sdk-&j2sdk-src-version;-motif_mkmsgcat-1.patch"/></para>93 url="&patch-root;/jdk-&jdk-src-version;-remove_broken_demo-1.patch"/></para> 90 94 </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> 95 <listitem><para><ulink 96 url="&patch-root;/jdk-&jdk-src-version;-remove_fixed_paths-1.patch"/></para> 106 97 </listitem> 107 98 </itemizedlist> 108 99 </sect3> 109 100 110 <sect3><title><application>J2SDK</application> dependencies</title> 111 <sect4><title>Required (to build <application>J2SDK</application> from 101 <sect3><title>Recommended Patches</title> 102 <itemizedlist spacing='compact'> 103 <listitem><para><ulink 104 url="&patch-root;/jdk-&jdk-src-version;-remove_debug_image-1.patch"/> 105 (Skips compiling of the <application>JDK</application> debug image)</para> 106 </listitem> 107 <listitem><para><ulink 108 url="&patch-root;/jdk-&jdk-src-version;-static_cxx-1.patch"/> 109 (Forces dynamic linking to gcc libs)</para></listitem> 110 <listitem><para><ulink 111 url="&patch-root;/jdk-&jdk-src-version;-xorg-6.8.1-1.patch"/> 112 (Only required if building agianst <xref linkend="xorg"/>)</para></listitem> 113 </itemizedlist> 114 </sect3> 115 116 117 <sect3><title><application>JDK</application> dependencies</title> 118 <sect4><title>Required (to build <application>JDK</application> from 112 119 source)</title> 113 120 <para>X (<xref linkend="xfree86"/> or <xref linkend="xorg"/>), … … 115 122 <xref linkend="unzip"/>, 116 123 <xref linkend="cpio"/>, 117 <xref linkend="alsa"/>, 118 <xref linkend="tcsh"/> and 119 <xref linkend="gcc3"/></para> 124 <xref linkend="alsa"/>, and 125 <xref linkend="tcsh"/></para> 120 126 </sect4> 121 127 </sect3> … … 124 130 125 131 <sect2> 126 <title>Installation of <application>J 2SDK</application></title>132 <title>Installation of <application>JDK</application></title> 127 133 128 134 <para>Both versions will be installed in parallel. You may choose to keep 129 135 either or both.</para> 130 136 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 137 <para>Install the precompiled <acronym>JDK</acronym> with the 133 138 following commands:</para> 134 139 135 <screen><userinput><command>export VERSION=&j 2sdk-bin-version; &&140 <screen><userinput><command>export VERSION=&jdk-bin-version; && 136 141 export MV=`echo $VERSION | cut -d "_" -f 1,1` && 137 142 export V=`echo ${VERSION} | sed -e "s/\./_/g"` && 138 sed -i "s:^PATH=.*::" j 2sdk-${V}-linux-i?86.bin &&139 chmod +x j 2sdk-${V}-linux-i?86.bin &&143 sed -i "s:^PATH=.*::" jdk-${V}-linux-i?86.bin && 144 chmod +x jdk-${V}-linux-i?86.bin && 140 145 mkdir -p bin && 141 146 ln -sf /bin/true bin/more && 142 yes | PATH=$PWD/bin:$PATH ./j 2sdk-${V}-linux-i?86.bin &&143 cd j 2sdk${VERSION}</command></userinput></screen>147 yes | PATH=$PWD/bin:$PATH ./jdk-${V}-linux-i?86.bin && 148 cd jdk${VERSION}</command></userinput></screen> 144 149 145 150 <para>Now, as the root user:</para> 146 151 147 <screen><userinput role='root'><command>install -d /opt/j 2sdk/j2sdk-precompiled-${MV} &&148 mv * /opt/j 2sdk/j2sdk-precompiled-${MV}149 chown -R root:root /opt/j 2sdk/j2sdk-precompiled-${MV}</command></userinput></screen>152 <screen><userinput role='root'><command>install -d /opt/jdk/jdk-precompiled-${MV} && 153 mv * /opt/jdk/jdk-precompiled-${MV} 154 chown -R root:root /opt/jdk/jdk-precompiled-${MV}</command></userinput></screen> 150 155 151 156 <para>The binary version is now installed.</para> … … 157 162 <para>Add the recently installed <acronym>JDK</acronym> to the path.</para> 158 163 159 <screen><userinput><command>export JAVA_HOME=/opt/j 2sdk/j2sdk-precompiled-${MV} &&164 <screen><userinput><command>export JAVA_HOME=/opt/jdk/jdk-precompiled-${MV} && 160 165 export PATH=$PATH:${JAVA_HOME}/bin</command></userinput></screen> 161 166 162 167 <para>Unzip the sources:</para> 163 168 164 <screen><userinput><command>mkdir j 2sdk-build &&165 cd j 2sdk-build &&166 VERSION=&j 2sdk-src-version; &&169 <screen><userinput><command>mkdir jdk-build && 170 cd jdk-build && 171 VERSION=&jdk-src-version; && 167 172 V=`echo $VERSION | sed -e "s/\./_/g"` && 168 unzip ../j 2sdk-${V}-src-scsl.zip &&169 unzip ../j 2sdk-${V}-mozilla_headers-unix.zip &&170 unzip ../j 2sdk-${V}-bin-scsl.zip</command></userinput></screen>173 unzip ../jdk-${V}-src-jrl.zip && 174 unzip ../jdk-${V}-bin-jrl.zip && 175 unzip ../jdk-${V}-mozilla_headers-unix.zip</command></userinput></screen> 171 176 172 177 <para>Apply all the patches downloaded above.</para> 173 178 174 <screen><userinput><command>for PATCH in ../j2sdk-&j2sdk-src-version;*.patch 175 do 176 patch -Np1 -i $PATCH 179 <screen><userinput><command>for PATCH in ../jdk-&jdk-src-version;*.patch 180 do patch -Np1 -i ${PATCH} 177 181 done</command></userinput></screen> 178 182 … … 186 190 unset LDFLAGS 187 191 export ALT_DEVTOOLS_PATH="/usr/bin" && 188 export BUILD_NUMBER="blfs- `date +%s`" &&192 export BUILD_NUMBER="blfs-&blfs-version;" && 189 193 export DEV_ONLY=true && 190 194 export ALT_MOZILLA_PATH=$PWD && 191 195 export INSANE=true && 192 196 export MAKE_VERBOSE=true && 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> 197 export ALT_CACERTS_FILE=${ALT_BOOTDIR}/jre/lib/security/cacerts</command></userinput></screen> 196 198 197 199 <warning><para>Setting CFLAGS/CXXFLAGS/LDFLAGS is guaranteed to make the build … … 199 201 OTHER_CFLAGS/OTHER_CXXFLAGS/OTHER_LDFLAGS instead.</para></warning> 200 202 201 <para>Additionally, if you would like to make in parallel, add the following 202 (adjust <envar>MAKE_PARALLEL</envar> to your liking):</para> 203 204 <screen><userinput><command>export HOTSPOT_BUILD_JOBS=$MAKE_PARALLEL</command></userinput></screen> 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 209 <application>J2<acronym>SDK</acronym></application>.</para> 210 211 <screen><userinput><command>cd motif/lib/Xm && 212 make && 213 cd ../../..</command></userinput></screen> 214 215 <para>Build <application>J2SDK</application> with the following 203 <para>Additionally, if you would like to make in parallel, add the 204 following:</para> 205 206 <screen><userinput><command>export HOTSPOT_BUILD_JOBS=<replaceable>[3]</replaceable></command></userinput></screen> 207 208 <para>Build the <application>JDK</application> with the following 216 209 commands. There will be a lot of messages about missing files that look like 217 errors. As long as the build doesn't stop, the messages are harmless, so 218 ignore them.</para> 210 errors. These are caused by not meeting the expected build environemnt 211 (Red Hat). As long as the build doesn't stop, the messages 212 are harmless.</para> 219 213 220 214 <screen><userinput><command>cd control/make && … … 222 216 cd ../build/linux-i?86</command></userinput></screen> 223 217 224 <para>Now, as the root user, install <application>J2SDK</application>:</para>225 226 <screen><userinput role='root'><command>cp -a j2sdk-image /opt/j 2sdk/j2sdk-&j2sdk-src-version; &&227 chown -R root:root /opt/j 2sdk/j2sdk-&j2sdk-src-version;</command></userinput></screen>218 <para>Now, as the root user, install the <application>JDK</application>:</para> 219 220 <screen><userinput role='root'><command>cp -a j2sdk-image /opt/jdk/jdk-&jdk-src-version; && 221 chown -R root:root /opt/jdk/jdk-&jdk-src-version;</command></userinput></screen> 228 222 229 223 <para>Restore the environment using the following commands:</para> … … 239 233 unset INSANE && 240 234 unset MAKE_VERBOSE && 241 unset ALT_CACERTS_FILE && 242 export PATH=$PATH_HOLD && 243 unset PATH_HOLD</command></userinput></screen> 235 unset ALT_CACERTS_FILE</command></userinput></screen> 244 236 245 237 </sect2> … … 251 243 the location of the bootstrap <acronym>JDK</acronym>.</para> 252 244 253 <para><command>export ALT_MOZILLA_PATH=$PWD</command>: This sets the254 variable that points to where you unzipped the 255 <application>Mozilla</application> headers .</para>245 <para><command>export ALT_MOZILLA_PATH=$PWD</command>: This tells the build 246 where to find the base directory of the plugin path (which contains the 247 <application>Mozilla</application> headers).</para> 256 248 257 249 <para><command>export ALT_DEVTOOLS_PATH="/usr/bin"</command>: This 258 250 changes the location where the build finds the needed executables.</para> 259 251 260 <para><command>export BUILD_NUMBER="blfs- `date +%s`"</command>: This will261 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>252 <para><command>export BUILD_NUMBER="blfs-&blfs-version;"</command>: 253 This will help you identify the compiled version of the runtime environment 254 and virtual machine by appending this information to the version 255 string.</para> 264 256 265 257 <para><command>export DEV_ONLY=true</command>: This command 266 eliminates compiling the documentation and a dependency for 258 skips compiling the documentation and eliminates a dependency on 267 259 <application>rpm</application>.</para> 268 260 … … 275 267 instructions.</para> 276 268 277 <para><command>unset CFLAGS ...</command>: These flags cause miscompilation278 of the build. Never set these.</para>279 280 <para><command>export INSANE=true</command>: Unless you specify that you281 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>284 285 <para><command>export MAKE_VERBOSE=true</command>: Allows the c urrent286 com pilation commandto be displayed on the console.</para>269 <para><command>unset CFLAGS/CXXFLAGS...</command>: These variables cause 270 miscompilation of the build. Never set them.</para> 271 272 <para><command>export INSANE=true</command>: The certified platform for the 273 build is Redhat Enterprise Advanced Server 2.1. This variable ensures that 274 all the errors related to compiling on a non-certified platform will be 275 displayed as warnings instead of errors.</para> 276 277 <para><command>export MAKE_VERBOSE=true</command>: Allows the compiler 278 commands to be displayed on the console.</para> 287 279 288 280 <para><command>export ALT_CACERTS_FILE...</command>: Specifies the 289 certificate file to use.</para> 281 certificate file to use (from the installed binary 282 <application>JDK</application>).</para> 290 283 291 284 </sect2> 292 285 293 286 <sect2> 294 <title>Configuring <application>J 2SDK</application></title>287 <title>Configuring <application>JDK</application></title> 295 288 296 289 <sect3><title>Configuration Information</title> 297 290 298 291 <para>There are now two Java 2 <acronym>SDK</acronym>'s installed in 299 <filename>/opt/j 2sdk</filename>. You should decide on which one you292 <filename>/opt/jdk</filename>. You should decide on which one you 300 293 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> 302 303 <screen><userinput><command>ln -nsf j2sdk-&j2sdk-src-version; /opt/j2sdk/j2sdk</command></userinput></screen> 304 305 <para>Add the following lines to your shell startup file (e.g., 306 <filename>/etc/profile</filename>).</para> 307 308 <screen><userinput>export JAVA_HOME=/opt/j2sdk/j2sdk 309 export PATH=$PATH:$JAVA_HOME/bin</userinput></screen> 310 311 <para>Add <filename>$JAVA_HOME/man</filename> to your 312 <envar>MANPATH</envar> variable or to 313 <filename>/etc/man.conf</filename></para> 314 315 <para>The <application>Java</application> plugin is in the directory 316 <filename class="directory">$JAVA_HOME/jre/plugin/i?86/ns610/</filename>. 317 Make a symbolic link to the file in that directory from your plugins directory. 318 Note that the plugin must be a symlink for it to work. If not, the browsers 294 compiled <application>JDK</application>, do the following:</para> 295 296 <screen><userinput><command>ln -nsf jdk-&jdk-src-version; /opt/jdk/jdk</command></userinput></screen> 297 298 <para>Add the following <filename>jdk.sh</filename> shell startup file to 299 the <filename>/etc/profile.d</filename> directory with the following 300 commands:</para> 301 302 <screen><userinput><command>cat > /etc/profile.d/jdk.sh << "EOF"</command> 303 # Begin /etc/profile.d/jdk.sh 304 305 # Set JAVA_HOME directory 306 JAVA_HOME=/opt/jdk/jdk 307 export JAVA_HOME 308 309 # Adjust PATH and MANPATH 310 pathappend ${JAVA_HOME}/bin PATH 311 pathappend ${JAVA_HOME}/man MANPATH 312 313 # Auto Java Classpath Updating 314 # Create symlinks to this directory for auto classpath setting 315 AUTO_CLASSPATH_DIR=/usr/lib/classpath 316 if [ -z ${CLASSPATH} ]; then 317 CLASSPATH=.:${AUTO_CLASSPATH_DIR} 318 else 319 pathappend . CLASSPATH 320 pathappend ${AUTO_CLASSPATH_DIR} CLASSPATH 321 fi 322 323 for i in $(ls ${AUTO_CLASSPATH_DIR}/*.jar 2>/dev/null) 324 do pathappend ${i} CLASSPATH 325 done 326 327 # End /etc/profile.d/jdk.sh 328 <command>EOF</command></userinput></screen> 329 330 <para>The <application>Java</application> plugin is loacated in 331 <filename class="directory">$JAVA_HOME/jre/plugin/i?86/ns7/</filename>. 332 Make a symbolic link to the file in that directory from your browser 333 plugins directory.</para> 334 335 <note><para>The plugin must be a symlink for it to work. If not, the browsers 319 336 just crash when you attempt to load a <application>Java</application> 320 plugin.</para> 321 322 </sect3> 323 324 <sect3><title>Handling CLASSPATH</title> 325 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> 333 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> 337 application.</para></note> 345 338 346 339 </sect3> … … 362 355 <seg><envar>$JAVA_HOME</envar>/lib/*, <envar>$JAVA_HOME</envar>/jre/lib/* 363 356 and libjavaplugin_oji.so</seg> 364 <seg>/opt/j 2sdk</seg>357 <seg>/opt/jdk</seg> 365 358 </seglistitem> 366 359 </segmentedlist> … … 374 367 <listitem><para>runs <application>Java</application> applets outside of the 375 368 context of a browser.</para> 376 <indexterm zone="j 2sdk appletviewer">369 <indexterm zone="jdk appletviewer"> 377 370 <primary sortas="b-appletviewer">appletviewer</primary> 378 371 </indexterm></listitem> … … 384 377 and version conflicts with any extensions installed in the 385 378 <acronym>JDK</acronym> software.</para> 386 <indexterm zone="j 2sdk extcheck">379 <indexterm zone="jdk extcheck"> 387 380 <primary sortas="b-extcheck">extcheck</primary> 388 381 </indexterm></listitem> … … 393 386 <listitem><para>generates <application>Java</application> bindings from a 394 387 given <acronym>IDL</acronym> file.</para> 395 <indexterm zone="j 2sdk idlj">388 <indexterm zone="jdk idlj"> 396 389 <primary sortas="b-idlj">idlj</primary> 397 390 </indexterm></listitem> … … 402 395 <listitem><para>combines multiple files into a single <acronym>JAR</acronym> 403 396 archive file.</para> 404 <indexterm zone="j 2sdk jar">397 <indexterm zone="jdk jar"> 405 398 <primary sortas="b-jar">jar</primary> 406 399 </indexterm></listitem> … … 412 405 verifies the signatures and integrity of a signed 413 406 <filename>JAR</filename>.</para> 414 <indexterm zone="j 2sdk jarsigner">407 <indexterm zone="jdk jarsigner"> 415 408 <primary sortas="b-jarsigner">jarsigner</primary> 416 409 </indexterm></listitem> … … 422 415 starting a <application>Java</application> runtime environment, loading a 423 416 specified class and invoking its main method.</para> 424 <indexterm zone="j 2sdk java">417 <indexterm zone="jdk java"> 425 418 <primary sortas="b-java">java</primary> 426 419 </indexterm></listitem> … … 432 425 <application>Java</application> programming language, and compiles them into 433 426 bytecode class files.</para> 434 <indexterm zone="j 2sdk javac">427 <indexterm zone="jdk javac"> 435 428 <primary sortas="b-javac">javac</primary> 436 429 </indexterm></listitem> … … 443 436 of <acronym>HTML</acronym> pages describing the classes, interfaces, 444 437 constructors, methods, and fields.</para> 445 <indexterm zone="j 2sdk javadoc">438 <indexterm zone="jdk javadoc"> 446 439 <primary sortas="b-javadoc">javadoc</primary> 447 440 </indexterm></listitem> … … 452 445 <listitem><para>generates <application>C</application> header and source files 453 446 that are needed to implement native methods.</para> 454 <indexterm zone="j 2sdk javah">447 <indexterm zone="jdk javah"> 455 448 <primary sortas="b-javah">javah</primary> 456 449 </indexterm></listitem> … … 461 454 <listitem><para>disassembles a <application>Java</application> class 462 455 file.</para> 463 <indexterm zone="j 2sdk javap">456 <indexterm zone="jdk javap"> 464 457 <primary sortas="b-javap">javap</primary> 465 458 </indexterm></listitem> … … 470 463 <listitem><para>is a simple command-line debugger for 471 464 <application>Java</application> classes.</para> 472 <indexterm zone="j 2sdk jdb">465 <indexterm zone="jdk jdb"> 473 466 <primary sortas="b-jdb">jdb</primary> 474 467 </indexterm></listitem> … … 478 471 <term><command>keytool</command></term> 479 472 <listitem><para>is a key and certificate management utility.</para> 480 <indexterm zone="j 2sdk keytool">473 <indexterm zone="jdk keytool"> 481 474 <primary sortas="b-keytool">keytool</primary> 482 475 </indexterm></listitem> … … 487 480 <listitem><para> converts files that contain non-supported character encoding 488 481 into files containing Latin-1 or Unicode-encoded characters.</para> 489 <indexterm zone="j 2sdk native2ascii">482 <indexterm zone="jdk native2ascii"> 490 483 <primary sortas="b-native2ascii">native2ascii</primary> 491 484 </indexterm></listitem> … … 497 490 persistent objects on servers in the <acronym>CORBA</acronym> 498 491 environment.</para> 499 <indexterm zone="j 2sdk orbd">492 <indexterm zone="jdk orbd"> 500 493 <primary sortas="b-orbd">orbd</primary> 501 494 </indexterm></listitem> … … 505 498 <term><command>policytool</command></term> 506 499 <listitem><para>creates and manages a policy file graphically.</para> 507 <indexterm zone="j 2sdk policytool">500 <indexterm zone="jdk policytool"> 508 501 <primary sortas="b-policytool">policytool</primary> 509 502 </indexterm></listitem> … … 515 508 from the names of compiled <application>Java</application> classes that 516 509 contain remote object implementations.</para> 517 <indexterm zone="j 2sdk rmic">510 <indexterm zone="jdk rmic"> 518 511 <primary sortas="b-rmic">rmic</primary> 519 512 </indexterm></listitem> … … 523 516 <term><command>rmid</command></term> 524 517 <listitem><para>starts the activation system daemon.</para> 525 <indexterm zone="j 2sdk rmid">518 <indexterm zone="jdk rmid"> 526 519 <primary sortas="b-rmid">rmid</primary> 527 520 </indexterm></listitem> … … 532 525 <listitem><para>creates and starts a remote object registry on the specified 533 526 port on the current host.</para> 534 <indexterm zone="j 2sdk rmiregistry">527 <indexterm zone="jdk rmiregistry"> 535 528 <primary sortas="b-rmiregistry">rmiregistry</primary> 536 529 </indexterm></listitem> … … 541 534 <listitem><para>returns the serialVersionUID for one or more classes in a 542 535 form suitable for copying into an evolving class.</para> 543 <indexterm zone="j 2sdk serialver">536 <indexterm zone="jdk serialver"> 544 537 <primary sortas="b-serialver">serialver</primary> 545 538 </indexterm></listitem> … … 550 543 <listitem><para>provides an ease-of-use interface for application programmers 551 544 to register, unregister, startup and shutdown a server.</para> 552 <indexterm zone="j 2sdk servertool">545 <indexterm zone="jdk servertool"> 553 546 <primary sortas="b-servertool">servertool</primary> 554 547 </indexterm></listitem> … … 559 552 <listitem><para>starts the <application>Java</application> 560 553 <acronym>IDL</acronym> name server.</para> 561 <indexterm zone="j 2sdk tnameserv">554 <indexterm zone="jdk tnameserv"> 562 555 <primary sortas="b-tnameserv">tnameserv</primary> 563 556 </indexterm></listitem> -
general/prog/pdl.xml
r6a25deb2 r5f0bab7 183 183 <ulink url="http://www.svgalib.org/">SVGAlib</ulink>, 184 184 <xref linkend="gnome-libs"/>, 185 <xref linkend="j 2sdk"/>,185 <xref linkend="jdk"/>, 186 186 <xref linkend="tk"/>, 187 187 <xref linkend="python"/> (with the -
general/prog/prog.xml
r6a25deb2 r5f0bab7 23 23 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="gcc3.xml"/> 24 24 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="guile.xml"/> 25 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="j 2sdk.xml"/>25 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="jdk.xml"/> 26 26 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="librep.xml"/> 27 27 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="nasm.xml"/> -
general/sysutils/apache-ant.xml
r6a25deb2 r5f0bab7 59 59 <sect3><title><application>Apache Ant</application> dependencies</title> 60 60 <sect4><title>Required</title> 61 <para><xref linkend="j 2sdk"/></para>61 <para><xref linkend="jdk"/></para> 62 62 </sect4> 63 63 </sect3> -
gnome/add/java-access-bridge.xml
r6a25deb2 r5f0bab7 53 53 <sect3><title><application>Java Access Bridge</application> dependencies</title> 54 54 <sect4><title>Required</title> 55 <para><xref linkend="at-spi"/> and <xref linkend="j 2sdk"/></para>55 <para><xref linkend="at-spi"/> and <xref linkend="jdk"/></para> 56 56 </sect4> 57 57 </sect3> -
introduction/welcome/changelog.xml
r6a25deb2 r5f0bab7 23 23 <itemizedlist> 24 24 25 <listitem><para>April 24th, 2005 [dj]: Updated to JDK-1.5.0, added gcc-3.4.2+ 26 and jdk-1.5.0 patches to OpenOffice, and added jdk-1.5.0 patch for 27 fop.</para></listitem> 28 25 29 <listitem><para>April 24th, 2005 [randy]: Fixed incorrect path pointing to the 26 30 documentation in the Cyrus-SASL configuration section and incorrect library -
introduction/welcome/credits.xml
r6a25deb2 r5f0bab7 190 190 <listitem><para>MySQL: <emphasis>Jesse Tie-Ten-Quee</emphasis></para></listitem> 191 191 192 <listitem><para>fontconfig, gcc, gcc2, j 2sdk, mozilla, nas, openoffice, ispell, nail,192 <listitem><para>fontconfig, gcc, gcc2, jdk, mozilla, nas, openoffice, ispell, nail, 193 193 ImageMagick, hd2u, 194 194 STLport, tcl, tk and bind-utils: <emphasis>Tushar Teredesai</emphasis></para></listitem> … … 294 294 <!-- 295 295 <listitem><para><emphasis>Tushar Teredesai</emphasis> for writing the 296 Compiling Java 2 SDK from Scratch hint on which j 2sdk is based and for writing296 Compiling Java 2 SDK from Scratch hint on which jdk is based and for writing 297 297 the docbook hint used throughout the typesetting chapter.</para></listitem> 298 298 --> -
kde/add/kdebindings.xml
r6a25deb2 r5f0bab7 64 64 <xref linkend="python"/>, 65 65 <xref linkend="ruby"/>, 66 <xref linkend="j 2sdk"/>,66 <xref linkend="jdk"/>, 67 67 <xref linkend="mozilla"/>, 68 68 <ulink url="http://go-mono.org">Mono</ulink>, -
kde/core/kdebase.xml
r6a25deb2 r5f0bab7 63 63 <xref linkend="libxml2"/>, 64 64 <xref linkend="openssl"/> and 65 <xref linkend="j 2sdk"/></para>65 <xref linkend="jdk"/></para> 66 66 </sect4> 67 67 -
postlfs/security/cyrus-sasl.xml
r6a25deb2 r5f0bab7 61 61 <xref linkend="openldap"/>, 62 62 <xref linkend="heimdal"/> or <xref linkend="mitkrb"/>, 63 <xref linkend="j 2sdk"/>,63 <xref linkend="jdk"/>, 64 64 <xref linkend="mysql"/>, 65 65 <xref linkend="postgresql"/>, -
pst/printing/cups.xml
r6a25deb2 r5f0bab7 64 64 <xref linkend="php"/>, 65 65 <xref linkend="python"/>, 66 <xref linkend="j 2sdk"/>,66 <xref linkend="jdk"/>, 67 67 <ulink url="http://www.openslp.org/">OpenSLP</ulink>, 68 68 <ulink url="http://packages.debian.org/unstable/source/libpaper"> -
pst/ps/fop.xml
r6a25deb2 r5f0bab7 58 58 </sect3> 59 59 60 <sect3><title>Required Patch</title> 61 <itemizedlist spacing='compact'> 62 <listitem><para><ulink 63 url="&patch-root;/fop_&fop-version;-jdk_&jdk-src-version;-1.patch"/> For 64 use with jdk-&jdk-src-version;.</para> 65 </listitem> 66 </itemizedlist> 67 </sect3> 68 60 69 <sect3><title>Additional downloads</title> 61 70 <itemizedlist spacing="compact"> … … 78 87 <sect3><title><application>FOP</application> dependencies</title> 79 88 <sect4><title>Required</title> 80 <para><xref linkend="j 2sdk"/></para>89 <para><xref linkend="jdk"/></para> 81 90 </sect4> 82 91 … … 95 104 <title>Installation of <application>FOP</application></title> 96 105 97 <note><para>Ensure <envar>$JAVA_HOME</envar> is set correctly before beginning98 the build. Additionally, the build will fail if your version of the99 <acronym>JDK</acronym> is higher than 1.4.2_x.</para></note>100 101 106 <para>Some versions of tar will display a message similar to 102 107 <quote><computeroutput>tar: A lone zero block at 33476</computeroutput></quote> … … 120 125 following commands:</para> 121 126 122 <screen><userinput><command>./build.sh && 127 <screen><userinput><command>patch -Np1 -i ../fop_&fop-version;-jdk_&jdk-src-version;-1.patch && 128 ./build.sh && 123 129 sed -i -e "s/build/lib/" fop.sh</command></userinput></screen> 124 130 -
server/databases/db.xml
r6a25deb2 r5f0bab7 46 46 <sect3><title><application>Berkeley DB</application> dependencies</title> 47 47 <sect4><title>Optional</title> 48 <para><xref linkend="tcl"/> and <xref linkend="j 2sdk"/></para>48 <para><xref linkend="tcl"/> and <xref linkend="jdk"/></para> 49 49 </sect4> 50 50 </sect3> -
server/major/openssh.xml
r6a25deb2 r5f0bab7 57 57 X (<xref linkend="xfree86"/> or <xref linkend="xorg"/>), 58 58 <xref linkend="mitkrb"/> or <xref linkend="heimdal"/>, 59 <xref linkend="j 2sdk"/>,59 <xref linkend="jdk"/>, 60 60 <xref linkend="net-tools"/>, 61 61 <ulink url="http://www.opensc.org/">OpenSC</ulink> and -
xsoft/graphweb/firefox.xml
r6a25deb2 r5f0bab7 164 164 <para>For installing various <application>Firefox</application> plugins, refer 165 165 to <ulink url="http://plugindoc.mozdev.org/linux.html">Mozdev's PluginDoc 166 Project</ulink>. If you have <xref linkend="j 2sdk"/> already installed, create166 Project</ulink>. If you have <xref linkend="jdk"/> already installed, create 167 167 the following link as the root user to utilize the 168 168 <application>JAVA</application> plugin: </para> -
xsoft/graphweb/mozilla.xml
r6a25deb2 r5f0bab7 343 343 <para>For installing various <application>Mozilla</application> plugins, refer 344 344 to <ulink url="http://plugindoc.mozdev.org/linux.html">Mozdev's PluginDoc 345 Project</ulink>. If you have <xref linkend="j 2sdk"/> already installed, create345 Project</ulink>. If you have <xref linkend="jdk"/> already installed, create 346 346 the following link as the root user to utilize the 347 347 <application>JAVA</application> plugin: </para> -
xsoft/suites/openoffice.xml
r6a25deb2 r5f0bab7 49 49 <itemizedlist spacing='compact'> 50 50 51 <listitem><para>Required patch for gcc-&gcc 3-version;: <ulink52 url="&patch-root;/OOo_&openoffice-version;-gcc 33-1.patch"/></para>51 <listitem><para>Required patch for gcc-&gcc-version;: <ulink 52 url="&patch-root;/OOo_&openoffice-version;-gcc_3.4.2+_fixes-1.patch"/></para> 53 53 </listitem> 54 54 … … 58 58 59 59 <listitem><para>Required patch if compiling with 60 <acronym>J 2SDK</acronym>-&j2sdk-src-version;: <ulink61 url="&patch-root;/OOo_&openoffice-version;-jdk_&j 2sdk-src-version;_fix-1.patch"/></para>60 <acronym>JDK</acronym>-&jdk-src-version;: <ulink 61 url="&patch-root;/OOo_&openoffice-version;-jdk_&jdk-src-version;_fix-1.patch"/></para> 62 62 </listitem> 63 63 … … 68 68 </listitem> 69 69 70 <listitem><para>Required patch for STLport-4.6.2: <ulink 71 url="&patch-root;/OOo_&openoffice-version;-STLport_4.6.2-1.patch"/></para> 72 </listitem> 73 70 74 <listitem><para>Optional patch if you wish to use the system freetype: 71 75 <ulink … … 79 83 </listitem> 80 84 81 <listitem><para>General Polygon Clipper Library (Optional if 82 libart_lgpl-&libart_lgpl-version; is used): <ulink 83 url="ftp://ftp.cs.man.ac.uk/pub/toby/gpc/gpc231.tar.Z"/></para> 85 <listitem><para>STLport-4.6.2: <ulink 86 url="http://www.stlport.org/archive/STLport-4.6.2.tar.gz"/></para> 84 87 </listitem> 85 88 … … 97 100 <xref linkend="zip"/>, 98 101 <xref linkend="unzip"/>, 99 <xref linkend="tcsh"/>, 100 <xref linkend="which"/> and 101 <xref linkend="gcc3"/>.</para> 102 <xref linkend="tcsh"/>, and 103 <xref linkend="which"/>.</para> 102 104 </sect4> 103 105 104 106 <sect4><title>Recommended</title> 105 <para><xref linkend="j 2sdk"/>,107 <para><xref linkend="jdk"/>, 106 108 <xref linkend="freetype2"/>, 107 109 <xref linkend="pkgconfig"/>, 108 <xref linkend="startup-notification"/> and 109 <xref linkend="desktop-file-utils"/>.</para> 110 <xref linkend="startup-notification"/>, 111 <xref linkend="desktop-file-utils"/>, 112 <xref linkend="apache-ant"/>, 113 <xref linkend="libart_lgpl"/>, and 114 <xref linkend="curl"/>.</para> 115 110 116 </sect4> 111 117 112 118 <sect4><title>Optional</title> 113 <para><xref linkend="Linux_PAM"/>, 114 <xref linkend="libart_lgpl"/>, 115 <xref linkend="apache-ant"/> and 116 <xref linkend="curl"/>.</para> 119 <para><xref linkend="Linux_PAM"/> and 120 <xref linkend="nas"/>.</para> 117 121 </sect4> 118 122 </sect3> … … 131 135 tar -zxf ../OOo_&openoffice-version;_source.tar.gz</command></userinput></screen> 132 136 133 <para> Optionally, untar and move the gpc files, and apply the downloaded134 patches:</para> 135 136 <screen><userinput><command>tar -zxf ../gpc231.tar.Z && 137 mv gpc231/* external/gpc && 138 rmdir gpc231 && 139 for patch in ../OOo_&openoffice-version;-*.patch 140 do patch -Np1 -i $patch 141 done</command></userinput></screen>137 <para>Apply all of the downloaded patches:</para> 138 139 <screen><userinput><command>for PATCH in ../OO_&openoffice-version;-*.patch 140 do patch -Np1 -i ${PATCH} 141 done</command></userinput></screen> 142 143 <para>Copy the STLport <acronym>TAR</acronym>ball into the source tree:</para> 144 145 <screen><userinput><command>cp ../STLport-4.6.2.tar.gz stlport/download/</command></userinput></screen> 142 146 143 147 <para>STLport looks for the c++ headers in the wrong location. Put a 144 148 temporary symlink in place to satisfy STLport:</para> 145 149 146 <screen><userinput><command>ln -sf /opt/gcc-&gcc3-version;/include/c++/&gcc3-version; /usr/g++-v3</command></userinput></screen> 147 148 <para>OpenOffice fails to build with gcc-3.4.1. Set your path to 149 include gcc-&gcc3-version;:</para> 150 151 <screen><userinput><command>export PATH_HOLD=$PATH && 152 export PATH=/opt/gcc-&gcc3-version;/bin:$PATH</command></userinput></screen> 150 <screen><userinput><command>ln -sf /usr/include/c++/&gcc-version; /usr/g++-v3</command></userinput></screen> 151 152 <para>Create a temprorary symlink to the <acronym>JRE</acronym>'s 153 <application>motif</application> libraries:</para> 154 155 <screen><userinput><command>ln -sf ${JAVA_HOME}/jre/lib/motif21/libmawt.so /usr/lib</command></userinput></screen> 153 156 154 157 <para>If you want to optimize the build, edit … … 174 177 --with-dict=ENUS --without-fonts \ 175 178 --enable-libsn --with-system-zlib \ 176 --with-system-freetype && 179 --with-system-freetype \ 180 --with-system-curl --disable-fontooo \ 181 --enable-libart && 177 182 cd ..</command></userinput></screen> 178 183 … … 227 232 rename ooo645 ooo /usr/share/applications/ooo645*.desktop</command></userinput></screen> 228 233 229 <para>Finally, re turn your environment to it's original state:</para>230 231 <screen><userinput><command> export PATH=$PATH_HOLD&&232 rm -f /usr/g++-v3</command></userinput></screen>234 <para>Finally, remove the temporary symlinks:</para> 235 236 <screen><userinput><command>rm /usr/g++-v3 && 237 rm /usr/lib/libmawt.so</command></userinput></screen> 233 238 234 239 </sect2> … … 236 241 <sect2> 237 242 <title>Command explanations</title> 238 239 <para>240 <command>mv ../gpc231/gpc.* external/gpc</command>: Copy the gpc files to the241 appropriate location.</para>242 243 243 244 <para><parameter>--with-lang=ENUS</parameter>: Make install set for the
Note:
See TracChangeset
for help on using the changeset viewer.