Are you using Oracle OC4J server? If you're, did you think about using the Netbeans IDE (Integrated Development Environment)?
Download OC4J from the Netbeans updates
Open Netbeans IDE and then follow below steps to configure the OC4J server.
1. Tools > Update Center
2. Select "Netbeans Update Center Beta"
3. Select OC4J 10g
You can then configure a new server and run/stop the server from your IDE.
You can get more info from official website for Netbeans OC4J module @ Netbeans OC4J module.
Download & Configure Oracle OC4J Server for Netbeans IDE