How to check JNI library in the JVM library path ?

110 views
Skip to first unread message

Navdeep Singh Sidhu

unread,
Jul 5, 2013, 8:59:37 AM7/5/13
to v4...@googlegroups.com
Hi,

I'm using netbeans 7.3 on ubuntu 12.04. i have installed v4l4j using repository , but in netbeans it is showing the error on runnung simple webcam viewer and recording provided by the website. The error is follows

Cant load v4l4j JNI library
Exception in thread "AWT-EventQueue-0" java.lang.UnsatisfiedLinkError: no v4l4j in java.library.path
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1860)
at java.lang.Runtime.loadLibrary0(Runtime.java:845)
at java.lang.System.loadLibrary(System.java:1084)
at au.edu.jcu.v4l4j.VideoDevice.<clinit>(Unknown Source)
at org.metalklesk.webcam.capture.example.SimpleViewer.initFrameGrabber(SimpleViewer.java:113)
at org.metalklesk.webcam.capture.example.SimpleViewer.<init>(SimpleViewer.java:84)
at org.metalklesk.webcam.capture.example.SimpleViewer$1.run(SimpleViewer.java:72)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:251)
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:727)
at java.awt.EventQueue.access$200(EventQueue.java:103)
at java.awt.EventQueue$3.run(EventQueue.java:688)
at java.awt.EventQueue$3.run(EventQueue.java:686)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:697)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:242)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:161)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:150)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:146)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:138)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:91)
BUILD SUCCESSFUL (total time: 1 second)

I tried to  follow troubleshooting guidelines given on website, but i couldn't get the part where setting  JNI library in the JVM library path !! I think i can use some help!!! thank you in advance !

Navdeep Singh
Reply all
Reply to author
Forward
0 new messages