R4tch3t / simple-openni

Automatically exported from code.google.com/p/simple-openni
0 stars 0 forks source link

SimpleOpenNI 1.96 and Eclipse #96

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
I have tried to use SimpleOpenni 1.96 with Eclipse but I get this error :

Exception in thread "Animation Thread" java.lang.UnsatisfiedLinkError: 
Expecting an absolute path of the library: 
/SimpleOpenNI/library/win64/OpenNI2.dll
    at java.lang.Runtime.load0(Unknown Source)
    at java.lang.System.load(Unknown Source)
    at SimpleOpenNI.SimpleOpenNI.<clinit>(SimpleOpenNI.java:59)
    at MainApp.setup(MainApp.java:12)
    at processing.core.PApplet.handleDraw(PApplet.java:2280)
    at processing.core.PGraphicsJava2D.requestDraw(PGraphicsJava2D.java:243)
    at processing.core.PApplet.run(PApplet.java:2176)
    at java.lang.Thread.run(Unknown Source)

What should I do ?

I have followed these steps :

    Create a User Library in Eclipse
        In Eclipse, got to Preferences.../Java/Build Path/User Libraries
        Click the New... button and enter SimpleOpenNI as the library name.
        Select the SimpleOpenNI library and press the Add external JARs.. button.
        Select SimpleOpenNI.jar in the SimpleOpenNI/library directory
        Double click on SimpleOpenNI.jar's "Native Library Location:" (you may need to expand SimpleOpenNI library and SimpleOpenNI.jar by clicking on the little triangles)
        Click External Folder... and select the same library folder that contains SimpleOpenNI.jar
    Add the library to your project's buildpath.
        Right Click on the project.
        Choose BuildPath/Add Libraries...
        Click on User Libraries and then the Next button.
        Check off "SimpleOpenNI"
        Click Finish

I'm already using SimpleOpenni with the Processing environnement so my errors 
come from my eclipse settings.

Original issue reported on code.google.com by florent....@gmail.com on 10 Jan 2014 at 9:45

GoogleCodeExporter commented 8 years ago
I have found the solution. I had to place in the bin folder :

lib/SimpleOpenNI64.dll
lib/win64/NiTE2.dll
lib/win64/OpenNI2.dll
lib/win64/OpenNI2/Drivers/*

Original comment by florent....@gmail.com on 11 Jan 2014 at 9:41