Boost Java Web Development Speed: Step-by-Step JRebel Installation Guide

Learn how to dramatically speed up Java web development by installing JRebel, covering both Tomcat startup parameter configuration and the IntelliJ IDEA plugin method, with detailed screenshots, VM options for Windows, Linux, and macOS, and tips for proper deployment settings.

Java Backend Technology
Java Backend Technology
Java Backend Technology
Boost Java Web Development Speed: Step-by-Step JRebel Installation Guide

JRebel Installation

In Java web development, updating a Java file usually requires restarting Tomcat, which wastes time. JRebel allows immediate hot‑deployment of class changes and Spring configuration, greatly improving efficiency.

Method 1: Add JRebel parameters to Tomcat startup

Extract JRebel to a directory, then configure IntelliJ IDEA's Tomcat settings.

In the Tomcat Server configuration, select the Deployment tab, choose your project with the exploded option, remove the default Make step, and add the following VM options.

-noverify
-agentpath:D:/dev_env/jrebel/jrebel_running/lib/jrebel64.dll

For Linux use:

-agentpath:/dev_env/jrebel/jrebel_running/lib/libjrebel64.so

For macOS use:

-agentpath:/dev_env/jrebel/jrebel_running/lib/libjrebel64.dylib

After configuring, start Tomcat. This method requires re‑configuring for each new project.

Method 2: Install JRebel IntelliJ IDEA plugin

Install the JRebel plugin locally (not via online marketplace). After installation, a JRebel configuration appears in Settings. Verify the plugin status shows VALID.

Two new green buttons appear next to the usual Run button: Run and Debug, which launch the application with JRebel enabled.

Custom container launch

When configuring a custom container, ensure the On 'Update' action and On frame deactivation options are set to Update classes and resources. Leave VM options empty and start the project, typically using the Debug button.

Maven or Gradle launch

Open the JRebel panel, select the project or module, and the plugin generates a rebel.xml in src/main/resources. Then launch the task from the Maven or Gradle tool window; after starting, recompile resources with Ctrl+Shift+F9 to apply changes.

JRebel offers a free trial key from its official website; register to obtain the activation key.

Original Source

Signed-in readers can open the original source through BestHub's protected redirect.

Sign in to view source
Republication Notice

This article has been distilled and summarized from source material, then republished for learning and reference. If you believe it infringes your rights, please contactadmin@besthub.devand we will review it promptly.

JavaIntelliJ IDEATomcatJRebelHot Deployment
Java Backend Technology
Written by

Java Backend Technology

Focus on Java-related technologies: SSM, Spring ecosystem, microservices, MySQL, MyCat, clustering, distributed systems, middleware, Linux, networking, multithreading. Occasionally cover DevOps tools like Jenkins, Nexus, Docker, and ELK. Also share technical insights from time to time, committed to Java full-stack development!

0 followers
Reader feedback

How this landed with the community

Sign in to like

Rate this article

Was this worth your time?

Sign in to rate
Discussion

0 Comments

Thoughtful readers leave field notes, pushback, and hard-won operational detail here.