On Mon, 4 Jan 1999, Mauricio Cristal wrote:
> Hi,
>
> I know that it likes a stupid question, but I had set and export the
> CLASSPATH to the directory (/usr/local/OB3.1/ob/lib) where the classes are
> and the JDK didn't find the called methods in the program.
On my RedHat system, I have this in /etc/profile.d/jdk.sh
if [ -z "${JAVA_HOME}" ] ; then
export JAVA_HOME=/usr/lib/jdk116
fi
if [ -z "${JDK_HOME}" ] ; then
export JDK_HOME=/usr/lib/jdk116
fi
SW=`cat /etc/profile.d/java`
SW=`echo ${SW} | sed -e "s/ /:/g"`
MYPATH="${JDK_HOME}/lib/classes.zip:${SW}"
export CLASSPATH="${MYPATH}"
MYPATH="${JDK_HOME}/bin/"
echo ":${PATH}:"| grep "${MYPATH}" >/dev/null ||\
PATH="${PATH}:${MYPATH}"
export PATH
unset SW MYPATH
and in /etc/profile.d/java I have a list of directories, zips & jars to
add.
Other systems, other shells do it differently.
--
Cheers
John Summerfield
http://os2.ami.com.au/os2/ for OS/2 support.
Configuration, networking, combined IBM ftpsites index.