java - Creating Executable jar from CMD prompt -
i have following class files,jar , manifest in directory
- dot.class
- bridge.class
- jsch.jar
- manifest.md
manifest file contains following 2 lines
manifest-version: 1.0 main-class:dot
command used creating jar file
jar cfm dot.jar manifest.md *
while executing generated jar throws error saying no main manifest attribute
while seeing inside generated jar meta-inf
folder contains auto generated manifest file, doesn't have content main class.
i couldn't find successful steps ,please correct me.
had same issue few days ago , couldn't resolve manifest file put main class build parameter this:
jar cfe main.jar mainclass *.class
Comments
Post a Comment