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
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: