Skip to content

Instantly share code, notes, and snippets.

@bmaupin
Last active December 22, 2023 12:11
Show Gist options
  • Save bmaupin/ff99b0cc84dd3ad8c4600374f2473184 to your computer and use it in GitHub Desktop.
Save bmaupin/ff99b0cc84dd3ad8c4600374f2473184 to your computer and use it in GitHub Desktop.
Install openjdk-6-jdk on Ubuntu/Xubuntu 16.04
# 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
@s3mPr1linux
Copy link

Thanks!

@april1989
Copy link

Great Help! Still working

@hrace009
Copy link

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