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

Popular posts from this blog

java - Run spring boot application error: Cannot instantiate interface org.springframework.context.ApplicationListener -

reactjs - React router and this.props.children - how to pass state to this.props.children -

Excel VBA "Microsoft Windows Common Controls 6.0 (SP6)" Location Changes -