I am familiar with using the os.system to run from the command line. However, I would like to be able to run a jar file from inside of a specific folder, eg. my ‘test’ folder. This is because my jar (located in my ‘test’ folder) requires a file inside of my ‘test’ folder. So, how would I write a function in my script that does the following: c:\test>java -jar run_this.jar required_parameter.ext ? I’m a python newbie so details are greatly appreciated. Thanks in advance.
I am familiar with using the os.system to run from the command line. However,
Share
Here is a small script to get you started. There are ways to make it ‘better’, but not knowing the full scope of what you are trying to accomplish this should be sufficient.