Docker: Install default JDK on Debian sid
JDK 8 is not available in the repositories of Debian sid anymore.
@@ -14,6 +14,7 @@ RUN apt-get update && apt-get -y install \
clang-format-6.0 \
cmake \
curl \
+ default-jdk \
dh-lua \
gawk \
git \
@@ -45,7 +46,6 @@ RUN apt-get update && apt-get -y install \
moreutils \
ninja-build \
npm \
- openjdk-8-jdk \
pkg-config \
python-dev \
python-pip \
@@ -71,11 +71,6 @@ RUN mkdir -p ${GTEST_ROOT} \
&& tar -zxvf gtest.tar.gz --strip-components=1 -C ${GTEST_ROOT} \
&& rm gtest.tar.gz
-# Handle Java
-RUN echo 'export JAVA_HOME=$(readlink -f /usr/bin/javac | sed "s:/bin/javac::")'>> /etc/bash.bashrc
-RUN echo '\
-/usr/lib/jvm/java-8-openjdk-amd64/jre/lib/amd64/\n\
-/usr/lib/jvm/java-8-openjdk-amd64/jre/lib/amd64/server/\n' > /etc/ld.so.conf.d/jdk.conf
RUN ldconfig
# Prettier
