Comments (5)
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 \
from java.
@martinfaust have you tried this install script lately? :) Everything is broken for everyone!
from java.
http://www.oracle.com/technetwork/java/javase/8u151-relnotes-3850493.html expired on jan 16th 2018
latest is http://www.oracle.com/technetwork/java/javase/8u162-relnotes-4021436.html which will expire on April 17th.
from java.
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.
from java.
@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..
from java.
Related Issues (20)
- pull oracle-java7 error
- JAVA_HOME HOT 2
- Consider deleting tar.gz of the JDK after installation HOT 1
- Version tagged releases HOT 1
- java:oracle-java8 not found HOT 8
- dockerfile/java is missing from Docker repo? HOT 1
- docker image
- All the dockerfile images seem to have vanished from hub.docker.com HOT 3
- Ubuntu version HOT 1
- OpenJDK 8 Not available
- Problem during install java image into docker HOT 9
- bash: javac: command not found HOT 2
- Error: image oracle/serverjre:8 not found HOT 1
- Error: image dockerfile/java:latest not found HOT 3
- user stdin for java docker container at Run time.
- Lucky Number program
- Rename oracle-java HOT 2
- Use OpenJDK HOT 11
- Tag `oracle-java8` not found HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from java.