Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.
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.
 
I'm afraid Java support for PowerPC ended quite some time ago so all our G5's and below are stuck running an old version of Java 5 I'm afraid. No modern minecraft for you! :p
Actually, that is not true. Java 6 was in Beta for PPC but they soon dropped it because Intel was on the rise. I spent a lOOOOOOONNNNNNGGGGGG time looking up that information. If only somebody uploaded it...
 
Got it !!!

javase6release1dp6.dmg downloaded from http://livetube.cc/testing/osx/

Just tried to run the update but the first problem was a warning that it will only run on 10.4
There must be a plist somewhere that can be edited to include 10.5 ...

... but according to http://stackoverflow.com/questions/613175/java-6-on-mac-powerpc-with-mac-os-x-10-4 answer no.3 (by the way their link is dead) -

"You can't install it via installer but go to /Volumes/Java\ SE\ 6\ Release\ 1/JavaSE6Release1.pkg/ and copy Archive.pax.gz to your Desktop; gzip -d Archive.pax.gz and then pax or double click on Archive.pax.

Now there is the package content. Under /Your Desktop/System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/Home/bin you can find a PPC 1.6 JDK ;-) beta but an working 1.6 JDK.

Copy 1.6.0 to /System/Library/Frameworks/JavaVM.framework/Version .. run /System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/Home/bin/java

Thats it ...
"

Will have a go in the morning, once I've backed everything up with CCC.

How do I check if it's working?

Cheers :)

Hugh
 
OK, so I've been playing around with this - I followed the instructions in the blue text of my above post and copied the 1.6 JDK into the location specified (had to remove some aliases related to an Intel version of 1.6), and in addition I changed the JavaPluginCocoa.bundle in /Library/Internet Plugins to the 1.6 version.

Firstly, java -version in Terminal still returns

PowerBookG4-A1106:~ hugh$ java -version
java version "1.5.0_30"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_30-b03-389-9M3425)
Java HotSpot(TM) Client VM (build 1.5.0_30-161, mixed mode, sharing)

But, in TenFourFox 17, about: plugins gives

Java Plug-In 2 for NPAPI Browsers

File: JavaPlugin2_NPAPI.plugin
Version: 12.9.0
Java Plug-In 2 for NPAPI Browsers

MIME Type Description Suffixes
application/x-java-applet;version=1.3 Java applet
application/x-java-applet;version=1.5 Java applet
application/x-java-applet;version=1.1.3 Java applet
application/x-java-applet;version=1.2 Java applet
application/x-java-applet;version=1.2.1 Java applet
application/x-java-applet;version=1.4.2 Java applet
application/x-java-applet;version=1.1 Java applet
application/x-java-applet;version=1.1.1 Java applet
application/x-java-applet;version=1.3.1 Java applet
application/x-java-applet;version=1.6 Java applet
application/x-java-applet Basic Java Applets javaapplet
application/x-java-applet;jpi-version=1.6.0_26 Java applet
application/x-java-vm Java applet
application/x-java-applet;version=1.4 Java applet
application/x-java-applet;version=1.1.2 Java applet
application/x-java-applet;version=1.2.2 Java applet
application/x-java-vm-npruntime Java applet

So some of 1.6 is being used, probably mostly due to the replacement of the JavaPluginCocoa.bundle.

I also swear I'm getting far fewer 'Slow Script' errors in Safari Webkit

Cheers :)

Hugh
 
OK, so I've been playing around with this - I followed the instructions in the blue text of my above post and copied the 1.6 JDK into the location specified (had to remove some aliases related to an Intel version of 1.6), and in addition I changed the JavaPluginCocoa.bundle in /Library/Internet Plugins to the 1.6 version.

Firstly, java -version in Terminal still returns

PowerBookG4-A1106:~ hugh$ java -version
java version "1.5.0_30"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_30-b03-389-9M3425)
Java HotSpot(TM) Client VM (build 1.5.0_30-161, mixed mode, sharing)

But, in TenFourFox 17, about: plugins gives

Java Plug-In 2 for NPAPI Browsers

File: JavaPlugin2_NPAPI.plugin
Version: 12.9.0
Java Plug-In 2 for NPAPI Browsers

MIME Type Description Suffixes
application/x-java-applet;version=1.3 Java applet
application/x-java-applet;version=1.5 Java applet
application/x-java-applet;version=1.1.3 Java applet
application/x-java-applet;version=1.2 Java applet
application/x-java-applet;version=1.2.1 Java applet
application/x-java-applet;version=1.4.2 Java applet
application/x-java-applet;version=1.1 Java applet
application/x-java-applet;version=1.1.1 Java applet
application/x-java-applet;version=1.3.1 Java applet
application/x-java-applet;version=1.6 Java applet
application/x-java-applet Basic Java Applets javaapplet
application/x-java-applet;jpi-version=1.6.0_26 Java applet
application/x-java-vm Java applet
application/x-java-applet;version=1.4 Java applet
application/x-java-applet;version=1.1.2 Java applet
application/x-java-applet;version=1.2.2 Java applet
application/x-java-vm-npruntime Java applet

So some of 1.6 is being used, probably mostly due to the replacement of the JavaPluginCocoa.bundle.

I also swear I'm getting far fewer 'Slow Script' errors in Safari Webkit

Cheers :)

Hugh

Nice progress. Its good to try to get Java 6 on these old beasts. Makes em more usable for the web.
 
Ha ha, FAILURE - I get the self same results in about: plugins with TenFourFox on another 15" PowerBook which hasn't had the Java 6 mod.

There is a 1.6.0.jdk in /System/Library/Java/JavaVirtualMachines (on both PowerBooks) which reports itself as Intel only - maybe the about: plugins is referring to this? but I can't see how as it's not PPC.

I've returned the modded PowerBook back to it's original state while I think again.
Trouble is, I don't really know what I am doing so fishing in the dark.

Cheers :)

Hugh
 
OK, so I've been playing around with this - I followed the instructions in the blue text of my above post and copied the 1.6 JDK into the location specified (had to remove some aliases related to an Intel version of 1.6), and in addition I changed the JavaPluginCocoa.bundle in /Library/Internet Plugins to the 1.6 version.

Firstly, java -version in Terminal still returns

PowerBookG4-A1106:~ hugh$ java -version
java version "1.5.0_30"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_30-b03-389-9M3425)
Java HotSpot(TM) Client VM (build 1.5.0_30-161, mixed mode, sharing)

Hugh


Hello.
Edit bash_profile and add the line.:

export PATH = / System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/Home/bin $

now,

java -version
usage: update_sharing 1.3 | 1.4 | 1.5 | 1.6

java version "1.6.0-dp"
Java(TM) SE Runtime Environment (build 1.6.0-dp-b88-34)
Java HotSpot(TM) Core VM (build 1.6.0-b88-17-release, interpreted mode)
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.