Java on Termux
Can I install Java on Termux (Termux is an amazing Android app and Linux Terminal).
Finally, 「ＨＡＰＰＹ ＴＯ ＨＥＬＰ」 had the answer. https://code.sololearn.com/WnXShjZ686ht/?ref=app Thanks a lot !
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 !
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
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
zenkristaps I already use SublimeText3 on my PC. I was talking about my phone (Termux is an Android app).
It does not seem to work, I found this too. Thanks anyway !
*AsterisK* Thanks for the link, but a rooted phone is needed, and it's not my case.
zenkristaps I'm currently using micro as text editor. Vim can it run java ? I thought that it was just an editor...
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)
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/
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
Good app but it does not seem to work offline (and I want an offline editor, else I would use SoloLearn editor.
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.