How to write, compile, and run Java programs on Android — using Termux 📱

preview_player
Показать описание
Simple and easy tutorial on how to create and run your own Java programs on any Android device using Termux and openjdk.

As of the date of this video's creation, August 22, 2022, the latest version of openjdk available on Termux is openjdk-17. You may need or want to download a newer version if you are watching this video far into the future.

Shoutout to the developers of openjdk!

Quick rundown:

1. Install openjdk with the Termux package manager (pkg install openjdk-17)
2. Create a Java file (.java)
4. Run the compiled .class file with "java filename" where filename is the name of your .class file

If this was helpful please drop a like and consider subscribing. Please leave feedback if you encountered any problems. Thank you for watching!
Рекомендации по теме
welcome to shbcf.ru