Running servers from command line

JRebel comes bundled with 64 and 32 bit libraries for JVMs, intended for use with Windows, macOS and Linux. The agent libraries can be found in the lib folder.

Windows 64-bit JDK

jrebel64.dll

Windows 32-bit JDK

jrebel32.dll

Mac OS X 64-bit JDK

libjrebel64.dylib

Mac OS X 32-bit JDK

libjrebel32.dylib

Linux 64-bit JDK

libjrebel64.so

Linux 32-bit JDK

libjrebel32.so

Add the correct agent library to your server startup script using -agentpath:. Keep reading for specific application server instructions.

Tip

Using a JRebel IDE plugin? You have access to all these snippets from Help > JRebel > Configuration > Startup.


Geronimo 2.x and 3.x

Windows 64-bit

  1. Open %GERONIMO_HOME%\bin.

  2. Create the file geronimo-jrebel.bat with the following content:

@echo off
set REBEL_HOME=JRebel root folder.
set JAVA_OPTS=-agentpath:%REBEL_HOME%\lib\jrebel64.dll %JAVA_OPTS%
call "%~dp0\geronimo.bat" %*
  1. Use this file instead of geronimo.bat to run Geronimo with JRebel.

geronimo-jrebel.bat run

Windows 32-bit

  1. Open %GERONIMO_HOME%\bin.

  2. Create the file geronimo-jrebel.bat with the following content:

@echo off
set REBEL_HOME=JRebel root folder.
set JAVA_OPTS=-agentpath:%REBEL_HOME%\lib\jrebel32.dll %JAVA_OPTS%
call "%~dp0\geronimo.bat" %*
  1. Use this file instead of geronimo.bat to run Geronimo with JRebel.

geronimo-jrebel.bat run

macOS 64-bit

  1. Open $GERONIMO_HOME/bin.

  2. Create the file geronimo-jrebel.sh with the following content:

#!/bin/bash
export REBEL_HOME=JRebel root folder.
export JAVA_OPTS="-agentpath:$REBEL_HOME/lib/libjrebel64.dylib $JAVA_OPTS"
`dirname $0`/geronimo.sh $@
  1. Use this file instead of geronimo.sh to run Geronimo with JRebel.

geronimo-jrebel.sh run

macOS 32-bit

  1. Open $GERONIMO_HOME/bin.

  2. Create the file geronimo-jrebel.sh with the following content:

#!/bin/bash
export REBEL_HOME=JRebel root folder.
export JAVA_OPTS="-agentpath:$REBEL_HOME/lib/libjrebel32.dylib $JAVA_OPTS"
`dirname $0`/geronimo.sh $@
  1. Use this file instead of geronimo.sh to run Geronimo with JRebel.

geronimo-jrebel.sh run

Linux 64-bit

  1. Open $GERONIMO_HOME/bin.

  2. Create the file geronimo-jrebel.sh with the following content:

#!/bin/bash
export REBEL_HOME=JRebel root folder.
export JAVA_OPTS="-agentpath:$REBEL_HOME/lib/libjrebel64.so $JAVA_OPTS"
`dirname $0`/geronimo.sh $@
  1. Use this file instead of geronimo.sh to run Geronimo with JRebel.

geronimo-jrebel.sh run

Linux 32-bit

  1. Open $GERONIMO_HOME/bin.

  2. Create the file geronimo-jrebel.sh with the following content:

#!/bin/bash
export REBEL_HOME=JRebel root folder.
export JAVA_OPTS="-agentpath:$REBEL_HOME/lib/libjrebel32.so $JAVA_OPTS"
`dirname $0`/geronimo.sh $@
  1. Use this file instead of geronimo.sh to run Geronimo with JRebel.

geronimo-jrebel.sh run

GlassFish 2.x, 3.x, 4.x and 5.x

  1. Open the GlassFish Administration Console.

  2. Access Configuration > JVM Settings > JVM Options.

  3. Use the Add JVM Option button to insert the following:

    Windows 64-bit JDK

    -agentpath:[c:\path\to]\lib\jrebel64.dll

    Windows 32-bit JDK

    -agentpath:[c:\path\to]\lib\jrebel32.dll

    Mac OS X 64-bit JDK

    -agentpath:[path/to]/lib/libjrebel64.dylib

    Mac OS X 32-bit JDK

    -agentpath:[path/to]/lib/libjrebel32.dylib

    Linux 64-bit JDK

    -agentpath:[path/to]/lib/libjrebel64.so

    Linux 32-bit JDK

    -agentpath:[path/to]/lib/libjrebel32.so

  4. Press Save. Restart the server.


Google App Engine (GAE) 1.x

Windows 64-bit

Add the --jvm_flag launch option to the application server startup as follows:

dev_appserver.cmd --jvm_flag=-agentpath:[c:\path\to\]lib\jrebel64.dll c:\MyApplication\

Windows 32-bit

Add the --jvm_flag launch option to the application server startup as follows:

dev_appserver.cmd --jvm_flag=-agentpath:[c:\path\to\]lib\jrebel32.dll c:\MyApplication\

macOS 64-bit

Add the --jvm_flag launch option to the application server startup:

dev_appserver.sh --jvm_flag=-agentpath:[/path/to/]lib/libjrebel64.dylib /MyApplication/

macOS 32-bit

Add the --jvm_flag launch option to the application server startup:

dev_appserver.sh --jvm_flag=-agentpath:[/path/to/]lib/libjrebel32.dylib /MyApplication/

Linux 64-bit

Add the --jvm_flag launch option to the application server startup:

dev_appserver.sh --jvm_flag=-agentpath:[/path/to/]lib/libjrebel64.so /MyApplication/

Linux 32-bit

Add the --jvm_flag launch option to the application server startup:

dev_appserver.sh --jvm_flag=-agentpath:[/path/to/]lib/libjrebel32.so /MyApplication/

Google Web Toolkit (GWT) 2.x

Google Web Toolkit (GWT) uses Apache Ant to start a web container – either Jetty or Tomcat – along with the GWT application. To enable JRebel for GWT in development mode, you should set the ANT_OPTS environment variable accordingly.

Windows 64-bit

  1. Open the GWT project directory.

  2. Create the file run-jrebel.cmd with the following content:

@echo off
set REBEL_HOME=JRebel root folder.
set ANT_OPTS=-agentpath:%REBEL_HOME%\jrebel64.dll
ant devmode
  1. Use run-jrebel.cmd to run your GWT application in development mode with JRebel enabled.


Windows 32-bit

  1. Open the GWT project directory.

  2. Create the file run-jrebel.cmd with the following content:

@echo off
set REBEL_HOME=JRebel root folder.
set ANT_OPTS=-agentpath:%REBEL_HOME%\jrebel32.dll
ant devmode
  1. Use run-jrebel.cmd to run your GWT application in development mode with JRebel enabled.


macOS 64-bit

  1. Open the GWT project directory.

  2. Create the file run-jrebel.sh with the following content:

#!/bin/bash
export REBEL_HOME=JRebel root folder.
export ANT_OPTS=-agentpath:$REBEL_HOME/lib/libjrebel64.dylib
ant devmode
  1. Use run-jrebel.sh to run your GWT application in development mode with JRebel enabled.


macOS 32-bit

  1. Open the GWT project directory.

  2. Create the file run-jrebel.sh with the following content:

#!/bin/bash
export REBEL_HOME=JRebel root folder.
export ANT_OPTS=-agentpath:$REBEL_HOME/lib/libjrebel32.dylib
ant devmode
  1. Use run-jrebel.sh to run your GWT application in development mode with JRebel enabled.


