I want to write some kind of game (shooter) in a lonely one, and I really want to finish it during my lifetime))
therefore, even pure java does not suit me, because development will go too slowly, but there are two nuances:
- the engine is normal only for java (jmonkeyengine)
- and almost all of the game should be written in python

Now everything starts figuratively as java -jar jython.jar start.py
Under normal axes, the launch of course will not cause problems, But I want to launch it also under android, and here comes the question.

How to slip a python code in the form of a folder with a bunch of files in embedded mode?

    1 answer 1

    No The Android OS uses a JVM implementation called "Dalvik". It is very specific and does not even use Java native bytecode. Dalvik! = JVM and on this virtual machine there is no support for a large amount of functionality, including Jython.

    As an option, I recommend looking towards ignifuga or pygame

    • one
      this is so, but you are not talking about everything, the fact is that Jython can compile a python program into static class files. and here the fun begins. you can try copying them into the src project, also add jython dependencies and try to use them. those. jython doesn’t require compiling anything in this case. what do you think? - hitman249
    • Yes, the "* .class" files can be thrown into src, but I am afraid that this will not improve the situation. As I understand it, there will be a dependency on the jython library. That is, in a similar way, it will be necessary to integrate "jython.jar" and all subsequent dependencies. But it’s worth a try, maybe I’m wrong;) - uzumaxy
    • You do not need to write games on python with Android. This is not a dekstop, here the resources are not infinite. - KoVadim
    • There are enough [alternatives] [3] [3]: software.intel.com/en-us/blogs/2012/03/13/… - uzumaxy