可以在安卓应用中运行一个JAR文件吗?

huangapple go评论62阅读模式
英文:

Is it possible to run a jar file in an android application?

问题

我是Android的初学者,我想开发一个应用程序,向用户显示一系列的jar文件,并且用户可以选择其中一个并运行它。在Android应用程序中运行jar文件是否可行?(不是作为库)

英文:

I am a begginer in android and I want to develop an application which show a list of jar files to user and user can choose one of them and run it. Is it possible to run a jar file in an android application? (not as a library)

答案1

得分: 1

抱歉,我理解您只需要翻译文本,那么这是翻译后的内容:

不可以在Android设备上运行jar文件,您看,我们有.apk文件来在Android设备上安装应用程序。但不是.jar文件,另外,Android使用的是Dalvik虚拟机,而您需要Java虚拟机来运行jar文件。所以您无法在Android上运行jar文件。

英文:

Nope we cannot run a jar file on android devices, You see we have .apk to install it on our android device. But not .jar, Also Android uses the Dalvik VM, where as you need the Java VM to run a jar-file. So you can run jar on android.

huangapple
  • 本文由 发表于 2020年9月28日 10:30:52
  • 转载请务必保留本文链接:https://go.coder-hub.com/64095216.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定