I need to launch a jvm from a python script. For this I’m trying to use subprocess.run. One of the arguments to the jvm is the classpath. In windows the separator in a java classpath is semi, “;”. I need to add several jars to the classpath.
This works perfectly fine when I manually launch the jvm from the command line. But when I try to launch it with subprocess.run it seems like the part of the classpath which is after the semi is ignored. I suspect this has something to do with that semi is the windows command separator. Anyone knows how to get around it?