Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import subprocess
- def run_jar_file(file_path):
- subprocess.call(['java', '-jar', file_path])
- # Use the function
- run_jar_file('path_to_your_jar_file.jar')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement