Go to $TCAT_HOME/bin
and create the file startup-jrebel.sh
with the following contents:
#!/bin/bash export JAVA_OPTS="-javaagent:$AGENT_PATH_UNIX $JAVA_OPTS" `dirname $0`/startup.sh $@
You can also create a catalina-jrebel.sh
with the following content:
#!/bin/bash export JAVA_OPTS="-javaagent:$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 TCat with JRebel.