java - Packing jar file into exists jar file -
i'm writing mp3 player in java. if finish want pack .class
files in 1 .jar
file. don't want have player, starts console. if open 1 .jar file want see player window.
i know how pack it. must use jar.exe
packer params: cvfm player.jar manifest.mf ./config/*.class
, create maniest.mf
content class has main method.
but problem when want use , feel, or use existing .jar file. can put existing .jar
file player main dir , compile javac.exe
parameter -cp .;./jarfile.jar
, when pack compiled .class
files , existsing jtattoodebug.jar
file 1 player.jar
file don't see new , feel see default view.
if using eclipse.
right-click project
export -> runnable jar file
then select destination jar, , make sure have "extract required libraries generated jar" selected. give runnable jar, complete auto generated manifest, of needed jars inside.
Comments
Post a Comment