I am trying to open a JAR file from python and running into problems. I am using..
import os
os.system(r"X:\file.jar")
it appears to open the window then it shuts right away, I know I am missing a simple command but not sure what it is, thanks for the help
Do you want to execute code from .jar, or open it?
If open, then
.jarfile is the same format as.zipfiles and you can usezipfilemodule to manipulate it. Example:If you want to execute it then I prefer creating simple batch/shell script which execute
javawith some parameters like-Xmxand with environment settings required by application.