Inc. Server User Manual

Upgrading the WebLogic 6.0 Service Pack 2 Examples Server to WebLogic Server 7.0
BEA WebLogic Server 7.0 Upgrade Guide B-27
@rem Set user-defined variables.
@rem original:set JAVA_HOME=C:\bea60sp2\jdk130
1. Set your JAVA_HOME to your new JDK in WebLogic 7.0.
set JAVA_HOME=C:\bea700\jdk131
@rem added:
2. Set WL60_HOME in order to be able to access your WebLogic Server 6.0 classes.
set WL60_HOME=c:\bea60sp2\wlserver6.0
3. Set this in order to be able to access your WebLogic Server 7.0 classes.
set WL_HOME=c:\bea700\weblogic700
:checkJRE
if exist %JAVA_HOME%\lib\nul goto runWebLogic
echo.
echo The JRE wasn't found in directory %JAVA_HOME%.
echo Please edit the startExamplesServer.cmd script so that the
JAVA_HOME
echo variable points to the root directory of your Java
installation.
goto finish
:runWebLogic
echo on
@rem original: set PATH=.\bin;%PATH%
4. Set the PATH to look in your %WL_HOME% 7.0 home. If this is not set, the
server won't boot.
set PATH=%WL_HOME%\bin;%PATH%
@rem original: set
@rem CLASSPATH=.;.\lib\weblogic_sp.jar;
@rem .\lib\weblogic.jar;.\samples\eval\cloudscape\
@rem lib\cloudscape.
@rem jar;.\config\examples\serverclasses
5. Set the CLASSPATH to point to old classes and to new classes that you need.
set
CLASSPATH=%WL_HOME%\lib\weblogic_sp.jar;%WL_HOME%\lib\weblogic.
jar;
%WL60_HOME%\samples\eval\cloudscape\lib\
cloudscape.jar;%WL60_HOME%\config\examples\serverclasses
echo CLASSPATH=%CLASSPATH%