java - No main manifest attribute after creating jar, Cmd Windows -
i want create jar command line in windows script:
cd mongo-sql/src javac -cp "..\\lib\\*;..\\lib\\hapi-lib\\*" *.java fhirtranslate\*.java jar -cvfm ..\\lib\\runsqlsave.jar ..\\meta-inf\\manifest.mf *.class
and manifest:
manifest-version: 1.0 class-path: ..\\lib\\*.jar ..\\lib\\hapi-lib\\*.jar main-class: main
after run script didn't receive error, when want run runsqlsave.jar receive
no main manifest attribute, in runsqlsave.jar
in manifest file don't have main-class: main
. ideas?
thanks.
you can specify entry point class using -e flag see link
Comments
Post a Comment