Linux 64-bit

  1. Open the GWT project directory.

  2. Create the file run-jrebel.sh with the following content:

#!/bin/bash
export REBEL_HOME=JRebel root folder.
export ANT_OPTS=-agentpath:$REBEL_HOME/lib/libjrebel64.so
ant devmode
  1. Use run-jrebel.sh to run your GWT application in development mode with JRebel enabled.


Linux 32-bit

  1. Open the GWT project directory.

  2. Create the file run-jrebel.sh with the following content:

#!/bin/bash
export REBEL_HOME=JRebel root folder.
export ANT_OPTS=-agentpath:$REBEL_HOME/lib/libjrebel32.so
ant devmode
  1. Use run-jrebel.sh to run your GWT application in development mode with JRebel enabled.


JBoss 4.x, 5.x and 6.x

Windows 64-bit

  1. Open %JBOSS_HOME%\bin.

  2. Create the file run-jrebel.cmd with the following content:

@echo off
set REBEL_HOME=JRebel root folder.
set JAVA_OPTS=-agentpath:%REBEL_HOME%\lib\jrebel64.dll %JAVA_OPTS%
call "%~dp0\run.bat" %*
  1. Use this file instead of run.bat to run JBoss with JRebel.

    Warning

    Any further customization to JAVA_OPTS inside the JBoss executable (default run.conf.bat) needs to be included in run-jrebel.cmd for JRebel to function correctly.


Windows 32-bit

  1. Open %JBOSS_HOME%\bin.

  2. Create the file run-jrebel.cmd with the following content:

@echo off
set REBEL_HOME=JRebel root folder.
set JAVA_OPTS=-agentpath:%REBEL_HOME%\lib\jrebel32.dll %JAVA_OPTS%
call "%~dp0\run.bat" %*
  1. Use this file instead of run.bat to run JBoss with JRebel.

    Warning

    Any further customization to JAVA_OPTS inside the JBoss executable (default run.conf.bat) needs to be included in run-jrebel.cmd for JRebel to function correctly.


macOS 64-bit

  1. Open $JBOSS_HOME/bin.

  2. Create the file run-jrebel.sh with the following content:

#!/bin/bash
export REBEL_HOME=JRebel root folder.
export JAVA_OPTS="-agentpath:$REBEL_HOME/lib/libjrebel64.dylib $JAVA_OPTS"
`dirname $0`/run.sh $@
  1. Use this script instead of run.sh to run JBoss with JRebel.

    Warning

    Any further customization to JAVA_OPTS inside the JBoss executable (default run.conf.sh) needs to be included in run-jrebel.sh for JRebel to function correctly.


macOS 32-bit

  1. Open $JBOSS_HOME/bin.

  2. Create the file run-jrebel.sh with the following content:

#!/bin/bash
export REBEL_HOME=JRebel root folder.
export JAVA_OPTS="-agentpath:$REBEL_HOME/lib/libjrebel32.dylib $JAVA_OPTS"
`dirname $0`/run.sh $@
  1. Use this script instead of run.sh to run JBoss with JRebel.

    Warning

    Any further customization to JAVA_OPTS inside the JBoss executable (default run.conf.sh) needs to be included in run-jrebel.sh for JRebel to function correctly.


Linux 64-bit

  1. Open $JBOSS_HOME/bin.

  2. Create the file run-jrebel.sh with the following content:

#!/bin/bash
export REBEL_HOME=JRebel root folder.
export JAVA_OPTS="-agentpath:$REBEL_HOME/lib/libjrebel64.so $JAVA_OPTS"
`dirname $0`/run.sh $@
  1. Use this script instead of run.sh to run JBoss with JRebel.

    Warning

    Any further customization to JAVA_OPTS inside the JBoss executable (default run.conf.sh) needs to be included in run-jrebel.sh for JRebel to function correctly.


Linux 32-bit

  1. Open $JBOSS_HOME/bin.

  2. Create the file run-jrebel.sh with the following content:

#!/bin/bash
export REBEL_HOME=JRebel root folder.
export JAVA_OPTS="-agentpath:$REBEL_HOME/lib/libjrebel32.so $JAVA_OPTS"
`dirname $0`/run.sh $@
  1. Use this script instead of run.sh to run JBoss with JRebel.

    Warning

    Any further customization to JAVA_OPTS inside the JBoss executable (default run.conf.sh) needs to be included in run-jrebel.sh for JRebel to function correctly.


JBoss 7.x

Windows 64-bit

  1. Open %JBOSS_HOME%\bin.

  2. Create the file standalone-jrebel.cmd with the following content:

@echo off
set REBEL_HOME=JRebel root folder.
set JAVA_OPTS=-agentpath:%REBEL_HOME%\lib\jrebel64.dll %JAVA_OPTS%
call "%~dp0\standalone.bat" %*
  1. Use this file instead of standalone.bat to run JBoss with JRebel.

    Warning

    Any further customization to JAVA_OPTS inside the JBoss executable (default standalone.conf.bat) needs to be included in standalone-jrebel.cmd for JRebel to function correctly.


Windows 32-bit

  1. Open %JBOSS_HOME%\bin.

  2. Create the file standalone-jrebel.cmd with the following content:

@echo off
set REBEL_HOME=JRebel root folder.
set JAVA_OPTS=-agentpath:%REBEL_HOME%\lib\jrebel32.dll %JAVA_OPTS%
call "%~dp0\standalone.bat" %*
  1. Use this file instead of standalone.bat to run JBoss with JRebel.

    Warning

    Any further customization to JAVA_OPTS inside the JBoss executable (default standalone.conf.bat) needs to be included in standalone-jrebel.cmd for JRebel to function correctly.


macOS 64-bit

  1. Open $JBOSS_HOME/bin.

  2. Create the file standalone-jrebel.sh with the following content:

#!/bin/bash
export REBEL_HOME=JRebel root folder.
export JAVA_OPTS="-agentpath:$REBEL_HOME/lib/libjrebel64.dylib $JAVA_OPTS"
`dirname $0`/standalone.sh $@
  1. Use this script instead of standalone.sh to run JBoss with JRebel.

    Warning

    Any further customization to JAVA_OPTS inside the JBoss executable (default standalone.conf.sh) needs to be included in standalone-jrebel.sh for JRebel to function correctly.


macOS 32-bit

  1. Open $JBOSS_HOME/bin.

  2. Create the file standalone-jrebel.sh with the following content:

#!/bin/bash
export REBEL_HOME=JRebel root folder.
export JAVA_OPTS="-agentpath:$REBEL_HOME/lib/libjrebel32.dylib $JAVA_OPTS"
`dirname $0`/standalone.sh $@
  1. Use this script instead of standalone.sh to run JBoss with JRebel.

    Warning

    Any further customization to JAVA_OPTS inside the JBoss executable (default standalone.conf.sh) needs to be included in standalone-jrebel.sh for JRebel to function correctly.


Linux 64-bit

  1. Open $JBOSS_HOME/bin.

  2. Create the file standalone-jrebel.sh with the following content:

#!/bin/bash
export REBEL_HOME=JRebel root folder.
export JAVA_OPTS="-agentpath:$REBEL_HOME/lib/libjrebel64.so $JAVA_OPTS"
`dirname $0`/standalone.sh $@
  1. Use this script instead of standalone.sh to run JBoss with JRebel.

    Warning

    Any further customization to JAVA_OPTS inside the JBoss executable (default standalone.conf.sh) needs to be included in standalone-jrebel.sh for JRebel to function correctly.


