From 62a4f1ac173ba09c9095d8055d22cf9e19e90613 Mon Sep 17 00:00:00 2001 From: Kevin Date: Sun, 3 Jan 2016 01:36:29 -0800 Subject: [PATCH] Fix default Java version The default Java binary was not updated. bash-4.1# java -version java version "1.5.0" gij (GNU libgcj) version 4.4.7 20120313 (Red Hat 4.4.7-16) bash-4.1# $JAVA_HOME/bin/java -version java version "1.7.0_51" Java(TM) SE Runtime Environment (build 1.7.0_51-b13) Java HotSpot(TM) 64-Bit Server VM (build 24.51-b03, mixed mode) --- Dockerfile | 1 + 1 file changed, 1 insertion(+) diff --git a/Dockerfile b/Dockerfile index 78d84c9..eb4e111 100644 --- a/Dockerfile +++ b/Dockerfile @@ -28,6 +28,7 @@ RUN rm jdk-7u71-linux-x64.rpm ENV JAVA_HOME /usr/java/default ENV PATH $PATH:$JAVA_HOME/bin +RUN rm /usr/bin/java && ln -s $JAVA_HOME/bin/java /usr/bin/java # download native support RUN mkdir -p /tmp/native