HyVisual Notes for Mac OS X

Mac OS X Java 1.4 InstructionsX

HyVisual requires Java 1.4 because it uses the java.net.URI class which is not present in Java 1.3.
Mac OS X 10.2 is required to run Java 1.4. http://developer.apple.com/java/faq/index.html#gen_1 says:

Q: What version of Java is included on Mac OS X?

A: The latest version of Java for Mac OS X is based on the J2SE 1.3.1 JDK with the HotSpot Client VM. The most recent Java release is part of Mac OS X 10.2 (Jaguar), and is feature-parallel to JDK 1.3.1_03. The Java 1.3.1 Update 1 for Mac OS X 10.1 contains all of Sun's additions for JDK 1.3.1_02. The 10.2.x updates contain no Java updates.

Q: Does Apple have an implementation of J2SE 1.4.1 for Mac OS X?

A: A Java 1.4.1 Developer Preview is now available to all ADC members (Online, Select and Premier). This includes most of the 1.4.1 VM and UI implementation, as well as a replacement API for the deprecated MRJToolkit interfaces -- much more complete than the version supplied at WWDC. This Developer Preview only works with Mac OS X version 10.2.x, and will not work with 10.1.5 or earlier. The most recent release is named "J2SE 1.4.1 Developer Preview 8" and it has been posted to the "Download Software" section of the ADC web site . We plan on providing regular refreshes to this Developer Preview until the product becomes generally available.

Mac OS X Web Start Problems

Under Mac OS 10.2 with Java 1.4, the Web Start binary downloads, but does not start up, the Web Start console window appears, but nothing else happens.

Mac OS X Installer Problems

The InstallAnywhere installer runs, but clicking on the desktop icons does nothing.

To start up HyVisual under Mac OS X, try:

java -classpath "lib/diva.jar:ptolemy/ptsupport.jar:ptolemy/vergil/vergil.jar:ptolemy/domains/fsm/fsm.jar:ptolemy/domains/ct/ct.jar:ptolemy/domains/sdf/kernel/kernel.jar:ptolemy/hsif/hsif.jar:ptolemy/domains/ct/demo/demo.jar" ptolemy.vergil.VergilApplication -hyvisual
or try the generic Java installer.

Mac OS X UI bugs

Drag and Drop does not work
Under MacOSX with Web Start, to set up the Web Start console window, do: Applications -> Utilities -> Java -> Web Start When I drag an actor, I see the following in the Web Start Console window:
        at sun.awt.datatransfer.DataTransferer.translateTransferable(DataTransferer.java:1197)
        at apple.awt.CDataTransferer.translateTransferable(CDataTransferer.java
        at sun.awt.datatransfer.DataTransferer$6.run(DataTransferer.java:1937) 
        at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:178)  
        at java.awt.EventQueue.dispatchEvent(EventQueue.java:448)
        at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:230)                                                                
        at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:183)                                                                  
        at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:177)
        at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)
        at java.awt.EventDispatchThread.run(EventDispatchThread.java:99)
Joe Porter reports
Interestingly, I downloaded the source and built Ptolemy from scratch under OSX. This time I saw the exception mentioned on the console, but it generally worked well otherwise. Under Web Start on OSX I can't do anything at all.
The version of Java that is being run is a beta version of 1.4

The following Sun Java Topic might be of use http://forum.java.sun.com/thread.jsp?thread=184916&forum=5&message=654598

There are problems with the right mouse button
Usually click and hold or Control-click simulates the right button, but not under HyVisual