run a jar file in python and get output code example Example: python run java jar import subprocess subprocess.call(['java', '-jar', 'jarfile.jar'])