Linux 32-bit

  1. Open $JBOSS_HOME/bin.

  2. Create the file standalone-jrebel.sh with the following content:

#!/bin/bash
export REBEL_HOME=JRebel root folder.
export JAVA_OPTS="-agentpath:$REBEL_HOME/lib/libjrebel32.so $JAVA_OPTS"
`dirname $0`/standalone.sh $@
  1. Use this script instead of standalone.sh to run JBoss with JRebel.

    Warning

    Any further customization to JAVA_OPTS inside the JBoss executable (default standalone.conf.sh) needs to be included in standalone-jrebel.sh for JRebel to function correctly.


Jetty 5.x, 6.x, 7.x, 8.x and 9.x

Windows 64-bit

Jetty does not have any startup scripts for Windows. Just add the following line to the command line:

-agentpath:[c:\path\to\]lib\jrebel64.dll

Windows 32-bit

Jetty does not have any startup scripts for Windows. Just add the following line to the command line:

-agentpath:[c:\path\to\]lib\jrebel32.dll

macOS 64-bit

  1. Open $JETTY_HOME/bin.

  2. Create the file run-jrebel.sh with the following content:

#!/bin/bash
export REBEL_HOME=JRebel root folder.
export JAVA_OPTIONS="-agentpath:$REBEL_HOME/lib/libjrebel64.dylib $JAVA_OPTIONS"
`dirname $0`/jetty.sh $@
  1. Use this script instead of jetty.sh to run Jetty with JRebel.


macOS 32-bit

  1. Open $JETTY_HOME/bin.

  2. Create the file run-jrebel.sh with the following content:

#!/bin/bash
export REBEL_HOME=JRebel root folder.
export JAVA_OPTIONS="-agentpath:$REBEL_HOME/lib/libjrebel32.dylib $JAVA_OPTIONS"
`dirname $0`/jetty.sh $@
  1. Use this script instead of jetty.sh to run Jetty with JRebel.


Linux 64-bit

  1. Open $JETTY_HOME/bin.

  2. Create the file run-jrebel.sh with the following content:

#!/bin/bash
export REBEL_HOME=JRebel root folder.
export JAVA_OPTIONS="-agentpath:$REBEL_HOME/lib/libjrebel64.so $JAVA_OPTIONS"
`dirname $0`/jetty.sh $@
  1. Use this script instead of jetty.sh to run Jetty with JRebel.


Linux 32-bit

  1. Open $JETTY_HOME/bin.

  2. Create the file run-jrebel.sh with the following content:

#!/bin/bash
export REBEL_HOME=JRebel root folder.
export JAVA_OPTIONS="-agentpath:$REBEL_HOME/lib/libjrebel32.so $JAVA_OPTIONS"
`dirname $0`/jetty.sh $@
  1. Use this script instead of jetty.sh to run Jetty with JRebel.


Maven Jetty plugin (mvn jetty:run)

Open your pom.xml file and set the scanIntervalSeconds parameter to 0. This will disable Jetty’s internal reloading. It should look like this:

<plugin>
 <groupId>org.eclipse.jetty</groupId>
 <artifactId>jetty-maven-plugin</artifactId>
 <configuration>
   <scanIntervalSeconds>0</scanIntervalSeconds>
 </configuration>
</plugin>

Windows 64-bit

Add the following line to the MAVEN_OPTS environment variable:

-agentpath:[c:\path\to\]lib\jrebel64.dll

To do this in the console:

set MAVEN_OPTS=-agentpath:[c:\path\to\]lib\jrebel64.dll %MAVEN_OPTS%
mvn jetty:run

Windows 32-bit

Add the following line to the MAVEN_OPTS environment variable:

-agentpath:[c:\path\to\]lib\jrebel32.dll

To do this in the console:

set MAVEN_OPTS=-agentpath:[c:\path\to\]lib\jrebel32.dll %MAVEN_OPTS%
mvn jetty:run

macOS 64-bit

Add the following line to the MAVEN_OPTS environment variable:

-agentpath:[/path/to/]lib/libjrebel64.dylib

To do this in the console:

export MAVEN_OPTS="-agentpath:[/path/to/]lib/libjrebel64.dylib $MAVEN_OPTS"
mvn jetty:run

macOS 32-bit

Add the following line to the MAVEN_OPTS environment variable:

-agentpath:[/path/to/]lib/libjrebel32.dylib

To do this in the console:

export MAVEN_OPTS="-agentpath:[/path/to/]lib/libjrebel32.dylib $MAVEN_OPTS"
mvn jetty:run

Linux 64-bit

Add the following line to the MAVEN_OPTS environment variable:

-agentpath:[/path/to/]lib/libjrebel64.so

To do this in the console:

export MAVEN_OPTS="-agentpath:[/path/to/]lib/libjrebel64.so $MAVEN_OPTS"
mvn jetty:run

Linux 32-bit

Add the following line to the MAVEN_OPTS environment variable:

-agentpath:[/path/to/]lib/libjrebel32.so

To do this in the console:

export MAVEN_OPTS="-agentpath:[/path/to/]lib/libjrebel32.so $MAVEN_OPTS"
mvn jetty:run

OC4J (Oracle Application Server) 9.x

Windows 64-bit

  1. Open %ORACLE9_HOME%\j2ee\home.

  2. Start the server with the following command:

java -agentpath:[c:\path\to\]lib\jrebel64.dll -jar oc4j.jar

Windows 32-bit

  1. Open %ORACLE9_HOME%\j2ee\home.

  2. Start the server with the following command:

java -agentpath:[c:\path\to\]lib\jrebel32.dll -jar oc4j.jar

macOS 64-bit

  1. Open $ORACLE9_HOME/j2ee/home.

  2. Start the server with the following command:

java -agentpath:[/path/to/]lib/libjrebel64.dylib -jar oc4j.jar

macOS 32-bit

  1. Open $ORACLE9_HOME/j2ee/home.

  2. Start the server with the following command:

java -agentpath:[/path/to/]lib/libjrebel32.dylib -jar oc4j.jar

Linux 64-bit

  1. Open $ORACLE9_HOME/j2ee/home.

  2. Start the server with the following command:

java -agentpath:[/path/to/]lib/libjrebel64.so -jar oc4j.jar

Linux 32-bit

  1. Open $ORACLE9_HOME/j2ee/home.

  2. Start the server with the following command:

java -agentpath:[/path/to/]lib/libjrebel32.so -jar oc4j.jar

OC4J (Oracle Application Server) 10.x

Windows 64-bit

  1. Open %ORACLE10_HOME%\bin.

  2. Create the file oc4j-jrebel.cmd with the following content:

set REBEL_HOME=JRebel root folder.
set OC4J_JVM_ARGS=-agentpath:%REBEL_HOME%\lib\jrebel64.dll %OC4J_JVM_ARGS%
call "%~dp0\oc4j.cmd" %*
  1. Use this file instead of oc4j.cmd to run OC4J with JRebel.


Windows 32-bit

  1. Open %ORACLE10_HOME%\bin.

  2. Create the file oc4j-jrebel.cmd with the following content:

set REBEL_HOME=JRebel root folder.
set OC4J_JVM_ARGS=-agentpath:%REBEL_HOME%\lib\jrebel32.dll %OC4J_JVM_ARGS%
call "%~dp0\oc4j.cmd" %*
  1. Use this file instead of oc4j.cmd to run OC4J with JRebel.


