This script will install Java in Termux.
Libraries compiled by Hax4us, scripts written by Hax4us, MasterDevX and Guzio, with some very, very tiny help from Harshiv-Patel.
To install Java, open Termux and execute the following command:
pkg install wget && wget https://raw.githubusercontent.com/MasterDevX/java/master/installjava && bash installjava
Eventually, run
wget https://raw.githubusercontent.com/MasterDevX/java/master/installjava && bash installjava
to install Java if you arleady havewget
installed.
Or just
bash installjava
if you have the script arleady downloaded for some reason.
When installed, run java -version
to check, if it's correcty installed (i.e. if it throws command not found error, it's clearly not.)
After that you can run Java using java
command.
We also provide an uninstaller, but since I'm writing this while making that script, there's no way I can attach a command here, as I need a link for that. Anyway, look for uninstall_java.sh
in repo's home.