Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Running an applet in IE on MAC OD9.2



Hi Rajesh,
I also develop cross-platform applets (Linux/Windows/OS 9/OS X) and I had the same problem.
Unfortunately, OS 9 only support a very ancient Java version (1.1.8).
My experience is that Java 1.4 and above versions can not create - always - really Java 1.1 compatible code.
Because of the above problem, I use Java 1.3.1 with "-target" flag for compiling applets to avoid bad major version number errors.
Although, I compile my code with a Sun's 1.3.1_08 JDK for Linux, but you may be got the same result with an 1.3.1 compatible OS X MRJ.


Tamas

Ralph Scheuer wrote:

Hi,

I want to run an applet in IE on macos9.2.
iam using the latest version of IE and i upgraded to MRJ2.2.


You should be aware of the fact that Mac OS 9.x only supports JDK 1.1.8 - there is no Java 2 compatible Virtual Machine available for this OS.

when i access the page with the applet its throwing an exception and
applet loading is failed.


This happens because your code was probably compiled on Mac OS X or on another machine with a newer JDK.

If you do this, you should set the -target flag for javac accordingly. Otherwise, the old MRJ will not be able to execute classes compiled in the newer format.

On the same topic, please note that there are a _lot_ of features in Java 1.2 to 1.4 that you cannot use on older versions. Check your source code for API calls newer than 1.1.8 - you will probably find quite a few...

The Exception is as follows,

java.lang.ClassFormatError : Bad Major version Number


the above is exactly what you are seeing here.


Can anyone help me in this.. My code work fine in Safari on OS10.


That will not help you. Safari on Mac OS X supports Java 1.4.


any information will be of great use...

Thanks in advance
Rajesh Kumar
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Java-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/java-dev/email@hidden

This email sent to email@hidden


_______________________________________________ Do not post admin requests to the list. They will be ignored. Java-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/java-dev/email@hidden

This email sent to email@hidden



_______________________________________________ Do not post admin requests to the list. They will be ignored. Java-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/java-dev/email@hidden

This email sent to email@hidden
References: 
 >Running an applet in IE on MAC OD9.2 (From: Rajesh Kumar <email@hidden>)
 >Re: Running an applet in IE on MAC OD9.2 (From: Ralph Scheuer <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.