macOS 64-bit

  1. Open $ORACLE10_HOME/bin.

  2. Create the file oc4j-jrebel.sh with the following content:

#!/bin/bash
export REBEL_HOME=JRebel root folder.
export OC4J_JVM_ARGS="-agentpath:$REBEL_HOME/lib/libjrebel64.dylib $OC4J_JVM_ARGS"
`dirname $0`/oc4j $@
  1. Use this script instead of oc4j to run OC4J with JRebel.


macOS 32-bit

  1. Open $ORACLE10_HOME/bin.

  2. Create the file oc4j-jrebel.sh with the following content:

#!/bin/bash
export REBEL_HOME=JRebel root folder.
export OC4J_JVM_ARGS="-agentpath:$REBEL_HOME/lib/libjrebel32.dylib $OC4J_JVM_ARGS"
`dirname $0`/oc4j $@
  1. Use this script instead of oc4j to run OC4J with JRebel.


Linux 64-bit

  1. Open $ORACLE10_HOME/bin.

  2. Create the file oc4j-jrebel.sh with the following content:

#!/bin/bash
export REBEL_HOME=JRebel root folder.
export OC4J_JVM_ARGS="-agentpath:$REBEL_HOME/lib/libjrebel64.so $OC4J_JVM_ARGS"
`dirname $0`/oc4j $@
  1. Use this script instead of oc4j to run OC4J with JRebel.


Linux 32-bit

  1. Open $ORACLE10_HOME/bin.

  2. Create the file oc4j-jrebel.sh with the following content:

#!/bin/bash
export REBEL_HOME=JRebel root folder.
export OC4J_JVM_ARGS="-agentpath:$REBEL_HOME/lib/libjrebel64.so $OC4J_JVM_ARGS"
`dirname $0`/oc4j $@
  1. Use this script instead of oc4j to run OC4J with JRebel.


Payara 2.x, 3.x, 4.x and 5.x

  1. Open the Payara Administration Console.

  2. Access Configuration > JVM Settings > JVM Options.

  3. Use the Add JVM Option button to insert the following:

    Windows 64-bit JDK

    -agentpath:[c:\path\to]\lib\jrebel64.dll

    Windows 32-bit JDK

    -agentpath:[c:\path\to]\lib\jrebel32.dll

    Mac OS X 64-bit JDK

    -agentpath:[path/to]/lib/libjrebel64.dylib

    Mac OS X 32-bit JDK

    -agentpath:[path/to]/lib/libjrebel32.dylib

    Linux 64-bit JDK

    -agentpath:[path/to]/lib/libjrebel64.so

    Linux 32-bit JDK

    -agentpath:[path/to]/lib/libjrebel32.so

  4. Press Save. Restart the server.


Resin 3.1.x and 4.x

Windows 64-bit

Start Resin with JRebel from %RESIN_HOME% with the parameter:

java -agentpath:[c:\path\to\]lib\jrebel64.dll -jar lib\resin.jar

Windows 32-bit

Start Resin with JRebel from %RESIN_HOME% with the parameter:

java -agentpath:[c:\path\to\]lib\jrebel32.dll -jar lib\resin.jar

macOS 64-bit

Replace the last line of ${RESIN_HOME}/bin/httpd.sh (or resin.sh in Resin 3.2+) with the following:

java -agentpath:[/path/to/]lib/libjrebel64.dylib -jar ${RESIN_HOME}/lib/resin.jar $*

macOS 32-bit

Replace the last line of ${RESIN_HOME}/bin/httpd.sh (or resin.sh in Resin 3.2+) with the following:

java -agentpath:[/path/to/]lib/libjrebel32.dylib -jar ${RESIN_HOME}/lib/resin.jar $*

Linux 64-bit

Replace the last line of ${RESIN_HOME}/bin/httpd.sh (or resin.sh in Resin 3.2+) with the following:

java -agentpath:[/path/to/]lib/libjrebel64.so -jar ${RESIN_HOME}/lib/resin.jar $*

Linux 32-bit

Replace the last line of ${RESIN_HOME}/bin/httpd.sh (or resin.sh in Resin 3.2+) with the following:

java -agentpath:[/path/to/]lib/libjrebel32.so -jar ${RESIN_HOME}/lib/resin.jar $*

Spring Boot 1.x

Add the JRebel startup parameter to the Spring Boot startup based on the environment. Replace the JRebel library based on the desired architecture and operating system as follows:

Windows 64-bit JDK

jrebel64.dll

Windows 32-bit JDK

jrebel32.dll

Mac OS X 64-bit JDK

libjrebel64.dylib

Mac OS X 32-bit JDK

libjrebel32.dylib

Linux 64-bit JDK

libjrebel64.so

Linux 32-bit JDK

libjrebel32.so

Using Spring Boot with Maven or Gradle? Head over here for more information.


Spring Boot using the command line

Add the JRebel parameter to Spring Boot startup (replacing JRebel library as necessary):

java -agentpath:[path/to/JRebel library] -jar myapp-boot.jar

tc Server 2.x

Windows 64-bit

  1. Open %SPRING_TC_HOME%. Select the Tomcat instance (%CATALINA_BASE%) you would like to run.

  2. Open %CATALINA_BASE%\conf\wrapper.conf.

  3. In the Java Additional Parameters section, add the additional wrapper.java.additional.* properties:

wrapper.java.additional.10=-agentpath:[c:\path\to\]lib\jrebel64.dll
  1. Use the %SPRING_TC_HOME%\tcruntime-ctl.bat script to start Tomcat instances as usual.


Windows 32-bit

  1. Open %SPRING_TC_HOME%. Select the Tomcat instance (%CATALINA_BASE%) you would like to run.

  2. Open %CATALINA_BASE%\conf\wrapper.conf.

  3. In the Java Additional Parameters section, add the additional wrapper.java.additional.* properties:

wrapper.java.additional.10=-agentpath:[c:\path\to\]lib\jrebel32.dll
  1. Use the %SPRING_TC_HOME%\tcruntime-ctl.bat script to start Tomcat instances as usual.


macOS 64-bit

  1. Create your server instance to a folder of your choice. For example $INSTANCE_DIR.

  2. Open script $INSTANCE_DIR/bin/setenv.sh.

  3. Add the following as the last line of setenv.sh:

REBEL_HOME=JRebel root folder.
JAVA_OPTS="-agentpath:$REBEL_HOME/lib/libjrebel64.dylib $JAVA_OPTS"
  1. Use the $SPRING_TC_HOME/tcruntime-ctl.sh script to start Tomcat instances as usual.


macOS 32-bit

  1. Create your server instance to a folder of your choice. For example $INSTANCE_DIR.

  2. Open script $INSTANCE_DIR/bin/setenv.sh.

  3. Add the following as the last line of setenv.sh:

REBEL_HOME=JRebel root folder.
JAVA_OPTS="-agentpath:$REBEL_HOME/lib/libjrebel32.dylib $JAVA_OPTS"
  1. Use the $SPRING_TC_HOME/tcruntime-ctl.sh script to start Tomcat instances as usual.


Linux 64-bit

  1. Create your server instance to a folder of your choice. For example $INSTANCE_DIR.

  2. Open script $INSTANCE_DIR/bin/setenv.sh.

  3. Add the following as the last line of setenv.sh:

REBEL_HOME=JRebel root folder.
JAVA_OPTS="-agentpath:$REBEL_HOME/lib/libjrebel64.so $JAVA_OPTS"
  1. Use the $SPRING_TC_HOME/tcruntime-ctl.sh script to start Tomcat instances as usual.


