I am trying to install JDK8 on a Debian Stretch. The recommended way is to use JavaPackage .
I have successfully packaged JDK6 and JDK7 using this method:
- Download JDK Archive from Oracle
fakeroot make-jpkg jdk-7u55-linux-x64.tar.gzdpkg -i the-resulting.deb
I can successfully create .deb from the JDK8 archive, but when I install it with dpkg, I miss many dependencies.
gnome-icon-theme gtk-update-icon-cache java-common libasound2 libasound2-data libatk1.0-0 libatk1.0-data libcroco3 libdrm-amdgpu1 libdrm-intel1 libdrm-nouveau2 libdrm-radeon1 libdrm2 libgail-common libgail18 libgl1-mesa-dri libgl1-mesa-glx libglapi-mesa libgtk2.0-0 libgtk2.0-bin libgtk2.0-common libllvm3.9 libpciaccess0 librsvg2-2 librsvg2-common libtxc-dxtn-s2tc libx11-xcb1 libxcb-dri2-0 libxcb-dri3-0 libxcb-glx0 libxcb-present0 libxcb-sync1 libxcomposite1 libxcursor1 libxdamage1 libxfixes3 libxi6 libxinerama1 libxrandr2 libxshmfence1 libxtst6 libxxf86vm1 x11-common
I can install them manually, but I'm not sure why I did not have this problem with earlier JDKs. I am writing a script installation, and it would be very convenient for me to install only one .deb, and not install all the additional dependencies separately.
make-jpkg supports JDK8 according to its page.
make-jpkg builds a Debian package from the given Java distribution FILE.
Supported java binary distributions currently include:
* Oracle (http:
- The Java Development Kit (JDK), version 6, 7 and 8
- The Java Runtime Environment (JRE), version 6, 7 and 8
- The Java API Javadoc, version 6, 7 and 8
(Choose tar.gz archives or self-extracting archives, do _not_ choose the RPM!)
- , .deb, JDK, - . , , , Debian .
: Server Fault, - :
, deb , JDK. Debian , . , , , (debian/control). , , , .