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.
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。