Solved

JMF and Web Browsers

Posted on 1998-02-28
4
439 Views
Last Modified: 2013-11-23
Hello Guys,

Please help me from this interesting problem. I have developed a simple applet which plays a movie file using the Java Media Framework API. this works fine on the machine on which I installed but when I tried to access the same from a different machine thru internet it shows some errors like this

Exception occurred during event dispatching:
java.lang.UnsatisfiedLinkError: jmutil.dll cannot load because RNIGetCompatibleVersion export not found (new behavior.)
      at java/lang/Runtime.loadLibrary
      at java/lang/System.loadLibrary
      at com/sun/media/util/JMFSecurity.loadLibrary
      at com/sun/media/util/JMFProperties.<clinit>
      at com/sun/media/util/JMFProperties.getProperty
      at javax/media/PackageManager.getPersistentProtocolPrefixList
      at javax/media/PackageManager.<clinit>
      at javax/media/PackageManager.getProtocolPrefixList
      at javax/media/Manager.getProtocolPrefixList
      at javax/media/Manager.getDataSourceList
      at javax/media/Manager.createPlayer
      at javax/media/Manager.createPlayer
      at javax/media/Manager.createPlayer
      at myPlay.<init>
      at myApplet.action
      at java/awt/Component.handleEvent
      at java/awt/Component.postEvent
      at java/awt/Component.postEvent
      at java/awt/Component.postEvent
      at java/awt/Component.dispatchEventImpl
      at java/awt/Component.dispatchEvent
      at java/awt/WUIPeer.handleEvent
      at java/awt/WButtonPeer.handleEvent
      at java/awt/Component.postEvent
      at com/ms/ui/AwtUIHost.postEvent
      at java/awt/WUIPeer.postEvent
      at com/ms/ui/UIRoot.postEvent
      at com/ms/ui/UIComponent.postEvent
      at com/ms/ui/UIStateContainer.postEvent
      at com/ms/ui/UIButton.¥
      at com/ms/ui/UIButton.mouseClicked
      at com/ms/ui/UIComponent.handleEvent
      at com/ms/ui/UIComponent.postEvent
      at com/ms/ui/UIStateContainer.postEvent
      at com/ms/ui/UIComponent.postEvent
      at com/ms/ui/UIStateComponent.postEvent
      at com/ms/ui/UIRoot.Å
      at com/ms/ui/UIRoot.forwardEvent
      at com/ms/ui/AwtUIHost.postEvent
      at java/awt/WUIPeer.postEvent
      at com/ms/ui/AwtUIHost.processEvent
      at java/awt/Component.dispatchEventImpl
      at java/awt/Container.dispatchEventImpl
      at java/awt/Component.dispatchEvent
      at java/awt/EventDispatchThread.run

When I refered to javasoft documentation as to what
UnsatisfiedLinkError is it says
"Thrown if the Java Virtual Machine cannot find an appropriate native-language definition of a method declared native."

I used IE4.0 and netscape Communicator 4.0 on both the machines but I see the problem still.

Any kind of help is greatly appreciated.

thank you,
Murthy Kunala
0
Comment
Question by:kunala
  • 2
  • 2
4 Comments
 
LVL 1

Accepted Solution

by:
alvinwang earned 20 total points
ID: 1233299
Did you try running the example applets that comes with the package?
There is a FAQ, trying reading the faq and make sure that the correct dll
are in the correct path as well as classpath.
wat platfomr are u running on.
IF on PC, you might want to take a look at the intel JAva MediaFramework API.
I've no problem running my frame playetr over the network.
0
 

Author Comment

by:kunala
ID: 1233300
Hello alvinwang,

Thanks for your response, I have a couple of more questions.
I don't know what the problem is, I checked the classpath and path variables they are just fine, jmutil.dll file is in \jmf-Beta\lib\ directory and it is included in the classpath.

Interesting thing is I don't see any problem when I installed Intel Media Framework API. While installing it also automatically set the environment variables (classpath and path) as did Java Media Framework API.

(i) I wonder what might be the reason. what should I do to avoid the error (Exception occurred during event dispatching:
java.lang.UnsatisfiedLinkError: jmutil.dll cannot load because RNIGetCompatibleVersion export not found (new behavior.) ) with JMF.

(ii) Do we need to have JMF/IMF installed on all the clients to view this player. Or is there any other way? B'cos I had that problem when tested from a different client.

Thank you,
Murthy Kunala
0
 
LVL 1

Expert Comment

by:alvinwang
ID: 1233301
yes. your client need to have IMF installed if you 're viewing on PC.
as a matter of fact, I have both intel and JMF on client machine and
it should bne able to play.if your clients are all PC, then I think it's better to stick to the intel one.
Anyway, which beta version of JMF are u using.
The FAQ says something abt previous version of JMF etc.
0
 

Author Comment

by:kunala
ID: 1233302
Hello alvinwang,

I have installed 'JMF 1.0 Beta 3' on my client, it didn't work so I installed IMF.

It would be so nice of you, If you can just try my sample and let me know if it works.

My sample is @ http://ms214i.cs.okstate.edu/otp/Player/myApplet.htm
( Please enter "replacement.mov" in the testbox and hit 'OK' )

Thank you,
Murthy
0

Featured Post

Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Java had always been an easily readable and understandable language.  Some relatively recent changes in the language seem to be changing this pretty fast, and anyone that had not seen any Java code for the last 5 years will possibly have issues unde…
Introduction Java can be integrated with native programs using an interface called JNI(Java Native Interface). Native programs are programs which can directly run on the processor. JNI is simply a naming and calling convention so that the JVM (Java…
Viewers will learn one way to get user input in Java. Introduce the Scanner object: Declare the variable that stores the user input: An example prompting the user for input: Methods you need to invoke in order to properly get  user input:
Viewers will learn about the regular for loop in Java and how to use it. Definition: Break the for loop down into 3 parts: Syntax when using for loops: Example using a for loop:

810 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question