Go to $JBOSS_HOME/bin and create the file run-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 JAVA_OPTS="-noverify -Xbootclasspath/p:$JREBEL_BOOTSTRAP:$AGENT_PATH_UNIX $JAVA_OPTS"
`dirname $0`/run.sh $@

Use this script instead of run.sh if you want to run JBoss with JRebel.