-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
I used the following commands to install alternatives for use with update-alternatives (thanks to Nicole and Arnaud for the pointers) that allow PowerPC users to quickly alternate between JDK tool options. The priority value of 1000 may be a bit of overkill, but it's not a big deal:
# Use update-alternatives to install # JDK alternatives for the IBM JDK installed # in the default location per IBM's documentation.
update-alternatives --install /usr/bin/javac javac /opt/IBMJava2-ppc-142/bin/javac 1000
update-alternatives --install /usr/bin/rmic rmic /opt/IBMJava2-ppc-142/bin/rmic 1000
update-alternatives --install /usr/bin/java java /opt/IBMJava2-ppc-142/bin/java 1000
update-alternatives --install /usr/bin/jarsigner jarsigner /opt/IBMJava2-ppc-142/bin/jarsigner 1000
update-alternatives --install /usr/bin/javadoc javadoc /opt/IBMJava2-ppc-142/bin/javadoc 1000
update-alternatives --install /usr/bin/appletviewer appletviewer /opt/IBMJava2-ppc-142/bin/appletviewer 1000
update-alternatives --install /usr/bin/rmid rmid /opt/IBMJava2-ppc-142/bin/rmid 1000
update-alternatives --install /usr/bin/rmiregistry rmiregistry /opt/IBMJava2-ppc-142/bin/rmiregistry 1000
update-alternatives --install /usr/bin/javah javah /opt/IBMJava2-ppc-142/bin/javah 1000
update-alternatives --install /usr/bin/javap javap /opt/IBMJava2-ppc-142/bin/javap 1000
update-alternatives --install /usr/bin/jar jar /opt/IBMJava2-ppc-142/bin/jar 1000
update-alternatives --install /usr/bin/jdb jdb /opt/IBMJava2-ppc-142/bin/jdb 1000
update-alternatives --install /usr/bin/keytool keytool /opt/IBMJava2-ppc-142/bin/keytool 1000
update-alternatives --install /usr/bin/policytool policytool /opt/IBMJava2-ppc-142/bin/policytool 1000
Using the /usr/bin/fjsdk/bin/java-alt-setup script, I was then able to indicate the use of the appropriate java tools for use with the links in /usr/bin. This could also be performed manually using the following commands:
update-alternatives --config javac update-alternatives --config rmic update-alternatives --config jarsigner update-alternatives --config javadoc update-alternatives --config appletviewer update-alternatives --config rmid update-alternatives --config rmiregistry update-alternatives --config javah update-alternatives --config javap update-alternatives --config jar update-alternatives --config jdb update-alternatives --config keytool update-alternatives --config policytool
Regards, - -- Barry Hawkins All Things Computed site: www.alltc.com weblog: www.yepthatsme.com
Registered Linux User #368650 -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.5 (GNU/Linux)
iD8DBQFBmWEk7bZ6kUftWZwRAqsZAJ42ZL/6c4QCaDjuPva1AXcZYFjD4QCfQvux L9zZQoB8Z3iCDG8xycKvdhk= =PEkw -----END PGP SIGNATURE-----

