JVLC : Error loading libjvlc.so

*nix specific usage questions
oober
New Cone
New Cone
Posts: 5
Joined: 11 Oct 2006 17:40

JVLC : Error loading libjvlc.so

Postby oober » 11 Oct 2006 18:07

Hi in ver 0.0.9 of jvlc I see that the source in JVLC.java changed to

System.loadLibrary("jvlc");

However if I try to run any programs that loads the library this way I get an execption :
Exception in thread "main" java.lang.UnsatisfiedLinkError: no jvlc in java.library.path

If i change it to :
System.load(System.getProperty( "user.dir" ) + "/libjvlc.so" );

then it will load fine and everything works.

Can someone please help me?
Thanks

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

Re: JVLC : Error loading libjvlc.so

Postby littlejohn » 14 Oct 2006 12:55

Hi in ver 0.0.9 of jvlc I see that the source in JVLC.java changed to

System.loadLibrary("jvlc");

However if I try to run any programs that loads the library this way I get an execption :
Exception in thread "main" java.lang.UnsatisfiedLinkError: no jvlc in java.library.path

If i change it to :
System.load(System.getProperty( "user.dir" ) + "/libjvlc.so" );

then it will load fine and everything works.

Can someone please help me?
Thanks
Hi,
run your app specifying the java.library.path variable:

java -Djava.library.path=. yourapp

use '.' if libjvlc.so is in the current dir.

Cheers,
Filippo


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

Who is online

Users browsing this forum: No registered users and 10 guests