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
@besnikbelegu
Copy link

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

@catb0t
Copy link

catb0t commented Oct 21, 2018

on 18.04 you also need an old version of ca-certificates-java: https://packages.ubuntu.com/trusty/ca-certificates-java

@bmaupin
Copy link
Author

bmaupin commented Mar 12, 2019

@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!

@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