IE6 causes java.lang.ClassNotFoundException: javax.media.pm.PackageManager
Guys,
I have an applet that simply plays a media file. Quite simple! It has been working fine for ages, but I recently upgraded to IE6, and BLAM! I now get this exception: java.lang.ClassNotFoundException: javax.media.pm.PackageManager
Of course, I have checked my classpath, and my path settings. I know that the classpath is fine, I can run JAVA JMStudio and it launches fine. The application runs OK as standalone. I can even debug the applet using JBuilder, and it works. As soon as I run it from IE6 - Nope.. Not working!
I wonder if anyone else has seen this? If I set the option to use the Sun JVM, the diagnostincs applet shows this:
JMF Diagnostics:
Java 1.1 compliant browser.....Maybe
JMF classes.....Not Found
but, if I set the option off, I get:
JMF Version... 2.1.1a
Win32 Build
Native Libraries Found
What is causing this difference? Is this even relevant? I have seen several other posts talking about a ClassNotFoundException but this is specific to IE6 (I think at least.) I will try and regress to 5.5 and keep you posted!
Steve
Hi!
I had the same error, but not caused by upgrading to another browser. Honestly I do not know why the error suddenly occured...
I checked my .jar-file. What I found out:
javax/media/PackageManager.class is in the .jar-file, but not javax/media/pm/PackageManager.class!
If you explicitly select javax/media/pm/PackageManager.class when building the .jar, it will hopefully work.
Good luck,
Deike
Hmmm..
Yes, it cures that problem, but it them goes on to the next class.. and the next class etc.
I tried building all the JMF classes into my JAR file. Yes, this makes it work, but It is massive!
I really want to be able to have the JMF installed at the client, and only have my classes in the applet's jar file. this was al working, then suddenly the gremlins came and took the working bolt out!!!
I have tried almost everything (Obviously not totally everything or it would be working now!!!)
Does any one know why I am having problems with a locally installed version of JMF2.1.1a not being recognised on the classpath, even though I have both a user and system CLASSPATH variable set to use the JMF.JAR?
How bloody frustrating!
Steve
OK, Here is the deal..
Uninstall the JRE Plugin. (Delete the directory too)
Uninstall the JMF (Again, delete the dirs)
Remove any references to the JMF on the CLASSPATH
Reboot
Re-install the JRE Plug-in
Re-install the JMF.. Note: Make sure all options are checked when installing.
Reboot as requested .
Browse to: http://java.sun.com/products/java-media/jmf/2.1.1/jmfdiagnostics.html to test the installation.
Funilly, it all works now. The reason it did not work was due to the classpath being WRONG!!!
It now reads: C:\PROGRA~1\JMF21~1.1\lib\sound.jar;C:\PROGRA~1\JMF21~1.1\lib\jmf.jar;
BUT, I installed the JMF at: C:\Program Files\JMF2.1.1
Call me insane, but I do not have a clue why the paths do not match, but is solved my problem.
I am certain this clears several of the posts found on this Forum!!
Hope this helps you all..
Steve