Linux 32-bit

  1. Create your server instance to a folder of your choice. For example $INSTANCE_DIR.

  2. Open script $INSTANCE_DIR/bin/setenv.sh.

  3. Add the following as the last line of setenv.sh:

REBEL_HOME=JRebel root folder.
JAVA_OPTS="-agentpath:$REBEL_HOME/lib/libjrebel32.so $JAVA_OPTS"
  1. Use the $SPRING_TC_HOME/tcruntime-ctl.sh script to start Tomcat instances as usual.


TCat 6.x

Windows 64-bit

  1. Open %TCAT_HOME%\bin.

  2. Create the file startup-jrebel.cmd with the following content:

@echo off
set REBEL_HOME=JRebel root folder.
set JAVA_OPTS=-agentpath:%REBEL_HOME%\lib\jrebel64.dll %JAVA_OPTS%
call "%~dp0\\startup.bat" %*
  1. Alternatively, create catalina-jrebel.cmd with the following content:

@echo off
set REBEL_HOME=JRebel root folder.
set JAVA_OPTS=-agentpath:%REBEL_HOME%\lib\jrebel64.dll %JAVA_OPTS%
call "%~dp0\catalina.bat" %*
  1. Use these files instead of startup.bat and catalina.bat to run TCat with JRebel.

If you’re running TCat as a service please open the TcatServerw.exe wrapper (or double click the TCat icon in the system tray). Insert the following line into the Java > Java Options:

-agentpath:[c:\path\to\]lib\jrebel64.dll

Windows 32-bit

  1. Open %TCAT_HOME%\bin.

  2. Create the file startup-jrebel.cmd with the following content:

@echo off
set REBEL_HOME=JRebel root folder.
set JAVA_OPTS=-agentpath:%REBEL_HOME%\lib\jrebel32.dll %JAVA_OPTS%
call "%~dp0\\startup.bat" %*
  1. Alternatively, create catalina-jrebel.cmd with the following content:

@echo off
set REBEL_HOME=JRebel root folder.
set JAVA_OPTS=-agentpath:%REBEL_HOME%\lib\jrebel32.dll %JAVA_OPTS%
call "%~dp0\catalina.bat" %*
  1. Use these files instead of startup.bat and catalina.bat to run TCat with JRebel.

If you’re running TCat as a service please open the TcatServerw.exe wrapper (or double click the TCat icon in the system tray). Insert the following line into the Java > Java Options:

-agentpath:[c:\path\to\]lib\jrebel32.dll

macOS 64-bit

  1. Open $TCAT_HOME/bin.

  2. Create the file startup-jrebel.sh with the following content:

#!/bin/bash
export REBEL_HOME=JRebel root folder.
export JAVA_OPTS="-agentpath:$REBEL_HOME/lib/libjrebel64.dylib $JAVA_OPTS"
`dirname $0`/startup.sh $@
  1. Alternatively, create catalina-jrebel.sh with the following content:

#!/bin/bash
export REBEL_HOME=JRebel root folder.
export JAVA_OPTS="-agentpath:$REBEL_HOME/lib/libjrebel64.dylib $JAVA_OPTS"
`dirname $0`/catalina.sh $@
  1. Make these files executable and use them instead of startup.sh and catalina.sh to run TCat with JRebel.


macOS 32-bit

  1. Open $TCAT_HOME/bin.

  2. Create the file startup-jrebel.sh with the following content:

#!/bin/bash
export REBEL_HOME=JRebel root folder.
export JAVA_OPTS="-agentpath:$REBEL_HOME/lib/libjrebel32.dylib $JAVA_OPTS"
`dirname $0`/startup.sh $@
  1. Alternatively, create catalina-jrebel.sh with the following content:

#!/bin/bash
export REBEL_HOME=JRebel root folder.
export JAVA_OPTS="-agentpath:$REBEL_HOME/lib/libjrebel32.dylib $JAVA_OPTS"
`dirname $0`/catalina.sh $@
  1. Make these files executable and use them instead of startup.sh and catalina.sh to run TCat with JRebel.


Linux 64-bit

  1. Open $TCAT_HOME/bin.

  2. Create the file startup-jrebel.sh with the following content:

#!/bin/bash
export REBEL_HOME=JRebel root folder.
export JAVA_OPTS="-agentpath:$REBEL_HOME/lib/libjrebel64.so $JAVA_OPTS"
`dirname $0`/startup.sh $@
  1. Alternatively, create catalina-jrebel.sh with the following content:

#!/bin/bash
export REBEL_HOME=JRebel root folder.
export JAVA_OPTS="-agentpath:$REBEL_HOME/lib/libjrebel64.so $JAVA_OPTS"
`dirname $0`/catalina.sh $@
  1. Make these files executable and use them instead of startup.sh and catalina.sh to run TCat with JRebel.


Linux 32-bit

  1. Open $TCAT_HOME/bin.

  2. Create the file startup-jrebel.sh with the following content:

#!/bin/bash
export REBEL_HOME=JRebel root folder.
export JAVA_OPTS="-agentpath:$REBEL_HOME/lib/libjrebel32.so $JAVA_OPTS"
`dirname $0`/startup.sh $@
  1. Alternatively, create catalina-jrebel.sh with the following content:

#!/bin/bash
export REBEL_HOME=JRebel root folder.
export JAVA_OPTS="-agentpath:$REBEL_HOME/lib/libjrebel32.so $JAVA_OPTS"
`dirname $0`/catalina.sh $@
  1. Make these files executable and use them instead of startup.sh and catalina.sh to run TCat with JRebel.


Tomcat 5.x, 6.x, 7.x, 8.x and 9.x

Note

The Tomcat 5.x, 6.x, 7.x, 8.x and 9.x configuration instructions also apply to:

  • TomEE Web/Plus 1.x and 7.x

  • Liferay for Tomcat 6.x


Windows 64-bit

  1. Open %TOMCAT_HOME%\bin.

  2. Create the file catalina-jrebel.bat with the following content:

@echo off
set REBEL_HOME=JRebel root folder.
set JAVA_OPTS=-agentpath:%REBEL_HOME%\lib\jrebel64.dll %JAVA_OPTS%
call "%~dp0\catalina.bat" %*
  1. Use catalina-jrebel.bat to run Tomcat with JRebel.

catalina-jrebel.bat run

When running Tomcat as a service, please open tomcatXw.exe wrapper (or double click the Tomcat icon in the system tray). Insert the following line in Java > Java Options:

-agentpath:[c:\path\to\]lib\jrebel64.dll

Windows 32-bit

  1. Open %TOMCAT_HOME%\bin.

  2. Create the file catalina-jrebel.bat with the following content:

@echo off
set REBEL_HOME=JRebel root folder.
set JAVA_OPTS=-agentpath:%REBEL_HOME%\lib\jrebel32.dll %JAVA_OPTS%
call "%~dp0\catalina.bat" %*
  1. Use catalina-jrebel.bat to run Tomcat with JRebel.

catalina-jrebel.bat run

When running Tomcat as a service, please open tomcatXw.exe wrapper (or double click the Tomcat icon in the system tray). Insert the following line in Java > Java Options:

-agentpath:[c:\path\to\]lib\jrebel32.dll

macOS 64-bit

  1. Open $TOMCAT_HOME/bin.

  2. Create the file catalina-jrebel.sh with the following content:

