usage:java[-option] class[args...]
<to execute a class>
or java -jar [-options] jarfile [args...]
<to execute a jar file>
where options include:
-cp -classpath <directories and zip/jar files separated by ;>
set search path for application classes and resources
-d<name>=<value>
set a system property
-verbose[:class|gc|jni]
enable verbose output
-version print product versinon and exit
-showversion print product version and continue
-? -help print this help message
-x print help on non-standard options
@rem Set user-defined variables.
set JAVA_HOME=c:\jdk130
@rem Check that script is being run from the appropriate directory
if not exist lib\weblogic.jar goto wrongplace
goto checkJRE
:wrongplace
echo startWebLogic.cmd must be run from the config\mydomain directory. 1>&2
goto finish
:checkJRE
@dir %JAVA_HOME%\lib > nul
if errorlevel 0 goto runWebLogic
echo.
echo The JRE wasn't found in directory %JAVA_HOME%.
echo Please edit the startWebLogic.cmd script so that the JAVA_HOME
echo variable points to the root directory of your Java installation.
goto finish
:runWebLogic
echo on
set PATH=.\bin;%PATH%
set CLASSPATH=.\lib\cr_wls60f.jar;.;.\lib\weblogic_sp.jar;.\lib\weblogic.jar