Due to Non-Free status of most [Java] implementations, Ubuntu does not include Java support natively. See RestrictedFormats.
There are two places to get Java for Ubuntu PPC: IBM and Blackdown.
IBM produces a Java Development Kit (JDK) for its POWER computers, which happens to also work on PPC. They are the only place to make available recent versions of Java for PPC Linux.
The JDK is known to work on G3, G4, and G5 Macs, as well as older 604e and 603e Macs. It is not yet known whether it works on non-Mac PowerPCs. Please update the Wiki if you have more information!
To get the IBM JDK, go to [WWW] https://www6.software.ibm.com/dl/lxdk/lxdk-p
, and choose the topmost (most recent) SDK for 32-bit iSeries/pSeries. Be sure to get the 32-bit version even if you have a G5. You will have to register before being allowed to download anything. When you reach the download page, download the RPM version of the SDK.
To use an RPM with Ubuntu, you have to convert it to a DEB. Make sure you have the tools fakeroot and alien installed:
sudo apt-get install fakeroot alien
Now convert the RPM and install the resulting DEB:
fakeroot alien -d IBMJava2-SDK-ppc-1.4.2-0.0.ppc.rpm
sudo dpkg -i ibmjava2-sdk-ppc_1.4.2-1_powerpc.deb
To use Java, you'll have to make sure the java binaries are in your path. Add to your .bashrc:
Now test that everything's working. Open a new terminal, and try this:
If you see a Tic Tac Toe game, it worked!
Is Java crashing when you try this example? It may be because of a fixable bug in the IBM JDK. Try running "JITC_PROCESSOR_TYPE=6 appletviewer example1.html" (use 5 instead of 6 on a pre-G3), or as a last resort "JAVA_COMPILER=NONE appletviewer example1.html". If one of these works, edit your .bashrc to export the environment variable, eg: add the line 'export JITC_PROCESSOR_TYPE=6'.
You should let Ubuntu know that you've installed Java, so it will allow you to install Java-based packages. Install the java-virtual-machine-dummy package from [WWW] http://packages.debian.org/stable/misc/ ... hine-dummy
. Then edit /etc/java-vm so that it reads:
Unfortunately, there's no Mozilla plug-in for IBM's Java on PPC. If you need to view applets, you'll have to install Konqueror from the Debian repository. See AddingRepositoriesHowto.
Blackdown has been porting Java to various platforms for the past few years. However, their most recent effort for PPC is Java 1.3.1, and their browser plugin does not work with recent versions of Mozilla or Mozilla-based browsers.
You can download Blackdown Java from [WWW] ftp://ftp.tux.org/pub/java/JDK-1.3.1/pp ... ux-ppc.bin