Posted By

ashsa on 12/09/10


Tagged

java


Versions (?)

Installing old java 1.4.2 on ubuntu


 / Published in: Bash
 

URL: http://johanlouwers.blogspot.com/2008/09/install-java-j2re-14204-on-ubuntu.html

Installation .bin file must be modified: There's old commands than must be commented/deleted. The 'tail' command is changed (check the starting line for the binary data).

Thanks Johan Louwers!

  1. tail -n +417 $0 > $outname
  2. #if [ -x /usr/bin/sum ] ; then
  3. # echo "Checksumming..."
  4. #
  5. # sum=`/usr/bin/sum $outname`
  6. # index=1
  7. # for s in $sum
  8. # do
  9. # case $index in
  10. # 1) sum1=$s;
  11. # index=2;
  12. # ;;
  13. # 2) sum2=$s;
  14. # index=3;
  15. # ;;
  16. # esac
  17. # done
  18. # if expr $sum1 != 13852 || expr $sum2 != 13822 ; then
  19. # echo "The download file appears to be corrupted. Please refer"
  20. # echo "to the Troubleshooting section of the Installation"
  21. # echo "Instructions on the download page for more information."
  22. # echo "Please do not attempt to install this archive file."
  23. # exit 1
  24. # fi
  25. #else
  26. # echo "Can't find /usr/bin/sum to do checksum. Continuing anyway."
  27. #fi

Report this snippet  

You need to login to post a comment.