IBM makes a Java SDK for PowerPC - In my experience, it has much better performance than open JDK. It can be a bit of a pain to set up though... You will need to manually add it to update-alternatives.
Here is a link:
http://www.ibm.com/developerworks/java/ ... html#java6The download comes in the form of a .bin file. I had to use chmod +x to make it executable:
Code:
chmod +x ibm-java-sdk-6.0-10.1-linux-ppc.bin
Then, once it was finished extracting the SDK, I did the following:
*Replace <MY_JAVASDK_PATH> with the path you extract the .bin file to.Code:
sudo update-alternatives: --install /usr/bin/java java /<MY_JAVASDK_PATH>/bin/java 3
sudo update-alternatives: --install /usr/bin/javac javac /<MY_JAVASDK_PATH>/bin/javac 3
sudo update-alternatives: --install /usr/bin/javaws javaws /<MY_JAVASDK_PATH>/bin/javaws 3
after adding them to update alternatives, I then selected them with the following command and selecting the appropriate versions:
Code:
sudo update-alternatives --config java
sudo update-alternatives --config javac
sudo update-alternatives --config javaws
After that I added the following to the end of my ~/.zshrc file ( Note: edit ~/.bashrc if you don't use zsh ) - This step is probably only neccessary if you want to write some java code:
Code:
export PATH=/<MY_JAVASDK_PATH>/bin:/<MY_JAVASDK_PATH>/jre/bin:$PATH
export JAVA_HOME= /<MY_JAVASDK_PATH>/bin
export JITC_PROCESSOR_TYPE=6
#this will instruct jit to compile code for PPC604 aka G4
export CLASSPATH=.:$JAVA_HOME:$HOME
export JDKROOT=$JAVA_HOME