是否可以在Android设备上安装JDK? [英] Is it possible to install the JDK on an android device?
问题描述
我希望能够在android终端termux中编译和运行基本的java应用程序。我检查了终端IDE,但这与Android 5.0+不兼容。另外,我试图从Oracle的网站安装arm64 jdk,android无法识别。我正在运行CM 13并澄清,我希望能够直接从我的手机运行javac和java等命令。
I want to be able to compile and run basic java apps within the android terminal termux. I checked out Terminal IDE, but that is incompatible with Android 5.0+. Additionally, I tried to install the arm64 jdk from Oracle's website, which android fails to recognize. I am running CM 13 and to clarify, I want to be able to run commands like javac and java directly from my phone.
推荐答案
@moderatelygood访问Google Play商店并下载GNURoot Debian。它是一个fakeroot,即终端模拟器。 Play Sore中有许多其他终端仿真器,但这个非常好。它位于 https://github.com/corbinlc/GNURootDebian ,网站 http://corbinlc.github.io/GNURootDebian 您可以下载许多这样的软件包:
@moderatelygood Go to Google Play Store and download GNURoot Debian. It is a fakeroot, i.e. terminal emulator. Many other terminal emulators are available in the Play Sore, but this ine is very good. It lives at https://github.com/corbinlc/GNURootDebian and website is http://corbinlc.github.io/GNURootDebian You can download many packages like this:
apt-get update
apt-get update
apt-get install default-jdk
apt-get install default-jdk
apt- get install python
apt-get install python
等等。
您可以用这些语言编译/运行程序。使用一些文本编辑器编写程序,如Jota文本编辑器,也可以在Play商店中使用。
You would be able to compile/run programs in these languages. Use some text editor to write programs, like Jota Text Editor, also available in Play Store.
这篇关于是否可以在Android设备上安装JDK?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!