How to compile java Python C programs in termux - List Of Commands

17:15
How to compile java Python C programs in Termux - List Of Commands In this blog, we are going to see the List Of Commands

How to compile java Python C programs in Termux

Java is used to create applications that can be executed on a single computer. It allows the creators to create Applications for multiple platforms OS types.

Python is an advanced programming language use to create fully-functional Desktop Graphical Interface programs, web, and web-based programs for calculations and process maintenance are a common use of Python.

C is a programming language also known as low-level applications programming language example operating systems, device drivers, firmware, etc.

Install the Compilers for C language, use List Of Commands
# Install and compile C programs in termux, use command

$ pkg install clang

c uses command
$ gcc -o ExecutableFileName CurrentFileName.c
$ ./ExecutableFileName

//EXAMPLE
$ gcc -o code code.c
./code

Install Python compiler and use it with list of commands
$ pkg install python

Python uses command
$ python FileName.py

//EXAMPLE
$ python code.py
Install Java compiler, run it using the commands
$ pkg install ecj dx

Java uses command
$ ecj filename.java
$ dx --dex --output=filename.dex filename.class
$ dalvikvm -cp filename.dex filename

//EXAMPLE
$ ecj Hello.java
$ dx --dex --output=Hello.dex Hello.class
$ dalvikvm -cp Hello.dex Hello