dustinfreeman / simple-openni

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

Can't load SimpleOpenNI library #54

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.try to open an example 

What is the expected output? What do you see instead?
if i try to open an example

What version of the product are you using? On what operating system?
processing 2.0b // mac os 10.7.5

Please provide any additional information below.

Can't load SimpleOpenNI library (SimpleOpenNI) : 
java.lang.UnsatisfiedLinkError: 
/Users/Markus/Documents/Processing/libraries/SimpleOpenNI/library/libSimpleOpenN
I.jnilib:  Library not loaded: ../../Bin/x64-Release/libOpenNI.dylib   
Referenced from: 
/Users/Markus/Documents/Processing/libraries/SimpleOpenNI/library/libSimpleOpenN
I.jnilib   Reason: image not found
Verify if you installed SimpleOpenNI correctly.
http://code.google.com/p/simple-openni/wiki/Installation
Exception in thread "AWT-EventQueue-0" java.lang.UnsatisfiedLinkError: 
SimpleOpenNI.SimpleOpenNIJNI.swig_module_init()V
    at SimpleOpenNI.SimpleOpenNIJNI.swig_module_init(Native Method)
    at SimpleOpenNI.SimpleOpenNIJNI.<clinit>(SimpleOpenNIJNI.java:1575)
    at SimpleOpenNI.ContextWrapper.<init>(ContextWrapper.java:54)
    at SimpleOpenNI.SimpleOpenNI.<init>(SimpleOpenNI.java:212)
    at KinectTestMitPointCloud.setup(KinectTestMitPointCloud.java:46)
    at processing.core.PApplet.handleDraw(PApplet.java:2103)
    at processing.opengl.PGL$PGLListener.display(PGL.java:2595)
    at jogamp.opengl.GLDrawableHelper.displayImpl(GLDrawableHelper.java:189)
    at jogamp.opengl.GLDrawableHelper.display(GLDrawableHelper.java:177)
    at javax.media.opengl.awt.GLCanvas$DisplayAction.run(GLCanvas.java:928)
    at jogamp.opengl.GLDrawableHelper.invokeGLImpl(GLDrawableHelper.java:425)
    at jogamp.opengl.GLDrawableHelper.invokeGL(GLDrawableHelper.java:364)
    at javax.media.opengl.awt.GLCanvas.maybeDoSingleThreadedWorkaround(GLCanvas.java:827)
    at javax.media.opengl.awt.GLCanvas.display(GLCanvas.java:415)
    at javax.media.opengl.awt.GLCanvas.paint(GLCanvas.java:515)
    at sun.awt.RepaintArea.paintComponent(RepaintArea.java:276)
    at sun.awt.RepaintArea.paint(RepaintArea.java:241)
    at apple.awt.ComponentModel.handleEvent(ComponentModel.java:263)
    at java.awt.Component.dispatchEventImpl(Component.java:4820)
    at java.awt.Component.dispatchEvent(Component.java:4572)
    at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:704)
    at java.awt.EventQueue.access$400(EventQueue.java:82)
    at java.awt.EventQueue$2.run(EventQueue.java:663)
    at java.awt.EventQueue$2.run(EventQueue.java:661)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:87)
    at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:98)
    at java.awt.EventQueue$3.run(EventQueue.java:677)
    at java.awt.EventQueue$3.run(EventQueue.java:675)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:87)
    at java.awt.EventQueue.dispatchEvent(EventQueue.java:674)
    at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:296)
    at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:211)
    at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:201)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:196)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:188)
    at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)
Already called beginDraw().
Exception in thread "Animation Thread" java.lang.RuntimeException: 
java.lang.NoClassDefFoundError: Could not initialize class 
SimpleOpenNI.SimpleOpenNIJNI
    at processing.opengl.PGL.requestDraw(PGL.java:1021)
    at processing.opengl.PGraphicsOpenGL.requestDraw(PGraphicsOpenGL.java:1526)
    at processing.core.PApplet.run(PApplet.java:2006)
    at java.lang.Thread.run(Thread.java:680)
