I’m trying to append a file to a .jar file using python but i keep hitting an error which states could not find main class: jar.
def add_to_jar():
jarfile = "jarfile.jar"
skin_image= Skin_Name.text() #this stores the full path to to file to be appended
cmd = 'java jar uf ' + jarfile + " " + skin_image
proc = subprocess.Popen(cmd, shell=True)
any help appreciated
That sounds like an issue with the java interpretter’s class path, which is typically defined as an environment variable. Do you need to run
jarthroughjava? Oftenjaris installed as a binary command by itself. Does it work if you just change it to