Inc. Server User Manual

B Upgrading the Pet Store Application and the Examples Server
B-36 BEA WebLogic Server 7.0 Upgrade Guide
@rem Set user-defined variables.
set JAVA_HOME=D:\WLS 6.1\jdk131
@rem Check that script is being run from the appropriate
directory
if not exist lib\weblogic.jar goto wrongplace
goto checkJDK
:wrongplace
echo startExamplesServer.cmd must be run from the
config\examples directory. 1>&2
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 startExamplesServer.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;%PATH%
set
CLASSPATH=.;.\lib\weblogic_sp.jar;.\lib\weblogic.jar;.\samples
eval\cloudscape\lib\cloudscape.jar;.\config\examples\serverclas
ses
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=
echo on
"%JAVA_HOME%\bin\java" -hotspot -ms64m -mx64m -classpath
"%CLASSPATH%" -Dweblogic.Domain=examples
-Dweblogic.Name=examplesServer
-Dweblogic.management.password=%WLS_PW% -Dbea.home="D:\WLS 6.1"