problem related to MANIFEST.MF in jar

后端 未结 3 1678
挽巷
挽巷 2021-01-23 15:59

I have created jar in folder /usr/local/bin/niidle.jar.

And I have cerated MANIFEST.MF in jar as follows:

Manifest-Version: 1.0
Main-Class: com.ensarm.         


        
3条回答
  •  自闭症患者
    2021-01-23 16:41

    Line niidle.jar/lib/hector-0.6.0-17.jar is confusing. Is niidle.jar directory or file? I'd suggest you to post your full manifest, directory structure, command line you are using and current working directory.

    But generally you should write in your manifest: Class-Path: hector-0.6.0-17.jar

    then put all jars in one directory. Let's call it foo. Now open command prompt, go to foo and run

    java -jar niidle.jar args...

    And I believe that everything will work. Then if you wish play with location of your jars.

提交回复
热议问题