B
Upgrading the Pet Store Application and the Examples Server
B-32
BEA WebLogic Server 7.0 Upgrade Guide
@rem names with spaces will break this script.
@rem
@rem jDriver for Oracle users: This script assumes that native
libraries
@rem required for jDriver for Oracle have been installed in the
@rem proper location and that your system PATH variable
@rem has been set appropriately.
@rem For additional information, refer to Installing and Setting
up WebLogic
@rem Server (/install/index.html in your local documentation set
or on the Internet at
@rem http://e-docs.bea.com/wls/docs61/install/index.html).
@rem Set user-defined variables.
set WL_HOME=D:\WLS 6.1\wlserver6.1
set JAVA_HOME=D:\WLS 6.1\jdk131
@dir %WL_HOME%\lib > nul
if errorlevel 0 goto checkJava
@echo.
@echo The WebLogic Server wasn't found in directory %WL_HOME%.
@echo Please edit the setExamplesEnv.cmd script so that the
@echo WL_HOME variable points to the WebLogic Server installation
@echo directory.
@echo Your environment has not been set.
@goto finish
:checkJava
@dir %JAVA_HOME%\jre\bin\java.exe > nul
if errorlevel 0 goto setEnv
@echo.
@echo The JDK wasn't found in directory %JAVA_HOME%.
@echo Please edit the setEnv.cmd script so that the JAVA_HOME
@echo variable points to the location of your JDK.
@echo Your environment has not been set.
@goto finish
:setEnv
set APPLICATIONS=%WL_HOME%\config\examples\applications
set CLIENT_CLASSES=%WL_HOME%\config\examples\clientclasses
set SERVER_CLASSES=%WL_HOME%\config\examples\serverclasses
set EX_WEBAPP_CLASSES=%WL_HOME%\config\examples\applications\
examplesWebApp\WEB-INF\classes
set CLASSPATH=%JAVA_HOME%\lib\tools.jar;%WL_HOME%\lib\
weblogic_sp.jar;%WL_HOME%\lib\weblogic.jar;%WL_HOME%\lib\
xmlx.jar;%WL_HOME%\samples\eval\cloudscape\lib\cloudscape.jar;
%CLIENT_CLASSES%;%SERVER_CLASSES%;%EX_WEBAPP_CLASSES%;
D:\WLS 6.1