The default Java for PowerPC available in Ubuntu is openjdk, that you can install via apt-get (for more info visit http://openjdk.java.net)
You may also be interested in other projects such as Kaffe - although "Kaffe is not Java" (for more info visit http://www.kaffe.org/)
This How-to deals with the process of installing IBM-Java on PowerPC machines running Ubuntu Intrepid 8.10 and Jaunty 9.04 (but it should work also in Hardy 8.04)
WARNING You can screw up your system. Try at your own risk! - and forgive me for my english!
Sun has never released Java for Linux on PowerPC. On Debian-platforms you can download a ppc-release of Java from IBM Web-site and generate an installable .deb package using the tool make-jpkg (that comes with the 'java-package').
In Ubuntu this process fails, because make-jpkg needs a library (libstdc++5) that you can't install with apt-get, because it needs another package (gcc-3.3), that is not available https://bugs.launchpad.net/ubuntu/+s....3/+bug/326964
(by the way, this produces another problem by installing ppc-codecs from medibuntu https://bugs.launchpad.net/ubuntu/+s....3/+bug/312734)
Therefore, installing IBM-Java will follow in three steps:
1. Make make-jpkg working properly, downloading libstdc++5 from the debian repositories
2. Download IBM-Java, create and install an ibm-java .deb package
3. Check the installed IBM-Java and link the browser plugin to Firefox
1. An (almost) properly working make-jpkg
Download java-package
Code:
sudo apt-get java-package
Download libstdc++5 for PowerPC to your Desktop from this link http://packages.debian.org/lenny/libstdc++5 and install it
Code:
cd Desktop
sudo dkpg -i libstdc++5_3.3.6-18_powerpc.deb
sudo apt-get update
2. Installing IBM-Java
Create a directory (ex. Downloads/IBM-Java) and download IBM-Java from this link (free registration required)
http://www.ibm.com/developerworks/ja.../download.html
IBM releases Java for 32-bit and 64-bit ppc. Choose according to your architecture (Apple G3, G4= 32-bit; Apple G5=64-bit).
After the registration, you have the option to download using Download Director or via http. Since you need Java to use the Download Director, choose to download via http
Ubuntu (and Debian) users needs files ending with .tgz (not .rpm!)
You can install just the Java Runtime Environment (JRE), or the Java development Kit (JDK) that contains also JRE.
But not every version is supported by the java-package.
If you want to see, which version your java-package supports, have a look to the file /usr/share/doc/java-package/SUPPORTED.gz (do not edit it!)
I downloaded ibm-java-sdk-6.0-4.0-linux-ppc.tgz, that is not supported but it looks quite similar to another supported version (ibm-java-sdk-6.0-4.0-linux-ppc.tgz)
Therefore I renamed the downloaded package to the supported version
Code:
cd Downloads/IBM-Java
mv ibm-java-sdk-6.0-4.0-linux-ppc.tgz ibm-java-sdk-6.0-0.0-linux-ppc.tgz
Make an installable .deb package
Code:
fakeroot make-jpkg ibm-java-sdk-6.0-0.0-linux-ppc.tgz
Most probably you will get some errors.
Wait until it has finished and install it (the generated package I got is called 'ibm-j2sdk1.6_1.6.0_powerpc.deb')
Code:
sudo dpkg -i ibm-j2sdk1.6_1.6.0_powerpc.deb
3. Check the installed IBM-Java and link the browser plugin to Firefox
Check the installed Java's version
The installed browser plugin is 'libjavaplugin_oji.so' (/usr/lib/j2sdk1.6-ibm/jre/plugin/ppc/ns7/libjavaplugin_oji.so).
There are several broken links in /etc/alternatives and in /usr/lib/mozilla-firefox/plugins/
You need to unlink and to relink them to the new installed plugin.
I notice that it should already work if you link the plugin to /etc/alternatives/mozilla-javaplugin.so
Code:
sudo unlink /etc/alternatives/mozilla-javaplugin.so
sudo ln -s /usr/lib/j2sdk1.6-ibm/jre/plugin/ppc/ns7/libjavaplugin_oji.so /etc/alternatives/mozilla-javaplugin.so
Restart Firefox and check if the java plugins were loaded
Type in the Navigation Toolbar
Visit this link to check if the java-plugin is working
http://www.java.com/en/download/installed.jsp
______________________
Useful links:
http://peter.makholm.net/2007/04/16/java-on-linuxppc/
http://www.ibm.com/developerworks/sy.../es-apple.html
http://www.debianhelp.co.uk/debianjava.htm
http://www.debianhelp.co.uk/javadeb.htm
http://www.debianhelp.co.uk/browserplugins.htm
Bookmarks