How to use JVLC library in netbeans...

*nix specific usage questions
kobe08
Blank Cone
Blank Cone
Posts: 16
Joined: 12 Nov 2007 03:06

How to use JVLC library in netbeans...

Postby kobe08 » 25 Mar 2008 17:05

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

B.I.G
New Cone
New Cone
Posts: 1
Joined: 21 Mar 2008 16:13

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

Postby B.I.G » 25 Mar 2008 21:10

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

littlejohn
Blank Cone
Blank Cone
Posts: 73
Joined: 04 May 2006 14:59

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

Postby littlejohn » 08 Apr 2008 00:14

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


Return to “VLC media player for Linux and friends Troubleshooting”

Who is online

Users browsing this forum: No registered users and 9 guests