Inc. Server User Manual

B Upgrading the Pet Store Application and the Examples Server
B-8 BEA WebLogic Server 7.0 Upgrade Guide
SETLOCAL
cd ..\..
@rem Set user-defined variables.
set JAVA_HOME=d:\610sp2\jdk131
@rem Check that script is being run from the appropriate
directory
if not exist lib\weblogic.jar goto wrongplace
goto checkJDK
@rem :wrongplace
@rem echo startPetStore.cmd must be run from the config\petStore
directory. 1>&2
@rem goto finish
:checkJDK
if exist "%JAVA_HOME%/bin/javac.exe" goto runWebLogic
echo.
echo Javac wasn't found in directory %JAVA_HOME%/bin.
echo Please edit the startPetStoreServer.cmd script so that the
JAVA_HOME
echo variable points to the root directory of your JDK
installation.
goto finish
:runWebLogic
echo on
set PATH=.\bin;"%JAVA_HOME%\bin";%PATH%
set CLASSPATH=.;.\lib\weblogic_sp.jar;.\lib\weblogic.jar;.\
samples\eval\cloudscape\lib\cloudscape.jar;.\config\petStore\se
rverclasses
echo off
echo.
echo ***************************************************
echo * To start WebLogic Server, use the password *
echo * assigned to the system user. The system *
echo * username and password must also be used to *
echo * access the WebLogic Server console from a web *
echo * browser. *
echo ***************************************************
@rem Set WLS_PW equal to your system password for no password
prompt server startup.
set WLS_PW=
@rem Set Production Mode. When set to true, the server starts
up in production mode.
@rem When set to false, the server starts up in development mode.