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: Trouble running Java applet on Mac



At 2:35 pm +0000 2001/05/15, Gunnlaugur Jonsson wrote:
I'm part of a team that's developing an applet that's supposed to run on
both Mac and Windows and hopefully other platforms as well. It is a Swing
RMI applet that's being developed in JBuilder on Windows 2000. The applet
runs fine on PCs running Windows but we've only managed to get one iMac with
MacOS 8.6 to run it! All attempts at other Macs fail with this error:

Class missing for error: java/lang/NoClassDefFoundError at
java.lang.ClassLoader.defineClass(ClassLoader.java)
An exception occurred:
java.lang.NoClassDefFoundError
[...]
All the Macs we've tried are running at least MacOS 8.5.1 and as far as we
know are running MRJ 2.2.4 and we've downloaded the Swingall.jar from
JavaSoft and have registered it in ClassPath through Internet Explorer.
Anything else that might be missing?
[...]

I have never used that option in IE, so I do not know if it works. But have you tried the official way of adding a jar (in this case Swingall.jar) to the classpath? That is:

Either put the jar itself or an alias to it in system folder:extensions: MRJ Libraries:MRJClasses (the names are language dependent).

Also, you must make sure that, when decompressing the archive that contained Swingall.jar, the jar was not treated as a text file. There is an option in Stuffit Expander (under cross platform) to never perform this action.


Giuliano
--
H U M P H
|| |||
software

Java & C++ Server/Client/Human Interface applications on MacOS - MacOS X
http://www.humph.com/


References: 
 >Trouble running Java applet on Mac (From: "Gunnlaugur Jonsson" <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.