0

Java on Termux

Can I install Java on Termux (Termux is an amazing Android app and Linux Terminal).

21st Apr 2019, 2:42 PM
Firefnix
Firefnix - avatar
15 ответов
23rd Apr 2019, 8:35 PM
Firefnix
Firefnix - avatar
+ 9
Termux is not just a terminal emulator. You can install a lot of packages (python, php, nodejs, code editors like micro or vim... ). Thanks to Termux, I don't need to download external editors, and I wanted to do the same thing with Java. In any case thanks for the link !
21st Apr 2019, 3:19 PM
Firefnix
Firefnix - avatar
+ 5
Termux can not install Java itself, but is able to run Ubuntu. In the Termux wiki you have a tutorial on how to install Ubuntu, then search tutorial to install Java in Ubuntu: https://wiki.termux.com/wiki/Ubuntu
23rd Apr 2019, 1:14 AM
InvBoy [ :: FEDE :: ]
InvBoy [ :: FEDE :: ] - avatar
+ 3
wow, I didn't know termux is that powerful. Btw. I just found this but I've no idea if it'll work: https://www.hax4us.com/2018/06/install-latest-java-9-in-termux-without.html?m=1
21st Apr 2019, 3:32 PM
Aaron Eberhardt
Aaron Eberhardt - avatar
+ 3
zenkristaps I already use SublimeText3 on my PC. I was talking about my phone (Termux is an Android app).
22nd Apr 2019, 2:29 PM
Firefnix
Firefnix - avatar
+ 2
It does not seem to work, I found this too. Thanks anyway !
21st Apr 2019, 3:50 PM
Firefnix
Firefnix - avatar
+ 2
*AsterisK* Thanks for the link, but a rooted phone is needed, and it's not my case.
21st Apr 2019, 11:44 PM
Firefnix
Firefnix - avatar
+ 2
zenkristaps I'm currently using micro as text editor. Vim can it run java ? I thought that it was just an editor...
22nd Apr 2019, 2:24 PM
Firefnix
Firefnix - avatar
+ 2
Well no but actually yes. Use ecj as compiler then use dx which converts java bytecode to dalvik bytecode then use dalvikvm for running your converted bytecode its super lightweight and easy but you can't use sun microsystems packages. All of those can be installed using apt (except dalvikvm. Dalvik is always there)
31st Aug 2020, 10:27 AM
Nader Jafari
Nader Jafari - avatar
+ 1
Termux is (as far I understood) just a terminal emulator for Android and therefore it can not simply install things. Even on a regular Linux the package manager does this and on Android that's the Playstore or F-Droid. Also installing an app doesn't usually make it available in the command line. But instead you can just try to install a Java IDE and use it for development. https://blog.idrsolutions.com/2014/12/android-apps-ide-for-java-coder-programmers/
21st Apr 2019, 3:10 PM
Aaron Eberhardt
Aaron Eberhardt - avatar
+ 1
termux sucks lot of storage and get very heavy with time, it is 100% cool anyways, but during the time I use it am not sure if java an be install on it edit: I just found this link https://www.hax4us.com/2017/08/install-java-in-your-termux-then.html?m=1 and you can try find it on git, maybe you can get to install it through there, it's easy that way though
21st Apr 2019, 5:21 PM
✳AsterisK✳
✳AsterisK✳ - avatar
+ 1
Good app but it does not seem to work offline (and I want an offline editor, else I would use SoloLearn editor.
22nd Apr 2019, 2:45 PM
Firefnix
Firefnix - avatar
0
I was facing a issue "unable to locate the package Java". I have followed this java installation tutorial(https://onegyd.com/install-java-in-termux/) and succeed.
16th Jun 2021, 1:39 PM
Edward Thomas
0
Termux is one of my favorites, I can't live without it. https://techyvoice.com/bnsf-emulator-mainframe/
29th Jun 2023, 11:01 AM
skm02