java - One-Jar FileNotFoundException -


i have une java application, , use in opencv(opencv_java259.jar). work correcly in eclipse. pack application in executable .jar file, use one-jar (command line approch) don't work correctly , have errors:

c:\users\user\desktop\tool> jar -cvfm ../one-jar.jar boot-manifest.mf .java.io.filenotfoundexception: boot-manifest.mf      @ java.io.fileinputstream.open(native method)     @ java.io.fileinputstream.<init>(fileinputstream.java:138)     @ java.io.fileinputstream.<init>(fileinputstream.java:97)     @ sun.tools.jar.main.run(main.java:171)     @ sun.tools.jar.main.main(main.java:1177) 

i have done these steps :

  • i have create eclipse runnable .jar file : right clik on project-->export--->runnable jar file

  • i create working directory "tool" contains directories main , lib

  • copy main application jar file (create on step 1) root/main (named myapplication.jar) , library dependencies root/lib (the opencv_java259.jar)

  • i have unjar one-jar-boot-0.97.jar file root directory

  • edit boot-manifest.mf :

manifest-version: 1.0

ant-version: apache ant 1.7.1

created-by: one-jar 0.97 ant taskdef

one-jar-main-class: main.myapplication

main-class: com.simontuffs.onejar.boot

but have errors when execute command line:

c:\users\user\desktop\tool> jar -cvfm ../one-jar.jar boot-manifest.mf .

have suggestions? all.


Comments

Popular posts from this blog

commonjs - How to write a typescript definition file for a node module that exports a function? -

openid - Okta: Failed to get authorization code through API call -

ios - Change Storyboard View using Seague -