Last active
December 22, 2023 12:11
-
-
Save bmaupin/ff99b0cc84dd3ad8c4600374f2473184 to your computer and use it in GitHub Desktop.
Install openjdk-6-jdk on Ubuntu/Xubuntu 16.04
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# NOTE: This is a hack and will downgrade the tzdata package. | |
# Better alternatives: | |
# - Use Azul Zulu build of OpenJDK 6 (https://www.azul.com/downloads/zulu/zulu-linux/ - make sure you enable the box labeled Older Zulu versions) | |
# - Install Java 6 directly from Oracle and install it manually (https://gist.github.com/bmaupin/16855ce1b2484c459f41ad836a7d3f2f) | |
wget http://launchpadlibrarian.net/235298493/openjdk-6-jdk_6b38-1.13.10-1_amd64.deb | |
wget http://launchpadlibrarian.net/235298496/openjdk-6-jre_6b38-1.13.10-1_amd64.deb | |
wget http://launchpadlibrarian.net/235298494/openjdk-6-jre-headless_6b38-1.13.10-1_amd64.deb | |
wget http://launchpadlibrarian.net/235298487/openjdk-6-jre-lib_6b38-1.13.10-1_all.deb | |
wget http://launchpadlibrarian.net/250277191/tzdata_2016c-0ubuntu1_all.deb | |
wget http://launchpadlibrarian.net/250277190/tzdata-java_2016c-0ubuntu1_all.deb | |
sudo dpkg -i openjdk-6-jdk_6b38-1.13.10-1_amd64.deb openjdk-6-jre_6b38-1.13.10-1_amd64.deb openjdk-6-jre-headless_6b38-1.13.10-1_amd64.deb openjdk-6-jre-lib_6b38-1.13.10-1_all.deb tzdata_2016c-0ubuntu1_all.deb tzdata-java_2016c-0ubuntu1_all.deb |
and all these on a clean 18.04 install:
sudo apt-get install ttf-dejavu-extra icedtea-netx icedtea-netx-common libpng12-0 libpulse0 libasyncns0 libsndfile1 libflac8 libogg0 libvorbis0a libvorbisenc2 libatk-wrapper-java-jni libatk-bridge2.0-0 libatk-wrapper-java libatspi2.0-0 x11-utils libfontenc1 libxaw7 libxcb-shape0 libxft2 libxmu6 libxt6 libxv1 libxxf86dga1 libxpm4 libice6 libsm6 mesa-utils at-spi2-core
on 18.04 you also need an old version of ca-certificates-java: https://packages.ubuntu.com/trusty/ca-certificates-java
@besnikbelegu @catb0t I'm glad you got it working although I still don't recommend using this. I updated it to add a couple better alternatives. Thanks!
Thanks!
Great Help! Still working
can it work at ubuntu 20.04?
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
To install it on 18.04 you also need to install the following:
sudo apt-get install ttf-dejavu-extra icedtea-netx icedtea-netx-common libpng12-0 libpulse0 libasyncns0 libsndfile1 libflac8 libogg0 libvorbis0a libvorbisenc2