#!/bin/bash
export REBEL_HOME=JRebel root folder.
export JAVA_OPTS="-agentpath:$REBEL_HOME/lib/libjrebel64.dylib $JAVA_OPTS"
`dirname $0`/catalina.sh $@
  1. Use catalina-jrebel.sh to run Tomcat with JRebel.

./catalina-jrebel.sh run

Warning

  • When using Tomcat 4.x, 5.x or 6.x, avoid using JRebel Agent paths that include spaces.

  • Alternatively, consider using symbolic links to refer to JRebel Agent path.

    Example: ln -s /path with spaces/libjrebel64.dylib ~/.jrebel/lib/libjrebel64.dylib


macOS 32-bit

  1. Open $TOMCAT_HOME/bin.

  2. Create the file catalina-jrebel.sh with the following content:

#!/bin/bash
export REBEL_HOME=JRebel root folder.
export JAVA_OPTS="-agentpath:$REBEL_HOME/lib/libjrebel32.dylib $JAVA_OPTS"
`dirname $0`/catalina.sh $@
  1. Use catalina-jrebel.sh to run Tomcat with JRebel.

./catalina-jrebel.sh run

Warning

  • When using Tomcat 4.x, 5.x or 6.x, avoid using JRebel Agent paths that include spaces.

  • Alternatively, consider using symbolic links to refer to JRebel Agent path.

    Example: ln -s /path with spaces/libjrebel32.dylib ~/.jrebel/lib/libjrebel32.dylib


Linux 64-bit

  1. Open $TOMCAT_HOME/bin.

  2. Create the file catalina-jrebel.sh with the following content:

#!/bin/bash
export REBEL_HOME=JRebel root folder.
export JAVA_OPTS="-agentpath:$REBEL_HOME/lib/libjrebel64.so $JAVA_OPTS"
`dirname $0`/catalina.sh $@
  1. Use catalina-jrebel.sh to run Tomcat with JRebel.

./catalina-jrebel.sh run

Warning

  • When using Tomcat 4.x, 5.x or 6.x, avoid using JRebel Agent paths that include spaces.

  • Alternatively, consider using symbolic links to refer to JRebel Agent path.

    Example: ln -s /path with spaces/libjrebel64.so ~/.jrebel/lib/libjrebel64.so


Linux 32-bit

  1. Open $TOMCAT_HOME/bin.

  2. Create the file catalina-jrebel.sh with the following content:

#!/bin/bash
export REBEL_HOME=JRebel root folder.
export JAVA_OPTS="-agentpath:$REBEL_HOME/lib/libjrebel32.so $JAVA_OPTS"
`dirname $0`/catalina.sh $@
  1. Use catalina-jrebel.sh to run Tomcat with JRebel.

./catalina-jrebel.sh run

Warning

  • When using Tomcat 4.x, 5.x or 6.x, avoid using JRebel Agent paths that include spaces.

  • Alternatively, consider using symbolic links to refer to JRebel Agent path.

    Example: ln -s /path with spaces/libjrebel32.so ~/.jrebel/lib/libjrebel32.so


Virgo 3.x

Windows 64-bit

  1. Open %VIRGO_HOME%\bin\startup.bat.

  2. Add the following lines:

set REBEL_HOME=JRebel root folder.
set JAVA_OPTS=-agentpath:%REBEL_HOME%\lib\jrebel64.dll %JAVA_OPTS%

Windows 32-bit

  1. Open %VIRGO_HOME%\bin\startup.bat.

  2. Add the following lines:

set REBEL_HOME=JRebel root folder.
set JAVA_OPTS=-agentpath:%REBEL_HOME%\lib\jrebel32.dll %JAVA_OPTS%

macOS 64-bit

  1. Open ${VIRGO_HOME}/bin/startup.sh.

  2. Add the following lines:

export REBEL_HOME=JRebel root folder.
export JAVA_OPTS="-agentpath:$REBEL_HOME/lib/libjrebel64.dylib $JAVA_OPTS"

macOS 32-bit

  1. Open ${VIRGO_HOME}/bin/startup.sh.

  2. Add the following lines:

export REBEL_HOME=JRebel root folder.
export JAVA_OPTS="-agentpath:$REBEL_HOME/lib/libjrebel32.dylib $JAVA_OPTS"

Linux 64-bit

  1. Open ${VIRGO_HOME}/bin/startup.sh.

  2. Add the following lines:

export REBEL_HOME=JRebel root folder.
export JAVA_OPTS="-agentpath:$REBEL_HOME/lib/libjrebel64.so $JAVA_OPTS"

Linux 32-bit

  1. Open ${VIRGO_HOME}/bin/startup.sh.

  2. Add the following lines:

export REBEL_HOME=JRebel root folder.
export JAVA_OPTS="-agentpath:$REBEL_HOME/lib/libjrebel32.so $JAVA_OPTS"

WebLogic 10.x and 12.x

Windows 64-bit

  1. Open %DOMAIN_HOME%\bin.

  2. Create the file startWeblogic-jrebel.cmd with the following content:

@echo off
set REBEL_HOME=JRebel root folder.
set JAVA_OPTIONS=-agentpath:%REBEL_HOME%\lib\jrebel64.dll %JAVA_OPTIONS%
call "%~dp0\startWebLogic.cmd" %*
  1. Use this file instead of startWeblogic.cmd to run WebLogic with JRebel.

    Warning

    It is highly recommended to avoid using class caching (CLASS_CACHE=true). In some cases this may prevent classes and resources from being reloaded.


Windows 32-bit

  1. Open %DOMAIN_HOME%\bin.

  2. Create the file startWeblogic-jrebel.cmd with the following content:

@echo off
set REBEL_HOME=JRebel root folder.
set JAVA_OPTIONS=-agentpath:%REBEL_HOME%\lib\jrebel32.dll %JAVA_OPTIONS%
call "%~dp0\startWebLogic.cmd" %*
  1. Use this file instead of startWeblogic.cmd to run WebLogic with JRebel.

    Warning

    It is highly recommended to avoid using class caching (CLASS_CACHE=true). In some cases this may prevent classes and resources from being reloaded.


macOS 64-bit

  1. Open $DOMAIN_HOME/bin.

  2. Create the file startWeblogic-jrebel.sh with the following content:

#!/bin/bash
export REBEL_HOME=JRebel root folder.
export JAVA_OPTIONS="-agentpath:$REBEL_HOME/lib/libjrebel64.dylib $JAVA_OPTIONS"
`dirname $0`/startWebLogic.sh $@
  1. Use this script instead of startWeblogic.sh to run WebLogic with JRebel.

    Warning

    It is highly recommended to avoid using class caching (CLASS_CACHE=true). In some cases this may prevent classes and resources from being reloaded.


macOS 32-bit

  1. Open $DOMAIN_HOME/bin.

  2. Create the file startWeblogic-jrebel.sh with the following content:

#!/bin/bash
export REBEL_HOME=JRebel root folder.
export JAVA_OPTIONS="-agentpath:$REBEL_HOME/lib/libjrebel32.dylib $JAVA_OPTIONS"
`dirname $0`/startWebLogic.sh $@
  1. Use this script instead of startWeblogic.sh to run WebLogic with JRebel.

    Warning

    It is highly recommended to avoid using class caching (CLASS_CACHE=true). In some cases this may prevent classes and resources from being reloaded.


Linux 64-bit

  1. Open $DOMAIN_HOME/bin.

  2. Create the file startWeblogic-jrebel.sh with the following content:

