Running standalone applications

Legacy Agent (Java 1.4)

Warning

Keep in mind that the Legacy Agent is located in JRebel’s legacy folder.

  1. Generate jrebel-bootstrap.jar by executing the following command:
java -jar jrebel.jar
  1. Add the following parameters to the command line: -noverify -Xbootclasspath/p:[path/to/]jrebel-bootstrap.jar;[path/to/]jrebel.jar, for example:
java -noverify -Xbootclasspath/p:[path/to/]jrebel-bootstrap.jar;[path/to/legacy/]jrebel.jar com.example.Main
  1. When using exploded development or a standalone application, set IDE to compile to WEB-INF/classes or to the system classpath. Your changes will be picked up immediately on save. When deploying as a WAR or an EAR, you need to create a rebel.xml configuration file.

Note

Make sure that your IDE compiles Java classes to the same location where JRebel reads them from. The compiler target folder and the path in rebel.xml should match.


Legacy Agent (IBM JDK)

Warning

Keep in mind that the Legacy Agent is located in JRebel’s legacy folder.

  1. Generate jrebel-bootstrap.jar by executing the following command:
java -jar jrebel.jar
  1. Start your application with the following parameters:
-noverify -Xshareclasses:none -Xbootclasspath/p:[path/to/]jrebel-bootstrap.jar;[path/to/legacy/]jrebel.jar

Note

You can find more instructions for server startup in the Running servers from command line chapter.