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

Popular posts from this blog

magento2 - Magento 2 admin grid add filter to collection -

Android volley - avoid multiple requests of the same kind to the server? -

Combining PHP Registration and Login into one class with multiple functions in one PHP file -