Go to $TOMCAT_HOME/bin
and create the file startup-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`/startup.sh $@
You can also create a catalina-jrebel.sh
with the following content:
#!/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`/catalina.sh $@
Make them executable and use those scripts instead of startup.sh
and catalina.sh
if you want to run Tomcat with JRebel.