Advertisement
A_GUES

Python run Jar

Jul 12th, 2023
1,369
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.16 KB | None | 0 0
  1. import subprocess
  2.  
  3. def run_jar_file(file_path):
  4.     subprocess.call(['java', '-jar', file_path])
  5.  
  6. # Use the function
  7. run_jar_file('path_to_your_jar_file.jar')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement