Seems like there’s an issue here where your code run find in IDE but not after exported to exe.
- https://code.google.com/p/simple-openni/issues/detail?id=27
- http://stackoverflow.com/questions/25694883/processings-export-functionality-does-not-work-with-simpleopenni-kinect-appli
- http://stackoverflow.com/questions/21755050/exporting-the-kinect-processing-application
So the solution is found here:
- https://code.google.com/p/simple-openni/issues/detail?id=73
|
Problem begins from simpleOpenNI.class, trying to load libs from "/SimpleOpenNI/library/" withou success. I download the simpleOpenNI.java and i patched to take the current directory adreess and in nativLibPath string. To patch the java file simple add this line: static String workingDir = System.getProperty("user.dir"); after public class SimpleOpenNI extends ContextWrapper implements SimpleOpenNIConstants { and change 2 lines (32X and x64)from: nativLibPath = getLibraryPathWin() "\\lib\\"; to: nativLibPath = getLibraryPathWin() + workingDir + "\\lib\\"; compile the file and put it on simpleOpenNI.jar\SimpleOpenNI\ or download the atteched file and put it on: simpleOpenNI.jar\SimpleOpenNI\ located on folder lib! |
So, you will need to download the
simpleOpenNI fix and replace with the one in your exportedApp\lib.
Good luck!