This is easy to bypass. Use Disk Utility to convert the disk image to a read/write image on your hard drive. Mount the new image, and show the installation package contents.
Open the JavaSE6Release1.dist file in the Contents directory with a text editor. Find the following if statement and delete it:
Code:if ( system.compareVersions(sysVersion.ProductVersion, "10.5") >= 0 ) { my.result.message = system.localizedStringWithFormat('sysTooNew'); my.result.type = 'Fatal'; return false; }
If you don't have any botched attempt of 1.6 installed, that should be all. Otherwise you may need to delete the following if statement as well (I had to do this):
Code:// if the JavaVM.framework is greater than 11.6.0 (this release), don't install // Note: this logic needs to be checked/bumped with every Java release if (system.compareVersions(javaBundle.CFBundleShortVersionString, "11.6.0") == 1) { my.result.message = system.localizedStringWithFormat('javaTooNew'); my.result.type = 'Fatal'; return false; }
There is one more if statement that may be relevant (search for "java16TooNew" in the file) but I did not need to delete it.
Now save the file and run the installation package. It should install without issue.
Unfortunately, it still does not work for me. If I execute "java -version" in a Terminal, I get the following:
Code:$ /System/Library/Frameworks/JavaVM.framework/Versions/Current/Commands/java dyld: lazy symbol binding failed: Symbol not found: _GetAvailableVMVersions Referenced from: /System/Library/Frameworks/JavaVM.framework/Versions/Current/Commands/java Expected in: /System/Library/PrivateFrameworks/JavaApplicationLauncher.framework/Versions/A/JavaApplicationLauncher dyld: Symbol not found: _GetAvailableVMVersions Referenced from: /System/Library/Frameworks/JavaVM.framework/Versions/Current/Commands/java Expected in: /System/Library/PrivateFrameworks/JavaApplicationLauncher.framework/Versions/A/JavaApplicationLauncher Trace/BPT trap
From what I understand, this means that this version of Java references a library that I do not have on my system. So it may still be possible to get it working...
Yeah, that sucks. Apple Y U MAKE DIFFICULT.