I just downloaded and installed Oracle's new Java 7u6 for the Mac (10.7.4) and adjusted the JRE order in the Java preferences. Running a sketch then gets me the following error message: "Error: This Java instance does not support a 32-bit JVM."
However, there is no 32bit version of Oracle's Java for the Mac. The only way to get any sketch running is by reverting the JRE order to the previous state (Apple's 64bit, Apple's 32bit, Oracle's 64bit 7u6).
I wonder if this is known or even documented behavior, but I couldn't find it anywhere.
Consider the following sketch:
void setup() {
size(100, 100);
color col1 = color(0, 0);
color col2 = color(1, 0);
fill(col1);
rect(10, 10, 20, 80); // black rectangle
fill(col2);
rect(40, 10, 20, 80); // transparent rectangle
fill(0, 0);
rect(70, 10, 20, 80); // transparent rectangle
}
The first rectangle is drawn fully opaque although the alpha channel is 0. This does not depend on the rendering method (standard, P2D, OPENGL). All rectangles are drawn as I would expect if the alpha channel is 1 (or any other value) rather than of 0.
I created a small sketch on my Mac (OS X 10.7.4, Java from Apple fully upgraded), and then exported it as an applet. When I load the index.html in Firefox (14.0.1) the sketch runs nicely.
If I load the index.html with Safari (6.0), however, only the text that should appear below the applet is shown at the top of the page. There isn't even an outline where the applet should be. The Java console doesn't show anything (and isn't opened in the first place), so it seems safari doesn't even load the applet.
Execution of Java applets is enabled both in the general Java preferences and in Safari itself.
It seems there has been another post addressing this (or a similar) issue more than a year ago but got no answer.