Different UnsatisfiedLinkError

152 views
Skip to first unread message

Drentsoft

unread,
Mar 13, 2009, 9:18:14 PM3/13/09
to xuggler-users
Hi,

I've installed Xuggler on my laptop and my desktop. When I installed
it on my laptop (running Vista Home Premium 32bit) it worked after a
2nd reboot (don't know why I had to reboot twice but its not really an
issue).
However trying to install it on my desktop running Windows XP 32bit
SP3 on a VirtualBox VM I keep geting this error:

init:
deps-jar:
Compiling 1 source file to C:\Documents and Settings\Derwent\My
Documents\NetBeansProjects\XugglerTest1-1\build\classes
compile:
run:
01:04:52.313 [main] WARN com.xuggle.ferry.JNILibraryLoader - Failure:
library load of library: xuggle-xuggler; version: 1: absolute path: C:
\Program Files\Xuggle\bin\libxuggle-xuggler-1.dll; error:
java.lang.UnsatisfiedLinkError: C:\Program Files\Xuggle\bin\libxuggle-
xuggler-1.dll: The operating system cannot run %1
01:04:52.433 [main] WARN com.xuggle.ferry.JNILibraryLoader - Failure:
library load of library: xuggle-xuggler; version: 1: absolute path: C:
\Program Files\Xuggle\bin\libxuggle-xuggler-1.dll; error:
java.lang.UnsatisfiedLinkError: C:\Program Files\Xuggle\bin\libxuggle-
xuggler-1.dll: The operating system cannot run %1
01:04:52.763 [main] WARN com.xuggle.ferry.JNILibraryLoader - Failure:
library load of library: xuggle-xuggler; version: 1: absolute path: C:
\Program Files\Xuggle\bin\libxuggle-xuggler-1.dll; error:
java.lang.UnsatisfiedLinkError: C:\Program Files\Xuggle\bin\libxuggle-
xuggler-1.dll: The operating system cannot run %1
01:04:52.864 [main] WARN com.xuggle.ferry.JNILibraryLoader - Failure:
library load of library: xuggle-xuggler; version: 1: absolute path: C:
\Program Files\Xuggle\bin\libxuggle-xuggler-1.dll; error:
java.lang.UnsatisfiedLinkError: C:\Program Files\Xuggle\bin\libxuggle-
xuggler-1.dll: The operating system cannot run %1
Exception in thread "main" java.lang.UnsatisfiedLinkError: no xuggle-
xuggler in java.library.path
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1709)
at java.lang.Runtime.loadLibrary0(Runtime.java:823)
at java.lang.System.loadLibrary(System.java:1030)
at com.xuggle.ferry.JNILibraryLoader.loadLibrary0
(JNILibraryLoader.java:251)
at com.xuggle.ferry.JNILibraryLoader.loadLibrary
(JNILibraryLoader.java:161)
at com.xuggle.xuggler.XugglerJNI.<clinit>(XugglerJNI.java:19)
at com.xuggle.xuggler.IContainer.make(IContainer.java:352)
at getinfo.getinfo.main(getinfo.java:23)
Java Result: 1
BUILD SUCCESSFUL (total time: 4 seconds)


I have checked the path and XUGGLE_HOME and they are both correct.
I've rebooted several times and even uninstalled and reinstalled it.

The code I'm using is:

package getinfo;

import com.xuggle.xuggler.IContainer;

public class getinfo {

public static void main(String[] args) {
if (args.length <= 0)
{
throw new IllegalArgumentException("No file");
}
String filename = args[0];
IContainer container = IContainer.make();

if (container.open(filename, IContainer.Type.READ, null) < 0)
{
throw new IllegalArgumentException("Could not open file");
}
}

}

Any help would be appreciated as working on my desktop is a lot easier
than the laptop and Xuggler looks like loads of fun once its working,

Thanks

Drent

Art Clarke

unread,
Mar 13, 2009, 9:26:03 PM3/13/09
to xuggle...@googlegroups.com
Hi Drent,

You need to also make sure that PATH is set to include %XUGGLE_HOME%\bin, and it looks like %PATH% is not set correct for some reason on your machine.  I've run into some issues with Windows XP and that (and usually the reboot helps).

If after rebooting it doesn't work, try this hack.  Instead of having "%XUGGLE_HOME%\bin" in the %PATH% variable, change the %PATH% variable to actually have the full path to your bin directory:

C:\Program Files\Xuggle\bin

Sorry about that, and if anyone knows why Windows will only sometimes expand %XUGGLE_HOME% when embedded in a %PATH% variable I'd love to know (it's the reason we tell people to reboot, and I've love to be able to remove that step).

- Art
--
http://www.xuggle.com/
xu‧ggle (zŭ' gl) v. To freely encode, decode, and experience audio and video.

Use Xuggle to get the power of FFMPEG in Java.

Drentsoft

unread,
Mar 15, 2009, 9:32:05 AM3/15/09
to xuggler-users
Hi Art,

Thanks for the quick response. I'm afraid the hack didn't solve the
problem and I've somehow managed to now break my entire VM so I'll
have to try and fix that before i can do any other work on trying to
get Xuggler to work on my desktop. This is probably a really stupid
thing to have done but when trying to hardcode the path variable I
ended up with an extra line of

[main] WARN com.xuggle.ferry.JNILibraryLoader - Failure:
> > library load of library: xuggle-xuggler; version: 1: absolute path: C:
> > \Program Files\Xuggle\bin\libxuggle-xuggler-1.dll; error:
> > java.lang.UnsatisfiedLinkError: C:\Program Files\Xuggle\bin\libxuggle-
> > xuggler-1.dll: The operating system cannot run %1

So I tried adding a %PATH% variable... which I suspect is what broke
the VM (though it could be something I did to Java on the host
machine) - it did seem to fix the extra error mentioned above though.

Thanks,

Drent
> --http://www.xuggle.com/

Art Clarke

unread,
Mar 15, 2009, 2:38:44 PM3/15/09
to xuggle...@googlegroups.com
Try the following.  Open a CMD process on windows, and type the following and send your output here:
echo %PATH%

- Art
--

Drentsoft

unread,
Mar 16, 2009, 10:21:54 AM3/16/09
to xuggler-users
Hi Art,

I ended up having to install a new copy of Windows on the VM but
Xuggler's worked first go this time.

I still have the original VM so if I get it working again I'll try the
CMD tip but for now the problems solved.

Thanks,

Drent
Reply all
Reply to author
Forward
0 new messages