简体   繁体   English

java 命令在 Android 中的什么位置?

[英]Where is java command located in Android?

I got my android phone rooted and I'm aware that the / doesn't contain the familiar linux / .我让我的安卓手机扎根了,我知道/不包含熟悉的 linux /

Is there a java command?java命令吗? Where is it located?它位于哪里? I don't find one in /system/bin .我在/system/bin没有找到。

Is there a java command?java命令吗?

No. Such a command isn't shipped with stock Android images.不。这样的命令不附带库存Android图像。

Where is it located?它位于哪里?

It shouldn't exist on filesystem.它不应该存在于文件系统中。 What makes you think it should be there?是什么让你认为它应该在那里?

I don't find one in /system/bin .我在/system/bin没有找到。

You might consider installing any Java programming app for Android to have JDK/JRE installed.您可以考虑为Android安装任何Java编程应用程序以安装JDK/JRE In this case the command will be located in the app's sandbox, not /system/bin .在这种情况下,命令将位于应用程序的沙箱中,而不是/system/bin

Android does not use Java at all, at runtime. Android 在运行时根本不使用 Java。

Android runs programs that have been written in the Java language. Android 运行用 Java 语言编写的程序。 Those programs are not compiled to Java bytecodes and will not run on a JVM.这些程序不会编译为 Java 字节码,也不会在 JVM 上运行。

Android executes Dalvik bytecodes. Android 执行 Dalvik 字节码。 Until somewhere around Android 4, it used a virtual machine called Dalvik, to execute these bytecodes.直到 Android 4 左右,它使用一个名为 Dalvik 的虚拟机来执行这些字节码。 Now it uses fantastically more complex virtual machine called ART.现在它使用非常复杂的虚拟机,称为 ART。

Sorry.对不起。 No Java.没有爪哇。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM