To install the Linux (self-extracting) file, follow these instructions:
su
cd <directory path name>
cd /usr/java/
chmod a+x jre-1_5_0-linux-i586.bin
ls -l
./jre-1_5_0-linux-i586.bin
ls
# Mozilla 1.4 and later # Mozilla 1.2, Netscape 6 and later
Mozilla 1.4 and later
cd <Mozilla installation directory>/plugins
ln -s <JRE installation directory>/plugin/i386/ns7/libjavaplugin_oji.so
/usr/lib/mozilla-1.4/
/usr/java/jre1.5.0
cd /usr/lib/mozilla-1.4/plugins
ln -s /usr/java/jre1.5.0/plugin/i386/ns7/libjavaplugin_oji.so.
First, install asdf as well as its java plugin:
$ git clone https://github.com/asdf-vm/asdf.git ~/.asdf --branch v0.14.0
Then, depending of your shell, chose the right instructions (<your shell> + git) from the official doc.
Once you have installed asdf, add its Java plugin:
$ asdf plugin-add java https://github.com/halcyon/asdf-java.git
Finally, pick a version of openjdk and install it:
$ asdf list all java ... openjdk-9 openjdk-9.0.1 openjdk-9.0.4 openjdk-10 openjdk-10.0.1 openjdk-10.0.2 openjdk-11 openjdk-11.0.1 openjdk-11.0.2 openjdk-12 openjdk-12.0.1 openjdk-12.0.2 openjdk-13 openjdk-13.0.1 openjdk-13.0.2 openjdk-14 openjdk-14.0.1 openjdk-14.0.2 openjdk-15 openjdk-15.0.1 openjdk-15.0.2 openjdk-16 openjdk-16.0.1 openjdk-16.0.2 openjdk-17 openjdk-17.0.1 openjdk-17.0.2 openjdk-18 openjdk-18.0.1 openjdk-18.0.1.1 openjdk-18.0.2 openjdk-18.0.2.1 openjdk-19 openjdk-19.0.1 openjdk-19.0.2 openjdk-20 openjdk-20.0.1 openjdk-20.0.2 openjdk-21 openjdk-21.0.1 openjdk-21.0.2 openjdk-22 openjdk-22.0.1 openjdk-22.0.2 ...
$ asdf install java openjdk-17 $ asdf global java openjdk-17