Article
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
Disclaimer: As with everything else at Cool Solutions, this content is definitely not supported by Novell (so don't even think of calling Support if you try something and it blows up).
It was contributed by a community member and is published "as is." It seems to have worked for at least one person, and might work for you. But please be sure to test, test, test before you do anything drastic with it.
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
- Be the first to comment! To leave a comment you need to Login or Register
Thanks!
Submitted by Nehtor on 16 May 2011 - 1:14pm.
I appreciate you posting this since I have spent the last hour looking through Novell's TIDS to find this fix. I really do not understand why this is not in a TID some where. Good job doing Novell's work for them!!
- Be the first to comment! To leave a comment you need to Login or Register


2