Fobs4JMF problem

Hi everyone, I a m actually trying to make a media player using fobs4jmf. I've set both JMF anf FOBS4JMF up. I've also added jar files and placed fobs4jmf.dll in system32 directory then replaced original jmf properties file by the fobs4jmf one. Finally, I've configured JMFRegistry as specified on their site.

When I try to open a media with JMStudio, it works well but it fails when I try to open the same file with my application and I get the following error :

"java.lang.UnsatisfiedLinkError: fobs4jmf (Not found in java.library.path)

Fobs4JMF - Native shared library NOT found

at java.lang.ClassLoader.loadLibraryWithPath(ClassLoader.java:956)

at java.lang.ClassLoader.loadLibraryWithClassLoader(ClassLoader.java:925)

at java.lang.System.loadLibrary(System.java:452)

at com.moesol.bindings.NativeLibraryFinder.loadLibrary(NativeLibraryFinder.java:63)

at com.omnividea.media.parser.video.Parser.<clinit>(Parser.java:107)

at java.lang.J9VMInternals.initializeImpl(Native Method)

at java.lang.J9VMInternals.initialize(J9VMInternals.java:177)

at com.omnividea.media.content.unknown.Handler.setSource(Handler.java:94)

at javax.media.Manager.createPlayerForSource(Manager.java:1453)

at javax.media.Manager.createPlayerForContent(Manager.java:1326)

at javax.media.Manager.createPlayer(Manager.java:417)

at player.MediaPlayer.loadVideo(MediaPlayer.java:58)

at player.MediaPlayer.<init>(MediaPlayer.java:46)

at player.MediaPlayer.main(MediaPlayer.java:220)

java.lang.ExceptionInInitializerError: fobs4jmf (Not found in java.library.path)

java.lang.NoClassDefFoundError: com.omnividea.media.parser.video.Parser (initialization failure)"

I really dont have no idea of how I could fix this problem and I would really apreciate some help.

Thx a lot

[1889 byte] By [kheusha] at [2007-11-27 10:22:37]
# 1

I'm running into the same problem with libFobs4JMF.jnilib when using it from an Applet.

In my case, this happens when two different WebApps share a JAR of the same Applet that attempts to load and use this library. The 1st WebApp wins, loads, and plays video. The 2nd WebApp loses and reports:

Fobs4JMF - Native shared library NOT found

java.lang.UnsatisfiedLinkError: no fobs4jmf in java.library.path

at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1682)

at java.lang.Runtime.loadLibrary0(Runtime.java:822)

at java.lang.System.loadLibrary(System.java:992)

at com.moesol.bindings.NativeLibraryFinder.loadLibrary(NativeLibraryFinder.java:103)

at com.omnividea.media.parser.video.Parser.<clinit>(Parser.java:107)

at java.lang.Class.forName0(Native Method)

at java.lang.Class.forName(Class.java:164)

...

The library does exist and is in the java.library.path, but for some reason it doesn't play well when being reused between different applications.

Does anyone know of any possible solutions or work-arounds?

Echo2007a at 2007-7-28 17:17:08 > top of Java-index,Security,Cryptography...