I am having trouble exporting my java project from eclipse as a jar executable. My Java project uses an external library (called jri). I exported the jri.jar file and set the library path for my native library in eclipse and it works great in development in eclipse. However, when I export it as a jar executable, I get the following error:
Cannot find JRI native library! Please make sure that the JRI native library is in a directory listed in java.library.path.
I placed a folder called lib in the same directory as my project jar; this lib folder contains the jri native library. jri native library is not in one file, but in a folder. This is the same setup as in eclipse.
How do I export my project to eclipse,
Export... Java > Runnable JAR file Copy required libraries into a sub folder next to the generated Jar Finish
And my folder is organized this way
folder project project.jar project_lib jri.jar jri native library folder
MANIFEST.MF of my project.jar:
Manifest-Version: 1.0 Class-Path: . project_lib/jri.jar Main-Class: index
What I want to achieve is to give the other person a folder, including project.jar, and all that is needed so that he / she can run it without having to install anything else. Many thanks
Julio Diaz
source share