Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The current install scripts for Oracle Java 8 are broken #36

Open
doctorpangloss opened this issue Jan 17, 2018 · 6 comments
Open

The current install scripts for Oracle Java 8 are broken #36

doctorpangloss opened this issue Jan 17, 2018 · 6 comments

Comments

@doctorpangloss
Copy link

  Downloading Oracle Java 8...
  --2018-01-17 09:32:46--  http://download.oracle.com/otn-pub/java/jdk/8u151-b12/e758a0de34e24606bca991d704f6dcbf/jdk-8u151-linux-x64.tar.gz
  Resolving download.oracle.com (download.oracle.com)... 104.91.214.56
  Connecting to download.oracle.com (download.oracle.com)|104.91.214.56|:80... connected.
  HTTP request sent, awaiting response... 302 Moved Temporarily
  Location: https://edelivery.oracle.com/otn-pub/java/jdk/8u151-b12/e758a0de34e24606bca991d704f6dcbf/jdk-8u151-linux-x64.tar.gz [following]
  --2018-01-17 09:32:46--  https://edelivery.oracle.com/otn-pub/java/jdk/8u151-b12/e758a0de34e24606bca991d704f6dcbf/jdk-8u151-linux-x64.tar.gz
  Resolving edelivery.oracle.com (edelivery.oracle.com)... 23.39.16.136, 2600:1409:a:39c::2d3e, 2600:1409:a:39e::2d3e
  Connecting to edelivery.oracle.com (edelivery.oracle.com)|23.39.16.136|:443... connected.
  HTTP request sent, awaiting response... 302 Moved Temporarily
  Location: http://download.oracle.com/otn-pub/java/jdk/8u151-b12/e758a0de34e24606bca991d704f6dcbf/jdk-8u151-linux-x64.tar.gz?AuthParam=1516181686_af52182dccb9555603c4b4a64e6cfb93 [following]
  --2018-01-17 09:32:46--  http://download.oracle.com/otn-pub/java/jdk/8u151-b12/e758a0de34e24606bca991d704f6dcbf/jdk-8u151-linux-x64.tar.gz?AuthParam=1516181686_af52182dccb9555603c4b4a64e6cfb93
  Connecting to download.oracle.com (download.oracle.com)|104.91.214.56|:80... connected.
  HTTP request sent, awaiting response... 404 Not Found
  2018-01-17 09:32:46 ERROR 404: Not Found.
@martinfaust
Copy link

martinfaust commented Jan 17, 2018

in my dockerfile i use:

    JAVA_VERSION_MAJOR=8 \
    JAVA_VERSION_MINOR=162 \
    JAVA_VERSION_BUILD=12 \
    JAVA_DOWNLOAD_HASH=0da788060d494f5095bf8624735fa2f1

and:

# Oracle Java
  && mkdir -p /usr/lib/jvm \
  && cd /usr/lib/jvm \
  && wget -nv --no-check-certificate --no-cookies --header "Cookie: oraclelicense=accept-securebackup-cookie" http://download.oracle.com/otn-pub/java/jdk/${JAVA_VERSION_MAJOR}u${JAVA_VERSION_MINOR}-b${JAVA_VERSION_BUILD}/${JAVA_DOWNLOAD_HASH}/jdk-${JAVA_VERSION_MAJOR}u${JAVA_VERSION_MINOR}-linux-x64.tar.gz \
  && tar xf jdk-${JAVA_VERSION_MAJOR}u${JAVA_VERSION_MINOR}-linux-x64.tar.gz \
  && rm jdk-${JAVA_VERSION_MAJOR}u${JAVA_VERSION_MINOR}-linux-x64.tar.gz \
  && update-alternatives --install "/usr/bin/java" "java" "/usr/lib/jvm/jdk1.${JAVA_VERSION_MAJOR}.0_${JAVA_VERSION_MINOR}/bin/java" 1 \

@doctorpangloss
Copy link
Author

@martinfaust have you tried this install script lately? :) Everything is broken for everyone!

@vijaySamanuri
Copy link

@btrajkovski
Copy link

Until web8upd updates the version to 162, this will be broken.

Do you see any alternative here, instead of using the web8upd repository because this is the second time this is happening in 2-3 months? They seem to be a bit slow in keeping their version up to date with oracle website and oracle remove old versions almost immediately on launch of new one.

Maybe using some script like @martinfaust will be a more long term solution.

@martinfaust
Copy link

@doctorpangloss Yes, the above is the latest java8 as of today, and my docker image builds just fine with this. Of course I have to update the version, build, and hash on every java release..

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants
@doctorpangloss @vijaySamanuri @martinfaust @btrajkovski and others