how to install java in termux without root - java programming language 

Welcome, In this article i am going to show you how to install java jdk/jre in android via Termux app without rooting android device. Java is a general purpose computer programming language with the help of java programming we can develop android applications, Desktop graphical user interface application, web applications, enterprise applications, embedded systems, web servers, scientific application etc.

we can install and run java programming language in termux. so follow the below procedure

Install java in Termux 

open Termux android app and update using apt update command
we need to install drimngr and gnupg by typing this command apt install dirmngr gnupg-curl -y

Now you must add the repository in such directory so use the below command 
mkdir -p $PREFIX/etc/apt/sources.list.d && echo "deb https://termux.xeffyr.ml/ extra main x11" > $PREFIX/etc/apt/sources.list.d/list.list


Its time to update so update termux with apt update command

Now you guys can easily install java jdk in Termux using below command
apt install openjdk-9-jdk-headless -y

Thank you !