From Eclipse you make a runnable jar from
From Project Explorer > Export > Java > Runnable Jar file > Next
Set the launch configuration, pick a destination, and extract the libraries into the jar.
Click finish, acknowledge your actions with reguard to licenses, address errors, and review warnings.
To run a jar that uses native libraries, you can point to the native binary folder with the -DJava.library.path switch when you run the jar.
Syntax java -Djava.library.path=<the exact path to the native library> -jar your.jar
For example, I have an executable jar with filespec: '/home/max/CodeProjectMBishop/javaFFT.jar'
It uses native libraries located in the folder: '/home/max/Cuda/JCuda-All-0.5.0-bin-linux-x86_32 -jar'
java -Djava.library.path=/home/max/Cuda/JCuda-All-0.5.0-bin-linux-x86_32 -jar '/home/max/CodeProjectMBishop/javaFFT.jar'
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please
let us know and we'll add colourisation support for it.
This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)