Go to $ORACLE10_HOME/bin and create the file oc4j-jrebel.sh with the following contents:


#!/bin/bash
JREBEL_BOOTSTRAP=`dirname $0`/jrebel-bootstrap.jar
java -Drebel.bootstrap=$JREBEL_BOOTSTRAP -jar $AGENT_PATH_UNIX
export OC4J_JVM_ARGS="-noverify -Xbootclasspath/p:$JREBEL_BOOTSTRAP:$AGENT_PATH_UNIX $OC4J_JVM_ARGS"
`dirname $0`/oc4j $@

Make it executable and use this script instead of oc4j.sh if you want to run OC4J with JRebel.