I might be wrong but,
Since my very last update to Java 1.6, processing has been returning me the following error code (running any sketch, even running a blank project) :
Code:2010-05-30 22:27:51.768 java[15285:170f] *** Assertion failure in -[CocoaAppWindow _changeJustMain], /SourceCache/AppKit/AppKit-1038.29/AppKit.subproj/NSWindow.m:9470
2010-05-30 22:27:51.771 java[15285:170f] *** CPerformer: ignoring exception 'Invalid parameter not satisfying: [self canBecomeMainWindow]' raised during perform of selector 'requestFocus:' on target 'FocusManager' with args '<AWTComponentSetFocusData: 0x25c674e0>'
Somehow, computer says 'no'…
I double checked my java version by using the following :
Code:public static boolean isJava15OrBetter() {
String javaVersion = System.getProperty("java.version");
println(javaVersion);
String[] fragments = javaVersion.split("\\.");
// sanity check the "1." part of the version
if (!fragments[0].equals("1")) return false;
if (fragments.length < 2) return false;
// check if Java 1.5.x or higher
try {
int minorVers = Integer.parseInt(fragments[1]);
if (minorVers >= 5) return true;
} catch (NumberFormatException e) {
// was not an integer
}
return false;
}
void setup(){
println(isJava15OrBetter());
}
And it returns me 1.6.0_20 and true (since 1.6 is "better" then 1.5)
I read the previous thread warning not to instal the Java 1.5 update but Processing was working just fine…
It still works fine and still displays graphics and does the math correctly, it's just that I don't know what is this and that it might interest one of you (or it might be something really bad but I don't see it)…
So, here I am, making this bug report…
I hope it's nothing too serious… Doctor?
Thanks for the help and cheers,
Benoit