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

0 votes, average: 0.00 out of 50 votes, average: 0.00 out of 50 votes, average: 0.00 out of 50 votes, average: 0.00 out of 50 votes, average: 0.00 out of 5 (0 votes, average: 0.00 out of 5)
You need to be a registered member to rate this post.
Loading...Loading...
Categories: Uncategorized

Disclaimer: As with everything else at NetIQ Cool Solutions, this content is definitely not supported by NetIQ, so Customer Support will not be able to help you if it has any adverse effect on your environment.  It just worked for at least one person, and perhaps it will be useful for you too.  Be sure to test in a non-production environment.

Leave a Reply

Leave a Comment

  • eschmidlin says:

    Would be interesting to know the eDir version you use.

    Cheers

    Elmar

  • Nehtor says:

    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!!

By: raronson
Jun 2, 2008
12:22 pm
Reads:
1,360
Score:
Unrated