Advertisement
cielavenir

java-6-oracle installer

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