I have several powermac G4 computers running leopard, and would like to use them as a test environment for my Java 7 based applications. I have looked online a bit but could not find any way to install java 7 on a powerpc computer. I wouldn't mind using linux or other alternative operating systems if necessary to get java 7, but would prefer to stay on os x if possible,
I have successfully built and run Java 7 on my Mac OS X 10.5.8 PPC, exactly OpenJDK version 1.7.0-internal-landonf_2009_12_16_12_54-b00, using these instructions.
PowerPC is still an official architecture for Debian. The package openjdk-7-jre is availible for powerpc and should run your Java 7 code.
Unfortunately, Java 7 is only available on OS X for Intel-based Macs running Mac OS X 10.7.3 (Lion) or later.
The Mac OS X System Requirements page for Java 7 states:
Mac OS X System Requirements
Intel-based Mac running Mac OS X 10.7.3 (Lion) or later.* Administrator privileges for installation 64-bit browser Note that installing Java on a Mac is performed on a system wide basis, for all users, and administrator privileges are required. You cannot install Java on a single-user basis.
A 64-bit browser (Safari or Firefox, for example) is required to run Java 7 on Mac OS X. 32-bit browsers such as Chrome do not support Java 7 on the Mac platform.
*Users with Mac OS X versions 10.6 and below should go to Software Update under the Apple menu to look for updates.
There are some very old releases available for PowerPC at SoyLatte, but these may not be suitable.
Powermac G4 is 32bit PowerPC/PPC based. PPC32 is only being maintained for Linux nowaday, but the good news is that the 32bit Java 8 from Azul Systems works on PowerMac G4 with Linux. We got OpenHab to work on this configuration. This is not yet a free download but ask nicely enough and often enough and they make make it available.