本文主要介绍如何将weblogic安装到windows服务,并且解决了大多数在安装和启动过程中遇到的问题。
@rem
@rem jDriver for Oracle users: This script assumes that native libraries
@rem required for jDriver for Oracle have been installed in the proper
@rem location and that your system PATH variable has been set appropriately.
@rem
@rem For additional information, refer to "Managing Server Startup and Shutdown for Oracle WebLogic Server" @rem (/docs/cd/E23943_01/web.1111/e13708/overview.htm).
@rem *************************************************************************
@echo off
SETLOCAL
@rem ***********************************************
set JAVA_HOME=C:\Java\jdk1.7.0_10
set WL_HOME=E:\weblogic\Middleware\wlserver_10.3
call "%WL_HOME%\common\bin\commEnv.cmd"
@rem ***********************************************
@rem Check that the WebLogic classes are where we expect them to be
:checkWLS
if exist "%WL_HOME%\server\lib\weblogic.jar" goto checkJava
echo The WebLogic Server wasn't found in directory %WL_HOME%\server.
echo Please edit your script so that the WL_HOME variable points
echo to the WebLogic installation directory.
goto finish
@rem Check that java is where we expect it to be
:checkJava
if exist "%JAVA_HOME%\bin\java.exe" goto runWebLogic
echo The JDK wasn't found in directory %JAVA_HOME%.
echo Please edit your script so that the JAVA_HOME variable
echo points to the location of your JDK.
goto finish
:runWebLogic
if not "%JAVA_VM%" == "" goto noResetJavaVM
if "%JAVA_VENDOR%" == "BEA" set JAVA_VM=-jrocket
if "%JAVA_VENDOR%" == "HP" set JAVA_VM=-server
if "%JAVA_VENDOR%" == "Sun" set JAVA_VM=-server
:noResetJavaVM
if not "%MEM_ARGS%" == "" goto noResetMemArgs
@rem set MEM_ARGS=-Xms32m -Xmx200m

