I want to call a runnable jar file from a python script, but get 'Unsupported major.minor version 51.0' as an error in the console.
I've tried running it via os and subprocess but get the same error:
#!/usr/bin/python2.4
import subprocess
import os
os.system("java -jar parser.jar C:\folder\file.csv")
subprocess.call(['java', '-jar', 'parser.jar', 'C:\folder\file.csv'])
This is not a file path question, as the same error occurs when I put all my files in the same folder:
os.system("java -jar parser.jar file.csv")