Create apfopstart.bat and Add following line..
----------------------------------------
@echo off
cls
echo.
echo ***********************
echo * Starting OC4J .... *
echo ***********************
echo.
SET ORACLE_HOME=C:\oc4j_extended_101340
SET JAVA_HOME=C:\j2sdk1.4.2_09
:validatefilelocation
if NOT EXIST %ORACLE_HOME%\bin\oc4j.cmd goto invalidfilelocation
goto oc4j
:invalidfilelocation
echo.
echo * Error: Invalid location for script.
echo * Cannot find the oc4j.bat file within the specified script location.
echo.
goto end
:oc4j
%ORACLE_HOME%\bin\oc4j -start
:end
------------------------------------------
After copy apfopstart.bat to C:\Documents and Settings\All Users\Start Menu\Programs\Startup

No comments:
Post a Comment