Search code examples
javapythonsemantic-analysis

Syntax error while executing java command in python script


i want to execute following command in a python script

    java -cp lib/*:esalib.jar clldsystem.esa.ESAAnalyzer "$1" "$2"

but i'm getting a syntax error due to the '*' and ':' in the path of jar files. How else could i do it?


Solution

  • Try to use subprocess library. I hope it helps you: Subprocess management