Page 1 of 1

How to use JVLC library in netbeans...

Posted: 25 Mar 2008 17:05
by kobe08
Hi,

I am building a java application in netbeans and I added a the jvlc-0.9.0-20080309-linux_x86-32.jar to the project.
However when i tryied to run the application i got this:

Code: Select all

Exception in thread "Thread-1" java.lang.UnsatisfiedLinkError: Unable to load library 'libvlc-control': liblibvlc-control.so: cannot open shared object file: No such file or directory at com.sun.jna.NativeLibrary.loadLibrary(NativeLibrary.java:114) at com.sun.jna.NativeLibrary.getInstance(NativeLibrary.java:157) at com.sun.jna.Library$Handler.<init>(Library.java:123) at com.sun.jna.Native.loadLibrary(Native.java:260) at com.sun.jna.Native.loadLibrary(Native.java:246) at org.videolan.jvlc.internal.LibVlc.<clinit>(LibVlc.java:41) at org.videolan.jvlc.JVLC.<init>(JVLC.java:45) at stmodwapp.control.ModuleVS3.run(ModuleVS3.java:167) at java.lang.Thread.run(Thread.java:619)
I don't know what don't know why it couldn't load the libvlc-control.so library...
Is there anything i must do before using jvlc.xxxxxx.jar ??

Thanks for your help

Best regards

kobe08

Re: How to use JVLC library in netbeans...

Posted: 25 Mar 2008 21:10
by B.I.G
I am facing with the same problem too, Can you please help ?

Code: Select all

Exception in thread "main" java.lang.UnsatisfiedLinkError: Unable to load library 'libvlc-control': liblibvlc-control.so: cannot open shared object file: No such file or directory at com.sun.jna.NativeLibrary.loadLibrary(NativeLibrary.java:114) at com.sun.jna.NativeLibrary.getInstance(NativeLibrary.java:157) at com.sun.jna.Library$Handler.<init>(Library.java:123) at com.sun.jna.Native.loadLibrary(Native.java:260) at com.sun.jna.Native.loadLibrary(Native.java:246) at org.videolan.jvlc.internal.LibVlc.<clinit>(LibVlc.java:41) at org.videolan.jvlc.JVLC.<init>(JVLC.java:45) at VLCPlayerFrame.initComponents(VlcClient.java:66) at VLCPlayerFrame.<init>(VlcClient.java:47) at MDIApp.main(MDIApp.java:192) Java Result: 1
By the way I forgot to promt but when i did it i get this error :

java -Djna.library.path=/usr/local/lib jvlc-0.9.0-20080309-linux_x86-32.jar

Error:

Code: Select all

Exception in thread "main" java.lang.NoClassDefFoundError: jvlc-0/9/0-20080309-linux_x86-32/jar

Re: How to use JVLC library in netbeans...

Posted: 08 Apr 2008 00:14
by littlejohn
Hi,
this kind of error has been treated in the FAQ, please take a look at:

http://trac.videolan.org/jvlc/wiki/faq

Cheers,
Filippo