I wanted to unpack a jar file and run it so I could tweak some properties.
I found I had to use jar to unpack it (zip had name collisions).
After unpacking look here to find out what class to run:
META-INF/MANIFEST.MF
Look at the value of:
Main-Class:
It is the class to run.
Just use java to run it:
java -cp PATH_TO_UNPACKED_FILES FULLY_QUALIFIED_PATH_OF_CLASS_TO_RUN
No comments:
Post a Comment