Skip to content

zaoqi-clone/run_java

This branch is 3 commits ahead of, 2 commits behind 7emotions/run_java:master.

Folders and files

NameName
Last commit message
Last commit date

Latest commit

693913a · Jul 30, 2019

History

30 Commits
Jul 20, 2019
Jul 21, 2019
Jul 30, 2019
Jul 20, 2019

Repository files navigation

run_java

Run java program in termux.

Because the JDK is too big to install in termux.
So it has another way to run Java program in termux---ecj.
This script can automatically install ecj, dx and termux-tools in termux to run Java program.

Install

pkg i git ecj dx -y
cd ~
git clone https://github.com/HemanthJabalpuri/run_java
cd run_java
sh install.sh

Run java program

javac <JavaFile>.java
java <JavaFile>

example:

cd ~/run_java
javac ./Test/HelloWorld.java
java ./Test/HelloWorld

Note:- javac produces dex file which is finally executed by Dalvik Virtual Machine that comes with all android devices.

About

Run java program in termux.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Shell 90.7%
  • Java 9.3%