Running an executable jar in android

后端 未结 5 1261
北海茫月
北海茫月 2021-02-05 18:26

is it possible to run an executable jar file (command line based) in android? one of my friend told me that it is possible to run executables written in C. Is it possible for ja

5条回答
  •  被撕碎了的回忆
    2021-02-05 18:49

    You cannot directly run jar files in android as android runs on Dalvik Virtual Machine, whereas to run jar files you will need Java Runtime Environment which has Java Virtual Machine.

    Note: You will need root access and a file manager with root access:
    But you can run it, for that you have to install an application Jbed.apk and copy lib jbed.so to your system\lib folder. Then you can run jar/jad files from the application on your android device.

    Here's the link to jbed: http://jbed.en.malavida.com/android/

    Read the full post here on XDA Developers: XDA Developers, Run jar/jad on Android

    There are few posts which claims that there are ways to convert jar to apk, I haven't tried it myself: jar to apk If it doesn't works you may need to use an emulator:

提交回复
热议问题