Switching JRebel Agents¶
JRebel comes bundled with two agents – a native agent for supported platforms and a java agent for other platforms.
Switching JRebel to Native Agent on Windows, Mac OS and Linux (x86)¶
Add -agentpath:[path/to/jrebel]
to the JVM command line.
Operating system |
Startup command |
Windows 64-bit JDK |
|
Windows 32-bit JDK |
|
Mac OS X 64-bit JDK |
|
Mac OS X 32-bit JDK |
|
Linux 64-bit JDK |
|
Linux 32-bit JDK |
|
Switching JRebel to Java Agent on all operating systems and architectures¶
Java 6 to 8:
java -javaagent:[/path/to/]jrebel.jar -Xbootclasspath/p:[/path/to/]rebelboot.jar [... rest of arguments ...]
Java 9 and newer:
REBELBOOT=/path/to/rebelboot
mkdir -p $REBELBOOT
touch $REBELBOOT/patches.txt
java -javaagent:[/path/to/]jrebel.jar -Drebel.bootstrap=$REBELBOOT @$REBELBOOT/patches.txt [... rest of arguments ...]