Hi fred,
I was able to run other java files and not able to compile my java services from the webMethods so i am sending the server.sh file below check it out and give me some tips you mentioned explicitly but i was not able to make that step aslo…
The change i made is the Java_root = c:\newwm\bin
#!/bin/sh
#############################################################################
Copyright (c) 1996-2001, webMethods Inc. All Rights Reserved.
server.sh : launch webMethods Integration Server
Change B2B_ROOT and JAVA_ROOT to reflect their locations on your system
This script is designed to work with Java VM’s that conform to the
command-line conventions of Sun Microsystems ™ Java Development Kit
or Java Runtime Environment.
#############################################################################
JAVA_MIN_MEM=96M
JAVA_MAX_MEM=128M
JAVA_MEMSET=“-ms${JAVA_MIN_MEM} -mx${JAVA_MAX_MEM}”
##############################################################################
Items in PREPENDCLASSES will be added to the classpath right after the server.jar
Items in the APPENDCLASSES will be added to the absolute end of the CLASSPATH
##############################################################################
PREPENDCLASSES=
APPENDCLASSES=
---- SET INITIALLY BY THE INSTALLER ----
B2B_ROOT=C:\Program Files\webMethods\IntegrationServer4
JAVA_ROOT=C:\newwm\bin
---- BE CAREFUL MAKING ANY CHANGES BELOW THIS LINE ----
if [ “$1” = “local” ]; then
shift
B2B_ROOT=pwd
JAVA_PATH=which java
JAVA_ROOT=dirname ${JAVA_PATH}
/…
RUNLOCAL=“true”
else
RUNLOCAL=“false”
fi
---- SYSTEM SETTINGS ----
LS_CMD=ls
---- JAVA VM SETUP ----
if [ -x “${JAVA_ROOT}/bin/java” ]; then
JAVA_EXE=“bin/java”
else
JAVA_EXE=“bin/jre”
fi
JAVA_RUN=“${JAVA_ROOT}/${JAVA_EXE} ${JAVA_MEMSET}”
SAVED_CP=${CLASSPATH}
SAVED_LD=${LD_LIBRARY_PATH}
NOTE: for HP-UX
SAVED_HP=${SHLIB_PATH}
NOTE: for AIX
SAVED_AIX=${LIBPATH}
---- SERVER RUN LOOP ----
Loop while the exit code is 42
err=42
while [ “${err}” = “42” ]
do
… always launch from server directory
cd ${B2B_ROOT}
CLASSPATH=${B2B_ROOT}/lib/classes
LD_LIBRARY_PATH=${B2B_ROOT}/lib:${SAVED_LD}
SHLIB_PATH=${B2B_ROOT}/lib:${SAVED_HP}
LIBPATH=${B2B_ROOT}/lib:${SAVED_AIX}
if [ -x ${JAVA_ROOT}/lib/classes.zip ]; then
JAVA_CP=${JAVA_ROOT}/lib/classes.zip
fi
if [ -x ${JAVA_ROOT}/lib/dt.jar ]; then
JAVA_CP=${JAVA_ROOT}/lib/dt.jar
fi
JAVA_CP=${JAVA_CP}:${JAVA_ROOT}/lib/i18n.jar
if [ -d ${JAVA_ROOT}/jre ]; then
JAVA_CP=${JAVA_CP}:${JAVA_ROOT}/jre/lib/rt.jar
fi
B2B_MAIN=“com.wm.app.b2b.server.Main”
B2B_JAR=${B2B_ROOT}/lib/server.jar
if [ $RUNLOCAL = “false” ]; then
CLASSPATH=${JAVA_CP}
CLASSPATH=${CLASSPATH}:${B2B_ROOT}/lib/classes
CLASSPATH=${CLASSPATH}:${B2B_ROOT}/lib/client.jar:${B2B_ROOT}/lib/mail.jar
CLASSPATH=${CLASSPATH}:${B2B_JAR}
#Flow-and-Java-services#Integration-Server-and-ESB#webMethods