Originally posted by: SystemAdmin
Java 1.4.2 does come with AIX 5.3, and Java 5 (aka Java 1.5) is available on the expansion pack and also can be downloaded from the IBM Java site at:
http://www-128.ibm.com/developerworks/java/jdk/aix/service.html To tell what version of Java you have from a build standpoint use: java -version. From an AIX install basis use lslpp -l Java*. Java installs into /usr/java14 for Java 1.4.2 and /usr/java5 for Java 1.5. We also have 64 b it versions that can be installed at the same time. These go into /usr/java14_64 and /usr/java5_64.
To switch between java versions you can source this script:
-
setup Java environment variables
#
-
To run, do :
-
. /usr/local/bin/javaenv {path}
-
e.g.,
-
. /usr/local/bin/javaenv /usr/java131
if
! -d ${1} ; then
echo "error: ${1} does not exist." >&2
else
export JAVAHOME=${1}
export JAVA_HOME="${JAVAHOME}"
export OPATH="${PATH}"
export PATH="${JAVAHOME}/bin:${JAVAHOME}/jre/sh"
export PATH="${PATH}:${JAVAHOME}/jre/bin:${JAVAHOME}/sh:${OPATH}"
unset OPATH
export CLASSPATH="${JAVAHOME}/lib:${CLASSPATH}"
OLIBPATH="${LIBPATH}"
export LIBPATH="${JAVAHOME}/jre/bin"
export LIBPATH="${LIBPATH}:${JAVAHOME}/jre/bin/classic"
export LIBPATH="${LIBPATH}:${JAVAHOME}/lib/aix/native_threads"
export LIBPATH="${LIBPATH}:${JAVAHOME}/bin/aix/native_threads"
export LIBPATH="${LIBPATH}:${OLIBPATH}"
unset OLIBPATH
fi
Although this is the native Java, some applications such as Websphere install their own version of the IBM JDK and this must be updated by putting on Websphere fixpacks, and not by updating the IBM JDK.
The JIT is a part of IBM Java and is always included. The message that you are getting indicates that someone unset the JIT (Just in time compiler) by setting JAVA_COMPILER=NONE or using the flag -Djava.compiler=none. There really is no JIT compiler called NONE, and so the error, so the code will just run interpreted. This is generally a very bad idea for performance reasons and is usually only used for debug.
The only Java that runs on System P systems is the IBM Java. This is true for both AIX and Linux on Power.
#AIX-Forum