GL4Java on MacOS X:
A port of the linux GL4Java is available at: http://homepage.mac.com/gziemski/projects/
There are seperate versions depending on which VM you are using (1.3.1 or 1.4.1). Installation is rather simple; the text file included is rather straightforward (you must have administrative access to install). I have found that 3D simulations load flawlessly under the Hotspot 1.3.1 environment. The version for 1.4.1 seems to work improperly, with respect to Etomica.
Running simulation Applets locally from MacOS X (applets from the ce530 class and Wings server):
Version 10.2 and Later:
There are no special instructions needed for MacOS 10.2 and later. All Applets load without extra manipulation. Additionally, Applets will now load in Netscape 7.x, and all beta/1.0 versions of Safari .
For system 9 and below, the simulation applets should work fine when being run from a webserver, but since there are limitations on file name length in the classic system environment, some of the files may get there "tails" chopped off, and when the applet goes to load, it won't be able to find the right files. Web browsers don't really have any limit on the characters they can read in a name, so the applets will work when being read from a websever (which is probably unix based), as opposed to being read from a local mac system 9.2 or below.
Here is what I found so far running Java Applets (those created with etomica) locally on MacOS 10.1.5. MacOS 10.1.5 supports Sun's Hotspot JDK/JRE 1.3.1. Under this VM, most applets run "okay," however some do not load at all. Below are steps I've found that correct almost all errors and allow the applets to run without problem.
Expanding the Applets Archive: Early versions of StuffIt Expander for System X sometimes chops off the ends of really long file name (Version 7 and above do not have this limitation). So if using an older version of StuffIt Expander, do as follows:
- Launch a terminal window (which is in the utilities folder in the applications folder) switch to the directory with the archive you wish to expand in it and issue the command "tar xvf applets.tar" (http://www.mrconsultingservices.com/osx/clitutorial.html has a good short unix command line interface [cli] tutorial on it for those who aren't familiar)
Running the Applets Locally: Early versions of Netscape for System X have very poor Java support. I suggest using Internet Explorer 5.2, it has better support for Java than 5.1.
Loading the index pages as said, I found that all the applets worked from the ce530 folder, however only a few worked from the wings folder. I added a new classpath to IE to use sun's java resources that are included. To do this, go to preferences and click on the java tab under the category "Web Browser". Click Add under the section Class Paths. Navigate the following path, starting in your Hard disk (mine is called "Macintosh HD"):
You'll have to close and reopen Internet Explorer, but then most of the applets should work.
Additionally, I found that quitting and restarting Internet Explorer after each using an Applet also helped to allow for easy operation of the Applets.
Alternatively, you can use the "Applet Launcher" which is located in the Utilities folder in your applications folder. Open the html file associated with a given applet.
(Chris Iacovella 7/25/02 revised 05/27/03)