Running this command in the terminal works fine:
java -jar file.jar --arg1 --arg2 pathTofile
When I then try to do this from the python code using following code:
subprocess.call(['java', '-jar', 'file.jar', '--arg1' , '--arg2' , 'pathTofile'])
I get an IllegalArugmentException for --arg1.
Any ideas on why this could generate a problem?