Apple Event: May 7th at 7 am PT

Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

Getting Bad Applet class name exception while opening applet.

Hi,


While opening an applet in my mac os x v10.6.8 machine i am getting "Bad Applet class name exception" which is working fine in mac os x v10.7.5.Java version in my mac is 1.6.0_43.Can anyone please help me to resolve this.

Posted on Mar 14, 2013 11:02 PM

Reply
11 replies

Mar 19, 2013 2:25 AM in response to arsmd

Apple issued update 12 for Java for OS 10.6:


http://support.apple.com/kb/DL1573


Note: On systems that have not already installed Java for Mac OS X 10.6 update 9 or later, this update will configure web browsers to not automatically run Java applets. Java applets may be re-enabled by clicking the region labeled "Inactive plug-in" on a web page. If no applets have been run for an extended period of time, the Java web plug-in will deactivate.


If, after installing Java for OS X 2013-002 and the latest version of Java 7 from Oracle, you want to disable Java 7 and re-enable the Apple-provided Java SE 6 web plug-in and Web Start functionality, follow these steps:

http://support.apple.com/kb/HT5559?viewlocale=en_US

Further update:


Apple issued this Java related security update No. 13 on February 19:


http://support.apple.com/kb/HT5666


and Update No. 14 on March 4: http://support.apple.com/kb/DL1573


http://support.apple.com/kb/HT5677


You should also read this:


https://support.apple.com/kb/HT5672


The standard recommendation is for users to turn off Java except when they have to use it on known and trusted websites (like their bank). Javascript, which is unrelated despite the name, can be left on.


Further useful comment in this article:


http://www.macworld.co.uk/macsoftware/news/?newsid=3435007&olo=email

Mar 19, 2013 5:11 AM in response to Klaus1

Thanks for reply klaus1.But as mac 0s x 10.6.8 does not support java7, only java 1.6.0_43 is installed on mac.As per the doc you provided, i think the problem is related to the below statement.

"Since Java 7 Update 11, the default setting to disable the Java plugin from browsers has been set to high, preventing unsigned Java applets from running automatically".

I have seen that this security fix also added in latest version of java supported by Apple which is java 1.6.0_43.But i dont know how to make my applets work with Apple supported java 6..I tried to download the older java version like 1.6.0_39.But its redirecting me to the latest java version 1.6.0_43 automatically.Can anyone please help me how to resolve this.

Mar 26, 2013 12:34 AM in response to arsmd

Hi,


Any one please help me how to download the java version 1.6.0_29 for mac os 10.6.8.I have tried to download it from Apple downloads.But when trying to download any earlier versions of java 1.6.0_43 it is redirecting me to latest java 1.6.0_43.Please help me how to download earlier version of java.

Mar 26, 2013 2:47 AM in response to arsmd

Since August 2012 updates for Java (and especially Java Runtime Environment, which is what you actually need) must now be downloaded direct from Oracle:


http://www.oracle.com/technetwork/java/javase/downloads/jre7-downloads-1637588.h tml


(which is for Java 7)


Further information here:


http://www.oracle.com/us/corporate/press/1735645


and their FAQ’s:


http://docs.oracle.com/javase/7/docs/technotes/guides/jweb/mac-faq.html

Mar 26, 2013 5:07 AM in response to arsmd

Apple barred Java from running on Macs in order to safeguard users by blocking Java 7 Update 11 and adding it to the banned list in XProtect.

This was the second time in two weeks that Apple had blocked Oracle's code from running on Macs. The threat was so serious that the U.S. Department of Homeland Security had recommended that all Java 7 users disable or uninstall the software until a patch was issued. This time Java is blocked through Apple's XProtect anti-malware feature.

Java has come under fire as the means by which hackers have been able to gain control of computers. In April 2012 more than 600,000 Macs were reported to have been infected with a Flashback Trojan horse that was being installed on people's computers with the help of Java exploits. Then in August Macs were again at risk due to a flaw in Java, this time around, there was good news for Mac users: Thanks to changes Apple has made, most of us were safe from the threat.


Unwilling to leave its customers open to potential threats Apple decided it's safer to block Java entirely.

In order to block older versions of Flash, Apple has updated its "Xprotect.plist" file so that any versions that come before the current one (version 11.6.602.171) cannot be used on a Mac. Users who have older versions of Flash installed will be greeted with an alert that says "Blocked plug-in," and Safari will prompt the user to update to a newer version.

Macs running OS X Snow Leopard and beyond are affected.


UPDATE for those running Lion or Mountain Lion:

Oracle on Friday February 1 released a new version reportedly addressing vulnerabilities seen with the last build.

Apple disabled Java 7 through the OS X XProtect anti-malware system, requiring users to have at least version "1.7.0_10-b19" installed on their Macs. The release dated February 1 carries the designation "1.7.0_13-b20," meeting Apple's requirements.


Oracle "strongly recommends" applying the CPU fixes as soon as possible, saying that the latest Critical Patch Update contains 50 new security fixes across all Jave SE products.


Update for Snow Leopard users:


Apple issued update 12 for Java for OS 10.6:


http://support.apple.com/kb/DL1573


Note: On systems that have not already installed Java for Mac OS X 10.6 update 9 or later, this update will configure web browsers to not automatically run Java applets. Java applets may be re-enabled by clicking the region labeled "Inactive plug-in" on a web page. If no applets have been run for an extended period of time, the Java web plug-in will deactivate.


If, after installing Java for OS X 2013-002 and the latest version of Java 7 from Oracle, you want to disable Java 7 and re-enable the Apple-provided Java SE 6 web plug-in and Web Start functionality, follow these steps:

http://support.apple.com/kb/HT5559?viewlocale=en_US

Further update:


Apple issued this Java related security update No. 13 on February 19:


http://support.apple.com/kb/HT5666


and Update No. 14 on March 4: http://support.apple.com/kb/DL1573


http://support.apple.com/kb/HT5677


You should also read this:


https://support.apple.com/kb/HT5672


The standard recommendation is for users to turn off Java except when they have to use it on known and trusted websites (like their bank). Javascript, which is unrelated despite the name, can be left on.


Further useful comment in this article:


http://www.macworld.co.uk/macsoftware/news/?newsid=3435007&olo=email

Mar 26, 2013 7:18 AM in response to Klaus1

Thanks for Your reply Klaus1.But when i am running my applet with this latest release java version i am getting above mentioned security exception.I am unable to resolve that and dont know how to make my applet work.Please any one help me to resolve this Bad applet class name exception in mac os 10.6.8..

Mar 26, 2013 3:58 PM in response to arsmd

arsmd wrote:


While opening an applet in my mac os x v10.6.8 machine i am getting "Bad Applet class name exception" which is working fine in mac os x v10.7.5.Java version in my mac is 1.6.0_43.

It's not at all unusal for applets that work in Java 7 to not work in Java 6, although the reverse is normally the case.


Are you saying that this applet used to work in Java 6 and that is no longer the case?

Getting Bad Applet class name exception while opening applet.

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple ID.