I have been looking for an answer for how to execute a java jar file through python and after looking at:
Execute .jar from Python
How can I get my python (version 2.5) script to run a jar file inside a folder instead of from command line?
How to run Python egg files directly without installing them?
I tried to do the following (both my jar and python file are in the same directory):
if __name__ == "__main__":
os.system("java -jar Blender.jar")
I would use subprocess this way:
import subprocess subprocess.call(['java', '-jar', 'Blender.jar'])
But, if you have a properly configured
/proc/sys/fs/binfmt_misc/jar you should be able to run the jar directly, as you wrote.
So, which is exactly the error you are getting? Please post somewhere all the output you are getting from the failed execution.