How To Install Java In Termux On Android Without Root

Join Eugine Tech On Telegram


How To Install Java In Termux On Android Without Root.

In this blog post I am gonna write some simple steps for the installation of java in termux without rooting you android device. There some few steps you have to do only. If you are java programmer looking for java, run java programs in android. It work totally like work on windows command prompt cli. But few features are not available or few packages are not work like awt (abstract window toolkit) & applets programs. But maximum work done by this open-jdk-jre headless.Installation process :

First update and upgrade the termux type the following commands.

 apt update

 apt upgrade

Now, install the package wget execute command

apt install wget

Copy the this link and paste it on Termux by using command.


This command will download openjdk-9-jdk-headless_9.2017.8.20-1_arm.deb file to your termux
Next you have to download openjdk-9-jre-headless_9.2017.8.20-1_arm.deb file to your.This file is approx 220mb so, it will take some time to download. Copy the command from here.

Here, You will get two files openjdk-9-jdk-headless_9.2017.8.20-1_arm.deb
You have to install both file one by one to install them execute command

apt-get install -y ./openjdk-9-jdk-headless_9.2017.8.20-1_arm.deb

Again for second deb file

apt-get install -y ./openjdk-9-jre-headless_9.2017.8.20-1_arm.deb

Now check whether Java is installed
Type  java on termux
Then type javac
Now you can compile and run java program in termux.