Oracle JDK
Arrancar docker
FROM ubuntu:trusty
# Set maintainer details
MAINTAINER SHAMEERA
# Install prerequisites
apt-get update
apt-get install -y software-properties-common
# Install java8
add-apt-repository -y ppa:webupd8team/java
apt-get update
echo oracle-java8-installer shared/accepted-oracle-license-v1-1 select true | sudo /usr/bin/debconf-set-selections
apt-get install -y oracle-java8-installer
After you build and run this docker images. you can see the java version by using "java -version" command. It will output following.
java version "1.8.0_45"
Java(TM) SE Runtime Environment (build 1.8.0_45-b14)
Java HotSpot(TM) 64-Bit Server VM (build 25.45-b02, mixed mode)
Last updated