To run oc4j as a windows service download the open source tool named JavaService.exe fromhttp://javaservice.objectweb.org/ which can create Windows Services for Java Programs.
Download the version JavaService-2.0.10, adjust the path and execute the following command:
Download the version JavaService-2.0.10, adjust the path and execute the following command:
javaservice -install "Oracle BI: OC4J Service" "PathToJDK32Bit\jre\bin\client\jvm.dll" -XX:MaxPermSize=128m -Xmx512m "-Djava.class.path=OBI_HOME\oc4j_bi\j2ee\home\oc4j.jar" -start oracle.oc4j.loader.boot.BootStrap -out "OBI_HOME\oc4j_bi\j2ee\home\log\oc4j.log.txt" -err "OBI_HOME\oc4j_bi\j2ee\home\log\oc4j.err.txt" -description "Oracle BI Oc4J Service"
For Eg:
javaservice -install "Oracle BI: OC4J Service" "C:\Program Files\Java\jre6\bin\client\jvm.dll" -XX:MaxPermSize=128m -Xmx512m "-Djava.class.path=F:\OraHome_1\oc4j_bi\j2ee\home\oc4j.jar" -start oracle.oc4j.loader.boot.BootStrap -out "F:\OraHome_1\oc4j_bi\j2ee\home\log\oc4j.log.txt" -err "F:\OraHome_1\oc4j_bi\j2ee\home\log\oc4j.err.txt" -description "Oracle BI Oc4J Service"