We will use 3 steps, installing the right Java VM, configuring Konqueror and configuring Mozilla.
1) Installing the Java VM
Unfortunately, the Java VM I have seen included with recent PPC distributions seem either to be not working or too old (notably SuSE 7.3 and YDL 2.1). So we will have to install the VM manually. In order for Java to work within Konqueror or Mozilla, we need a Java2 VM, we have the choice between IBM's JRE and Sun's Blackdown Java2 JRE. Note that we will only install the JRE (Java Runtime Environment) and not the whole SDK. IBM's VM seems to be buggy on PPC, because all I could get was "Out of memory" messages. That's why I decided to stick with the Sun Blackdown VM.
You can download the latest PPC version of it at a mirror from:
Click onto one of the mirrors and download the file JDK-1.3.1/ppc/FCS-02a/j2re-1.3.1-02a-FCS-linux-ppc.bin
Once downloaded, as root, move the .bin file to /usr/lib and do a "chmod a+x j2re-1.3.1-02a-FCS-linux-ppc.bin". Then run the binary installer file (type ./j2re-1.3.1-02a-FCS-linux-ppc.bin) and it will uncompress the Java VM into a new directory.
Now edit the .profile files in the home directory of each user that might use the Java VM, to add /usr/lib/j2re1.3.1/bin/ to the user's $PATH variable.
It may be preferable to remove any other Java VM installed, or at least remove it's java executable from the PATH. (Although normally, they should not interfere)
2) Using Java in Konqueror
Open up an instance of Konqueror. This HowTo applies to Konqueror 2.1 or later. Select "Configure Konqueror..." from the "Settings" menu. Then click onto "Konqueror Browser" in the sidebar and click onto the "Java" tab. Make sure the "Enable Java globally" and "Use Security Manager" check boxes are checked. You may also want to enable the Java console to trouble shoot applets.
Finally, set the "Path to java executable" to "/usr/lib/j2re1.3.1/bin/java".
Close Konqueror and relaunch it. Java should be working now. Note that it may take a few moments till a Java applet actually shows up on a web site, as the applet has to be downloaded and the VM has to be started...
3) Using Java in Mozilla
According to some user reports, Java support is broken on PPC on recent Mozilla versions. However, it seems to work fine on the popular 0.9.4 Mozilla release, so I suggest using that one, if it won't work with your version.
Getting Java to work in Mozilla is the simple matter of creating a link. First cd to your mozilla plugin directory (cd /opt/mozilla/plugins for me, may be different on your system, type "locate mozilla/plugins" to find out where it is).
Now simply create a link to the mozilla plugin included with the Blackdown VM by typing "ln -s /usr/lib/j2re1.3.1/plugin/ppc/mozilla/javaplugin_oji.so ./". Note that you HAVE to do a link, copying the plugin won't work.
Close all Mozilla instances and relaunch it. Java should be working now. Note that it may take a few moments till a Java applet actually shows up on a web site, as the applet has to be downloaded and the VM has to be started...
If you have any problems, comments or suggestions, feel free to .