#!/bin/bash
export REBEL_HOME=JRebel root folder.
export JAVA_OPTIONS="-agentpath:$REBEL_HOME/lib/libjrebel64.so $JAVA_OPTIONS"
`dirname $0`/startWebLogic.sh $@
  1. Use this script instead of startWeblogic.sh to run WebLogic with JRebel.

    Warning

    It is highly recommended to avoid using class caching (CLASS_CACHE=true). In some cases this may prevent classes and resources from being reloaded.


Linux 32-bit

  1. Open $DOMAIN_HOME/bin.

  2. Create the file startWeblogic-jrebel.sh with the following content:

#!/bin/bash
export REBEL_HOME=JRebel root folder.
export JAVA_OPTIONS="-agentpath:$REBEL_HOME/lib/libjrebel32.so $JAVA_OPTIONS"
`dirname $0`/startWebLogic.sh $@
  1. Use this script instead of startWeblogic.sh to run WebLogic with JRebel.

    Warning

    It is highly recommended to avoid using class caching (CLASS_CACHE=true). In some cases this may prevent classes and resources from being reloaded.


WebSphere 7.x, 8.x and 9.x

Windows 64-bit

Make sure that the JRebel installation path does not contain spaces.

  1. Start the IBM WebSphere server and open the administrative console.

  2. In the Admin Console open Servers > Application servers. Select the server your application is deployed to.

  3. Select Java and Process Management > Process Definition.

  4. Select Java Virtual Machine.

  5. Insert the following line into Generic JVM arguments for WebSphere 7.x or later running on IBM JDK 6 or newer:

-Xshareclasses:none -agentpath:[c:\path\to\]lib\jrebel64.dll
  1. Press OK. When asked, save the master configuration and restart the server.

Note

An alternative to setting the Generic JVM arguments is to generate a simple text file with extra configuration. You can have WebSphere take advantage of this text file by using the parameter Xoptionsfile=[c:\path\to\]youroptions.txt.


Windows 32-bit

Make sure that the JRebel installation path does not contain spaces.

  1. Start the IBM WebSphere server and open the administrative console.

  2. In the Admin Console open Servers > Application servers. Select the server your application is deployed to.

  3. Select Java and Process Management > Process Definition.

  4. Select Java Virtual Machine.

  5. Insert the following line into Generic JVM arguments for WebSphere 7.x or later running on IBM JDK 6 or newer:

-Xshareclasses:none -agentpath:[c:\path\to\]lib\jrebel32.dll
  1. Press OK. When asked, save the master configuration and restart the server.

Note

An alternative to setting the Generic JVM arguments is to generate a simple text file with extra configuration. You can have WebSphere take advantage of this text file by using the parameter Xoptionsfile=[c:\path\to\]youroptions.txt.


macOS 64-bit

  1. Start the IBM WebSphere server and open the administrative console.

  2. In the Administration Console open Servers > Application Servers. Select the server your application is deployed to.

  3. Select Java and Process Management > Process Definition.

  4. Select Java Virtual Machine.

  5. Insert the following line into Generic JVM arguments for WebSphere 7.x or later running on IBM JDK 6 or later:

    -Xshareclasses:none -agentpath:[/path/to/]lib/libjrebel64.dylib
    
  6. Press OK. When asked, save the master configuration and restart the server.


macOS 32-bit

  1. Start the IBM WebSphere server and open the administrative console.

  2. In the Administration Console open Servers > Application Servers. Select the server your application is deployed to.

  3. Select Java and Process Management > Process Definition.

  4. Select Java Virtual Machine.

  5. Insert the following line into Generic JVM arguments for WebSphere 7.x or later running on IBM JDK 6 or later:

    -Xshareclasses:none -agentpath:[/path/to/]lib/libjrebel32.dylib
    
  6. Press OK. When asked, save the master configuration and restart the server.


Linux 64-bit

  1. Start the IBM WebSphere server and open the administrative console.

  2. In the Administration Console open Servers > Application Servers. Select the server your application is deployed to.

  3. Select Java and Process Management > Process Definition.

  4. Select Java Virtual Machine.

  5. Insert the following line into Generic JVM arguments for WebSphere 7.x or later running on IBM JDK 6 or later:

    -Xshareclasses:none -agentpath:[/path/to/]lib/libjrebel64.so
    
  6. Press OK. When asked, save the master configuration and restart the server.


Linux 32-bit

  1. Start the IBM WebSphere server and open the administrative console.

  2. In the Administration Console open Servers > Application Servers. Select the server your application is deployed to.

  3. Select Java and Process Management > Process Definition.

  4. Select Java Virtual Machine.

  5. Insert the following line into Generic JVM arguments for WebSphere 7.x or later running on IBM JDK 6 or later:

    -Xshareclasses:none -agentpath:[/path/to/]lib/libjrebel32.so
    
  6. Press OK. When asked, save the master configuration and restart the server.


WebSphere Liberty Profile

Windows 64-bit

  1. Create the file jvm.options in your IBM WebSphere Liberty Profile ${server.config.dir}/ folder.

  2. Add the following content to the jvm.options file:

-agentpath:[c:\path\to\]lib\jrebel64.dll
  1. Save the file and restart the server.

    Tip

    Create the jvm.options file in the ${wlp.install.dir}/etc/ folder to automatically apply the JVM options to all your WebShpere Liberty Profile instances.


Windows 32-bit

  1. Create the file jvm.options in your IBM WebSphere Liberty Profile ${server.config.dir}/ folder.

  2. Add the following content to the jvm.options file:

-agentpath:[c:\path\to\]lib\jrebel32.dll
  1. Save the file and restart the server.

    Tip

    Create the jvm.options file in the ${wlp.install.dir}/etc/ folder to automatically apply the JVM options to all your WebShpere Liberty Profile instances.


macOS 64-bit

  1. Create the file jvm.options in your IBM WebSphere Liberty Profile ${server.config.dir}/ folder.

  2. Add the following content to the jvm.options file:

-agentpath:[/path/to/]lib/libjrebel64.dylib
  1. Save the file and restart the server.

    Tip

    Create the jvm.options file in the ${wlp.install.dir}/etc/ folder to automatically apply the JVM options to all your WebShpere Liberty Profile instances.


macOS 32-bit

  1. Create the file jvm.options in your IBM WebSphere Liberty Profile ${server.config.dir}/ folder.

  2. Add the following content to the jvm.options file:

-agentpath:[/path/to/]lib/libjrebel32.dylib
  1. Save the file and restart the server.

    Tip

    Create the jvm.options file in the ${wlp.install.dir}/etc/ folder to automatically apply the JVM options to all your WebShpere Liberty Profile instances.


Linux 64-bit

  1. Create the file jvm.options in your IBM WebSphere Liberty Profile ${server.config.dir}/ folder.

  2. Add the following content to the jvm.options file:

-agentpath:[/path/to/]lib/libjrebel64.so
  1. Save the file and restart the server.

    Tip

    Create the jvm.options file in the ${wlp.install.dir}/etc/ folder to automatically apply the JVM options to all your WebShpere Liberty Profile instances.


Linux 32-bit

  1. Create the file jvm.options in your IBM WebSphere Liberty Profile ${server.config.dir}/ folder.

  2. Add the following content to the jvm.options file:

-agentpath:[/path/to/]lib/libjrebel32.so
  1. Save the file and restart the server.

    Tip

    Create the jvm.options file in the ${wlp.install.dir}/etc/ folder to automatically apply the JVM options to all your WebShpere Liberty Profile instances.


WildFly 8.x and 9.x (Java 7)

