Ignore:
Timestamp:
Dec 15, 2017, 12:43:34 PM (20 months ago)
Author:
mabarracus
Message:

Package Java 8u151

File:
1 edited

Legend:

Unmodified
Added
Removed
  • oracle-java8-installer/trunk/fuentes/developer_helper.sh

    r2122 r6493  
    11#!/bin/bash
    2 
    3 JAVA_VERSION=8u92
    4 URL_FROM_ORACLE="http://download.oracle.com/otn-pub/java/jdk/8u92-b14"
     2set -x
     3JAVA_VERSION=8u151
     4URL_FROM_ORACLE="http://download.oracle.com/otn-pub/java/jdk/8u151-b12/e758a0de34e24606bca991d704f6dcbf"
    55
    66for arch in i586 x64; do
    77        echo " Downloading Java for $arch : STDOUT is disabled"
    8         WGETRC=wgetrc wget --continue --no-check-certificate  --header "Cookie: oraclelicense=a" ${URL_FROM_ORACLE}/jdk-${JAVA_VERSION}-linux-${arch}.tar.gz >/dev/null 2>/dev/null
    9         echo " Moving to the correct place : jdk-8-linux-${arch}.tar.gz"
    10         mv jdk-${JAVA_VERSION}-linux-${arch}.tar.gz jdk-8-linux-${arch}.tar.gz 
    11         echo " Java for $arch is ready"
     8        WGETRC=wgetrc wget --no-cookies --continue --no-check-certificate  --header "Cookie: gpw_e24=http%3A%2F%2Fwww.oracle.com%2F; oraclelicense=accept-securebackup-cookie" ${URL_FROM_ORACLE}/jdk-${JAVA_VERSION}-linux-${arch}.tar.gz >/dev/null 2>/dev/null
     9        if [ $? -eq 0 ]; then
     10            echo " Moving to the correct place : jdk-8-linux-${arch}.tar.gz"
     11            #mv jdk-${JAVA_VERSION}-linux-${arch}.tar.gz jdk-8-linux-${arch}.tar.gz
     12            echo " Java for $arch is ready"
     13        else
     14            echo " Download failed "
     15        fi
    1216done
    1317
Note: See TracChangeset for help on using the changeset viewer.