Caused by: java.lang.NoClassDefFoundError: Could not initialize class 
SimpleOpenNI.SimpleOpenNIJNI
    at SimpleOpenNI.ContextWrapper.<init>(ContextWrapper.java:54)
    at SimpleOpenNI.SimpleOpenNI.<init>(SimpleOpenNI.java:212)
    at KinectTestMitPointCloud.setup(KinectTestMitPointCloud.java:46)
    at processing.core.PApplet.handleDraw(PApplet.java:2103)
    at processing.opengl.PGL$PGLListener.display(PGL.java:2595)
    at jogamp.opengl.GLDrawableHelper.displayImpl(GLDrawableHelper.java:189)
    at jogamp.opengl.GLDrawableHelper.display(GLDrawableHelper.java:177)
    at javax.media.opengl.awt.GLCanvas$DisplayAction.run(GLCanvas.java:928)
    at jogamp.opengl.GLDrawableHelper.invokeGLImpl(GLDrawableHelper.java:425)
    at jogamp.opengl.GLDrawableHelper.invokeGL(GLDrawableHelper.java:364)
    at javax.media.opengl.awt.GLCanvas$DisplayOnEventDispatchThreadAction.run(GLCanvas.java:945)
    at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:199)
    at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:702)
    at java.awt.EventQueue.access$400(EventQueue.java:82)
    at java.awt.EventQueue$2.run(EventQueue.java:663)
    at java.awt.EventQueue$2.run(EventQueue.java:661)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:87)
    at java.awt.EventQueue.dispatchEvent(EventQueue.java:672)
    at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:296)
    at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:211)
    at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:201)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:196)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:188)
    at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)
Exception in thread "AWT-EventQueue-0" java.lang.NoClassDefFoundError: Could 
not initialize class SimpleOpenNI.SimpleOpenNIJNI
    at SimpleOpenNI.ContextWrapper.<init>(ContextWrapper.java:54)
    at SimpleOpenNI.SimpleOpenNI.<init>(SimpleOpenNI.java:212)
    at KinectTestMitPointCloud.setup(KinectTestMitPointCloud.java:46)
    at processing.core.PApplet.handleDraw(PApplet.java:2103)
    at processing.opengl.PGL$PGLListener.display(PGL.java:2595)
    at jogamp.opengl.GLDrawableHelper.displayImpl(GLDrawableHelper.java:189)
    at jogamp.opengl.GLDrawableHelper.display(GLDrawableHelper.java:177)
    at javax.media.opengl.awt.GLCanvas$DisplayAction.run(GLCanvas.java:928)
    at jogamp.opengl.GLDrawableHelper.invokeGLImpl(GLDrawableHelper.java:425)
    at jogamp.opengl.GLDrawableHelper.invokeGL(GLDrawableHelper.java:364)
    at javax.media.opengl.awt.GLCanvas.maybeDoSingleThreadedWorkaround(GLCanvas.java:827)
    at javax.media.opengl.awt.GLCanvas.display(GLCanvas.java:415)
    at javax.media.opengl.awt.GLCanvas.paint(GLCanvas.java:515)
    at sun.awt.RepaintArea.paintComponent(RepaintArea.java:276)
    at sun.awt.RepaintArea.paint(RepaintArea.java:241)
    at apple.awt.ComponentModel.handleEvent(ComponentModel.java:263)
    at java.awt.Component.dispatchEventImpl(Component.java:4820)
    at java.awt.Component.dispatchEvent(Component.java:4572)
    at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:704)
    at java.awt.EventQueue.access$400(EventQueue.java:82)
    at java.awt.EventQueue$2.run(EventQueue.java:663)
    at java.awt.EventQueue$2.run(EventQueue.java:661)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:87)
    at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:98)
    at java.awt.EventQueue$3.run(EventQueue.java:677)
    at java.awt.EventQueue$3.run(EventQueue.java:675)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:87)
    at java.awt.EventQueue.dispatchEvent(EventQueue.java:674)
    at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:296)
    at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:211)
    at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:201)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:196)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:188)
    at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)

<b> desperate housewife. </b>

Original issue reported on code.google.com by markuske...@gmx.de on 10 Dec 2012 at 7:02

GoogleCodeExporter commented 9 years ago
used the installer once again -> works! thx :)

Original comment by markuske...@gmx.de on 11 Dec 2012 at 9:04

GoogleCodeExporter commented 9 years ago
Put a link to the SimpleOpenNI.jar in your CLASSPATH system environment 
variable.

Original comment by jack.bro...@gmail.com on 25 Apr 2013 at 9:45

GoogleCodeExporter commented 9 years ago
Hi, 

I found a very simple solution to resolve SimpleOpenNI exception
'Exception in thread "Animation Thread" java.lang.UnsatisfiedLinkError: 
SimpleOpenNI.SimpleOpenNIJNI.swig_module_init()V '

1. Go to System Properties -> Advanced -> Environnement Variables
2. In 'System variables', search and modify 'Path' variable
3. Add a path to the SimpleOpenNI32.dll in the end of 'Path' variable.

By default : SimpleOpenNI32.dll is located at %SimpleOpenNI% Folder 
...\Processing\libraries\SimpleOpenNI\library\

Hope it will be useful to you!

I got my solution after reading this article:
http://stackoverflow.com/questions/12875212/kinect-unsatisfiedlinkerror-simpleop
enni-simpleopennijni-swig-module-initv

NMQM

Original comment by nmq...@gmail.com on 2 Jul 2013 at 1:42