Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/sh
- export URL="http://download.oracle.com/otn-pub/java/jdk/6u30-b12/jdk-6u30-linux-i586.bin"
- export DIR="jdk1.6.0_30"
- mkdir /usr/lib/jvm/java-6-oracle 2>/dev/null
- cd /usr/lib/jvm/java-6-oracle || exit
- rm -rf *
- wget -O jdk.tmp $URL
- unzip jdk.tmp
- rm jdk.tmp
- mv $DIR/* ./
- rmdir $DIR
- for file in `find -name "*.pack"`;do jre/bin/unpack200 $file ${file%%.pack}.jar;rm -f $file;done
- rm /usr/lib/jvm/java-6-sun
- ln -s java-6-oracle /usr/lib/jvm/java-6-sun
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement