This has come up a few times in recent weeks, so I thought I’d write it down once and for all.
The standard installation procedure for the PSO Toolkit has been to unzip the distribution into a directory (e.g. ~/deploy/PSOToolkit) and run the deploy.xml Ant script. This fails on most Linux systems because the Java compilers are incompatible.
The version of Java that comes with standard Linux distros is the GNU Java, largely because the Sun Java compiler was, until very recently, insufficiently “free” for the Free Software Foundation. While it’s possible to install Sun Java as the system level Java, this requires that you be an administrator.
A better way to do this is to install the Rhythmyx Patch installer (see the sticky post at the top of this forum).
Assuming you have created a user named “rhythmyx” and then installed Rhythmyx in the “Rhythmyx” directory, you can add these three lines to the .profile (or .bashrc) file in the /home/rhythmyx directory:
export RHYTHMYX_HOME=~/Rhythmyx
export JAVA_HOME=$RHYTHMYX_HOME/JRE
export ANT_HOME=$RHYTHMYX_HOME/Patch/InstallToolkit
After you’ve done this (and logged in again or sourced the modified .profile), you should be able to just rely on the $ANT_HOME and $JAVA_HOME environment variables:
~/deploy/PSOToolkit>ant -f deploy.xml
in some distros, you will need the full path:
~/deploy/PSOToolkit>$ANT_HOME/bin/ant -f deploy.xml
You can ignore the warning about tools.jar being missing. This is caused by the fact that you are using a Java Runtime Environment (JRE) and not a Java Development Kit (JDK) as the JAVA_HOME environment. It’s not really an error.