[BLUEJ-164] BlueJ fails to start with Java 5 64bit on Mac Os
The problem is that with the new stub it always uses a 64bit Java to launch, even if we put Java 5 32 bit at the top. Java 5 64 bit does not have access to the NSApplication used for the bringToFront code (because that it is a 32 bit library).
The change to use 64 bit always was introduced in Java for Mac OS X 10.5 Update 4.
If you use "Get Info" on the BlueJ app, and check "Open in 32 Bit Mode" then it will launch with Java 5 (but not Java 6).
The correct way to fix this, is to remove the Java 1.5 specific code in bringToFront, and always use the external script we use for Java 6.
If people run into this problem, they should use Java 6 (which most Mac users except Davin will have). If they don't have Java 6, I think they wont have Java 5 64 bit either, in which case it should work fine. I assume it does, since Davin would otherwise have run into problems during testing.
If, they have Java 5 64bit, but not Java 6, we can make them check the "Open in 32 bit Mode" checkbox.
Issue metadata
- Issue type: Bug
- Priority: Medium
- Fix versions: 2.5.3