Go to $JBOSS_HOME/bin
and create the file run-jrebel.sh
with the following contents:
#!/bin/bash export JAVA_OPTS="-javaagent:$AGENT_PATH_UNIX -Xms256m -Xmx512m -XX:MaxPermSize=256m $JAVA_OPTS" export RUN_CONF="dont-use-run-conf" `dirname $0`/run.sh $@
Use this script instead of run.sh
if you want to run JBoss with JRebel.