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


#!/bin/bash
export JAVA_OPTIONS="-javaagent:$AGENT_PATH_UNIX -Xms256m -Xmx512m -XX:MaxPermSize=256m $JAVA_OPTIONS"
`dirname $0`/jetty.sh $@

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