Running Oc4j in Oracle 10g Developer Suite every time is very much irritating for the developers. That's why I am going to solve the problem. I want to run the OC4j from service. When the windows starts the oc4j will automatically starts and will not show any black screen. For that we have to follow the steps described below:
- Download and unziphttp://nssm.cc/release/nssm-2.24.zip
- Extract the zip file to the D drive (suppose).
- Now go to Run>CMD
- Write :
- D:
- cd nssm-2.24
- cd win32 [If your OS is 32 bit.]
- cd NSSM.EXE INSTALL
- Now copy paste the following:
- Path: C:\DevSuiteHome_1\j2ee\DevSuite\startinst.bat (If your DeveSuiteHome is located at C:\DevSuiteHome_1)
- Arguments: Server.
- Service Name: OC4j_Oracle
- Now go to Service:
- write button the My Computer. Manage>Services
- Set the Startup Type as "Automatic".
Now restart your PC or Laptop.
Done.
The OC4j will start Automatically and hidden.
Now you can start and stop the OC4j from Service.