Technical Tip
tip
Reads:
1119
Score:
If you try to hit C1 and iManager on the same machine you get a java error every time. This modified ConsoleOne script gets around it by using a different JVM. You may have to modify my hack to use the jvm on your machine. I hope this doesn't go against the copyright
# Copyright 1994-1998 by Sun Microsystems, Inc.,
# 901 San Antonio Road, Palo Alto, California, 94303, U.S.A.
# All rights reserved.
#
# This software is the confidential and proprietary information
# of Sun Microsystems, Inc. ("Confidential Information"). You
# shall not disclose such Confidential Information and shall use
# it only in accordance with the terms of the license agreement
# you entered into with Sun.
#
PRG=$0
progname=`basename $0`
osname=`/bin/uname -s`
#LD_LIBRARY_PATH="/usr/ConsoleOne/usr/lib:/usr/lib:/opt/novell/lib:/opt/novell/eDirectory/lib:$LD_LIBRARY_PATH"
#export LD_LIBRARY_PATH
# GroupWise:
BINHOME=`dirname "$PRG"`
LD_LIBRARY_PATH="$BINHOME:/usr/ConsoleOne/usr/lib:/usr/lib:/opt/novell/lib:/opt/novell/eDirectory/lib:$LD_LIBRARY_PATH"
export LD_LIBRARY_PATH
# Resolves any symbolic links that are created. For Tru64, /usr/ConsoleOne/bin/ConsoleOne has to be last place
# to resolve the symbolic links even though it is symbolic link itself. Because of the way snapin pakages place in
# Tru64. Will need to fix the pakaging mechanism later to aviod this workaround.
if [ "$osname" = OSF1 ]; then
PRG="/usr/ConsoleOne/bin/ConsoleOne"
else
while [ -h "$PRG" ]; do
ls=`/bin/ls -ld "$PRG"`
link=`/usr/bin/expr "$ls" : '^.*-> \(.*\)$'`
if /usr/bin/expr "$link" : '^/' > /dev/null; then
PRG="$link"
else
PRG="`/usr/bin/dirname $PRG`/$link"
fi
done
fi
APPHOME=`dirname "$PRG"`/..
JREHOME=$APPHOME/jre
JREHOME2=$APPHOME/jre/jre
#IBMJREHOME=/opt/IBMJava2-14/jre
#COMPAQJAVAJRE=/usr/opt/jre122
# Where is JRE?
unset jre
if [ -d "${JRE_HOME}" -a -f "${JRE_HOME}/bin/java" ]; then
jre="${JRE_HOME}"
fi
if [ -f "${JREHOME}/bin/java" ]; then
jre="${JREHOME}"
fi
if [ -f "${JREHOME2}/bin/java" ]; then
jre="${JREHOME2}"
fi
#if [ -d "${IBMJREHOME}" -a -f "${IBMJREHOME}/bin/java" ]; then
# jre="${IBMJREHOME}"
#fi
#if [ -d "${COMPAQJAVAJRE}" -a -f "${COPMAQJAVAJRE}/bin/java" ]; then
# jre="${COMPAQJAVAJRE}"
#fi
if [ -d "${C1_JRE_HOME}" -a -f "${C1_JRE_HOME}/bin/java" ]; then
jre="${C1_JRE_HOME}"
fi
if [ "x${jre}" = "x" ]; then
echo "Error: can't find java"
exit 1
fi
# Get Classpath
unset classpath
classpath="$classpath:$APPHOME/ConsoleOne.jar"
classpath="$classpath:$APPHOME/ConsoleOneCore.jar"
classpath="$classpath:$APPHOME/help"
classpath="$classpath:/usr/ConsoleOne/usr/lib/jclient.jar"
classpath="$classpath:/usr/lib/jclient.jar"
classpath="$classpath:/opt/novell/eDirectory/lib/jclient.jar"
classpath="$classpath:/opt/NOVLn4u/lib/jclient.jar"
# BEGIN TEMP
classpath="$classpath:/usr/lib/dirxml/classes/jclient.jar"
classpath="$classpath:/opt/NOVLn4u/dirxml/classes/jclient.jar"
# END TEMP
for jar in $APPHOME/ConsoleOneExt/*.jar; do
classpath="$classpath:$jar"
done
classpath="$classpath:$CLASSPATH"
#prog="${jre}/bin/java"
prog=/usr/lib/jvm/jre-1.5.0-ibm/bin/java
# Run.
if [ -x "$prog" ]
then
$prog -noverify -Dapplication.home="${APPHOME}" -classpath "$classpath" com.novell.application.console.shell.Console "$@"
else
echo >&2 "$progname was not found in ${prog}"
exit 1
fi
Related Articles
User Comments
eDir 8.8SPx or eDir8.7.x?
Submitted by eschmidlin on 13 June 2008 - 12:21am.
Would be interesting to know the eDir version you use.
Cheers
Elmar
- Login to post comments







1