#!/bin/sh
# $Id: /public/scripts/ccver_jar.sh#1 $
#
# Shell script to manually start WebLogic Server on UNIX systems
# Assumes that the native libraries are installed where they'll
# be found (that LD_LIBRARY_PATH or SHLIB_PATH is set properly)
if [ $# -lt 1 ]
then
echo " "
echo "Usage: $0 Jar-name"
echo "Example: $0 CC"
echo " "
exit 1
fi
JARN=$1
JARNAME=$1".jar"
FULLJARNAME="/install/weblogic/classes/Jars/"$JARNAME
if [ ! -f $FULLJARNAME ]
then
echo ""
echo "Jar file: "$FULLJARNAME" is not exist. Exit..."
echo ""
exit 1
fi
# Some Java utilities don't know where their classes are
# Add more settings as needed
sys=`uname -s`
if [ "$sys" = AIX ]; then
# Change JDK_HOME to the actual location of your JDK, if necessary
JDK_HOME=/usr/jdk_base
JAVA=$JDK_HOME/bin/java
else
JAVA=java
fi
cd /install/weblogic
# Make sure we're in the right place
if [ ! -f license/WebLogicLicense.xml -o ! -f weblogic.policy ]; then
echo "ccver.sh: must be run from the WebLogic installation directory." 1>&2
exit 1
fi
# Grab some file descriptors.
maxfiles=`ulimit -H -n`
if [ ! $? -a "$maxfiles" != 1024 ]; then
if [ "$maxfiles" = "unlimited" ]; then
maxfiles=1025
fi
if [ "$maxfiles" -lt 1024 ]; then
ulimit -n $maxfiles
else
ulimit -n 1024
fi
fi
# Check whether we're running Java 2
$JAVA -X > /dev/null 2>&1
if [ $? -a -n "$JDK_HOME" ]; then
# Java 1
JAVACLASSPATH=./classes/Jars/$JARNAME:$JDK_HOME/lib/classes.zip:./classes/boot:./eval/cloudscape/lib/cloudscape.jar
else
# Java 2, or Java 1 and java knows where classes.zip is
JAVACLASSPATH=./classes/Jars/$JARNAME:./classes/boot:./eval/cloudscape/lib/cloudscape.jar:./lib/poolorb.jar
fi
$JAVA -ms128m -mx128m -classpath $JAVACLASSPATH -Djava.compiler=NONE globecom.globalsale.util.Version