Windows 64-bit

  1. Open %WILDFLY_HOME%\bin.

  2. Create the file standalone-jrebel.cmd with the following content:

@echo off
set REBEL_HOME=JRebel root folder.
set JAVA_OPTS=-agentpath:%REBEL_HOME%\lib\jrebel64.dll %JAVA_OPTS%
call "%~dp0\standalone.bat" %*
  1. Use this file instead of standalone.bat to run WildFly with JRebel.

    Warning

    Any further customization to JAVA_OPTS inside the WildFly executable (default standalone.conf.bat) needs to be included in run-jrebel.cmd for JRebel to function correctly.


Windows 32-bit

  1. Open %WILDFLY_HOME%\bin.

  2. Create the file standalone-jrebel.cmd with the following content:

@echo off
set REBEL_HOME=JRebel root folder.
set JAVA_OPTS=-agentpath:%REBEL_HOME%\lib\jrebel32.dll %JAVA_OPTS%
call "%~dp0\standalone.bat" %*
  1. Use this file instead of standalone.bat to run WildFly with JRebel.

    Warning

    Any further customization to JAVA_OPTS inside the WildFly executable (default standalone.conf.bat) needs to be included in run-jrebel.cmd for JRebel to function correctly.


macOS 64-bit

  1. Open $WILDFLY_HOME/bin.

  2. Create the file standalone-jrebel.sh with the following content:

#!/bin/bash
export REBEL_HOME=JRebel root folder.
export JAVA_OPTS="-agentpath:$REBEL_HOME/lib/libjrebel64.dylib $JAVA_OPTS"
`dirname $0`/standalone.sh $@
  1. Use this script instead of standalone.sh to run WildFly with JRebel.

    Warning

    Any further customization to JAVA_OPTS inside the WildFly executable (default standalone.conf.sh) needs to be included in standalone-jrebel.sh for JRebel to function correctly.


macOS 32-bit

  1. Open $WILDFLY_HOME/bin.

  2. Create the file standalone-jrebel.sh with the following content:

#!/bin/bash
export REBEL_HOME=JRebel root folder.
export JAVA_OPTS="-agentpath:$REBEL_HOME/lib/libjrebel32.dylib $JAVA_OPTS"
`dirname $0`/standalone.sh $@
  1. Use this script instead of standalone.sh to run WildFly with JRebel.

    Warning

    Any further customization to JAVA_OPTS inside the WildFly executable (default standalone.conf.sh) needs to be included in standalone-jrebel.sh for JRebel to function correctly.


Linux 64-bit

  1. Open $WILDFLY_HOME/bin.

  2. Create the file standalone-jrebel.sh with the following content:

#!/bin/bash
export REBEL_HOME=JRebel root folder.
export JAVA_OPTS="-agentpath:$REBEL_HOME/lib/libjrebel64.so $JAVA_OPTS"
`dirname $0`/standalone.sh $@
  1. Use this script instead of standalone.sh to run WildFly with JRebel.

    Warning

    Any further customization to JAVA_OPTS inside the WildFly executable (default standalone.conf.sh) needs to be included in standalone-jrebel.sh for JRebel to function correctly.


Linux 32-bit

  1. Open $WILDFLY_HOME/bin.

  2. Create the file standalone-jrebel.sh with the following content:

#!/bin/bash
export REBEL_HOME=JRebel root folder.
export JAVA_OPTS="-agentpath:$REBEL_HOME/lib/libjrebel32.so $JAVA_OPTS"
`dirname $0`/standalone.sh $@
  1. Use this script instead of standalone.sh to run WildFly with JRebel.

    Warning

    Any further customization to JAVA_OPTS inside the WildFly executable (default standalone.conf.sh) needs to be included in standalone-jrebel.sh for JRebel to function correctly.


WildFly 10.x or newer (Java 8+)

Windows 64-bit

  1. Open %WILDFLY_HOME%\bin.

  2. Create the file standalone-jrebel.cmd with the following content:

@echo off
set REBEL_HOME=JRebel root folder.
set JAVA_OPTS=-agentpath:%REBEL_HOME%\lib\jrebel64.dll %JAVA_OPTS%
call "%~dp0\standalone.bat" %*
  1. Use this file instead of standalone.bat to run WildFly with JRebel.

    Warning

    Any further customization to JAVA_OPTS inside the WildFly executable (default standalone.conf.bat) needs to be included in run-jrebel.cmd for JRebel to function correctly.


Windows 32-bit

  1. Open %WILDFLY_HOME%\bin.

  2. Create the file standalone-jrebel.cmd with the following content:

@echo off
set REBEL_HOME=JRebel root folder.
set JAVA_OPTS=-agentpath:%REBEL_HOME%\lib\jrebel32.dll %JAVA_OPTS%
call "%~dp0\standalone.bat" %*
  1. Use this file instead of standalone.bat to run WildFly with JRebel.

    Warning

    Any further customization to JAVA_OPTS inside the WildFly executable (default standalone.conf.bat) needs to be included in run-jrebel.cmd for JRebel to function correctly.


macOS 64-bit

  1. Open $WILDFLY_HOME/bin.

  2. Create the file standalone-jrebel.sh with the following content:

#!/bin/bash
export REBEL_HOME=JRebel root folder.
export JAVA_OPTS="-agentpath:$REBEL_HOME/lib/libjrebel64.dylib $JAVA_OPTS"
`dirname $0`/standalone.sh $@
  1. Use this script instead of standalone.sh to run WildFly with JRebel.

    Warning

    Any further customization to JAVA_OPTS inside the WildFly executable (default standalone.conf.sh) needs to be included in standalone-jrebel.sh for JRebel to function correctly.


macOS 32-bit

  1. Open $WILDFLY_HOME/bin.

  2. Create the file standalone-jrebel.sh with the following content:

#!/bin/bash
export REBEL_HOME=JRebel root folder.
export JAVA_OPTS="-agentpath:$REBEL_HOME/lib/libjrebel32.dylib $JAVA_OPTS"
`dirname $0`/standalone.sh $@
  1. Use this script instead of standalone.sh to run WildFly with JRebel.

    Warning

    Any further customization to JAVA_OPTS inside the WildFly executable (default standalone.conf.sh) needs to be included in standalone-jrebel.sh for JRebel to function correctly.


Linux 64-bit

  1. Open $WILDFLY_HOME/bin.

  2. Create the file standalone-jrebel.sh with the following content:

#!/bin/bash
export REBEL_HOME=JRebel root folder.
export JAVA_OPTS="-agentpath:$REBEL_HOME/lib/libjrebel64.so $JAVA_OPTS"
`dirname $0`/standalone.sh $@
  1. Use this script instead of standalone.sh to run WildFly with JRebel.

    Warning

    Any further customization to JAVA_OPTS inside the WildFly executable (default standalone.conf.sh) needs to be included in standalone-jrebel.sh for JRebel to function correctly.


Linux 32-bit

  1. Open $WILDFLY_HOME/bin.

  2. Create the file standalone-jrebel.sh with the following content:

#!/bin/bash
export REBEL_HOME=JRebel root folder.
export JAVA_OPTS="-agentpath:$REBEL_HOME/lib/libjrebel32.so $JAVA_OPTS"
`dirname $0`/standalone.sh $@
  1. Use this script instead of standalone.sh to run WildFly with JRebel.

    Warning

    Any further customization to JAVA_OPTS inside the WildFly executable (default standalone.conf.sh) needs to be included in standalone-jrebel.sh for JRebel to function correctly.