Notice: MediaWiki has been updated. Report any rough edges to marcan@marcan.st

Talk:Java JNI Wrapper

From OpenKinect
Revision as of 21:15, 12 January 2011 by 129.32.94.245 (talk) (NetBeans: no kinect in java.library.path)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

Hey I running NetBeans 6.9 on Ubuntu 10.10 x64

I added the jar to the library/class path, but I get a runtime error

//================================= package king.kinect;

public class Main { public static void main( final String[] args ) { if( NativeKinect.init() ) { int[] buf = NativeKinect.getVideo();

System.out.println( buf.length );

System.out.println( "All good" ); } } } //==========================


Exception in thread "main" java.lang.UnsatisfiedLinkError: no kinect in java.library.path

       at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1681)
       at java.lang.Runtime.loadLibrary0(Runtime.java:840)
       at java.lang.System.loadLibrary(System.java:1047)
       at king.kinect.NativeKinect.<clinit>(NativeKinect.java:8)
       at king.kinect.Main.main(Main.java:5)

Java Result: 1