jdk - Sun Java Development Kit ChangeLog

HOWTO


# J2SE SDK
# ========
# This is the whole Java SE Development Kit package.  For some, the JRE
# (Java Runtime Environment) is good enough.  It's simpler and takes up less
# space, if this is a concern for you, grab that one instead.

# Below are the latest 1.6.x (aka. 6.0) and 1.5.x (aka. 5.0 - I hate that)
# releases.


# JDK 6 Update 5 (1.6.0_05)
# =========================
# To get the JDK, go here:
# http://java.sun.com/javase/downloads/
# and click "Download" in the "JDK 6 Update 5" section.
# Click the Accept radio button (if you accept)
# Click "Linux self-extracting file"
# If you have a slow connection, go get a coffee refill, it's 67MB.
# If the file isn't already in your home directory, put it there.
# Beware if you use lynx, you may get a broken filename like this:
#  jdk-6u5-linux-i586.bin&File=jdk-6u5-linux-i586.bin

cd
test -f installed/jdk-6u5-linux-i586.bin &&
mv installed/jdk-6u5-linux-i586.bin .
sh ./jdk-6u5-linux-i586.bin
# View and agree with the licence again (if you do agree)

# Become root to clean up old files and to install it
su

test -L /usr/local/java && rm /usr/local/java
find /usr/local -maxdepth 1 -type d -name "j2sdk*" -exec rm -r {} \;
find /usr/local -maxdepth 1 -type d -name "jdk?.*" -exec rm -r {} \;
mv -f jdk1.6.0_05 /usr/local/
chown -R root:root /usr/local/jdk1.6.0_05
ln -sf /usr/local/jdk1.6.0_05 /usr/local/java
test -x /sbin/removepkg && /sbin/removepkg j2sdk jre jre-symlink
cat << EOF > /etc/profile.d/j2sdk.sh
#!/bin/sh
export JAVA_HOME="/usr/local/java"
export MANPATH="\$MANPATH:/usr/local/java/man"
export PATH="\$PATH:/usr/local/java/bin:/usr/local/java/jre/bin"
EOF
chmod +x /etc/profile.d/j2sdk.sh

# If you still have /usr/lib/jre*, zap that too

# Become yourself again
exit

rm -f installed/j2sdk-*.bin installed/jdk-*.bin
mv jdk-6u5-linux-i586.bin installed/

# Skip down to the bottom for another step or two


# J2SE 5.0 SDK Update 15 (1.5.0_15)
# ======================
# To get the JDK, go here:
# http://java.sun.com/javase/downloads/
# Click on "Previous Releases".
# Click "J2SE 5.0 Downloads".
# Click "Download" in the "JDK 5.0 Update 15" section.
# Click the Accept radio button (if you agree).
# Click "Linux self-extracting file" in the "Linux Platform" part.
# Either get a coffee refill or go to Starbucks, depending on your
#  connection - it's about 47 MB.
# If the file isn't already in your home directory, put it there.
# Beware if you use lynx, you may get a broken filename like this:
#  jdk-1_5_0_15-linux-i586.bin&File=jdk-1_5_0_15-linux-i586.bin

cd
test -f installed/jdk-1_5_0_15-linux-i586.bin &&
mv installed/jdk-1_5_0_15-linux-i586.bin .
sh ./jdk-1_5_0_15-linux-i586.bin
# View and agree with the licence again (if you do agree)

# Become root to clean up old files and to install it
su

test -L /usr/local/java && rm /usr/local/java
find /usr/local -maxdepth 1 -type d -name "j2sdk*" -exec rm -r {} \;
find /usr/local -maxdepth 1 -type d -name "jdk?.*" -exec rm -r {} \;
mv -f jdk1.5.0_15 /usr/local/
chown -R root:root /usr/local/jdk1.5.0_15
ln -sf /usr/local/jdk1.5.0_15 /usr/local/java
test -x /sbin/removepkg && /sbin/removepkg j2sdk jre jre-symlink
cat << EOF > /etc/profile.d/j2sdk.sh
#!/bin/sh
export JAVA_HOME="/usr/local/java"
export MANPATH="\$MANPATH:/usr/local/java/man"
export PATH="\$PATH:/usr/local/java/bin:/usr/local/java/jre/bin"
EOF
chmod +x /etc/profile.d/j2sdk.sh

# Become yourself again
exit

rm -f installed/j2sdk-*.bin installed/jdk-*.bin
mv jdk-1_5_0_15-linux-i586.bin installed/

# Skip down to the bottom for another step or two


The bottom:

# Add the appropriate directories to your current shell's PATH and MANPATH
# (if they're not already set):
export JAVA_HOME="/usr/local/java"
echo $MANPATH | grep -q "/usr/local/java/man" ||
export MANPATH=$MANPATH:/usr/local/java/man
echo $PATH | grep -q "/usr/local/java/bin" ||
export PATH=$PATH:/usr/local/java/bin
echo $PATH | grep -q "/usr/local/java/jre/bin" ||
export PATH=$PATH:/usr/local/java/jre/bin

# Go to the mozilla-plugins howto to get the plugin installed

List of HOWTOs

Web page itself last updated: 2023-12-20 8:06pm (EDT -0400)
HOWTO last updated: 2008-03-06 5:22pm
Copyright © 2001-2024 Jason Englander. All Rights reserved.
[HTML5]