Latest news

JavaRebel 1.2.1 and Spring Plugin 1.0-M2 Released

We are very proud to present not one, but two simultaneous releases....

JavaRebel used to develop LinkedIn

LinkedIn, Corp. has purchased JavaRebel licenses for all its Java engineers to use in the well-known social networking website dev...

JavaRebel 1.2: Now With Full Spring Support

The latest stable release of the JavaRebel code reloading agent includes a plugin for Spring that reloads Spring configuration on-...

JavaRebel and IntelliJ IDEA

October 11th, 2007 by Toomas Römer

Eclipse IDE was used in the JavaRebel installation and demo screencast. We have got requests on how to integrate JavaRebel with IntelliJ IDEA. Of course JavaRebel is IDE independent and it all comes down to the users choice. In this quick tutorial we will outline the settings that you should enable to take the most out of JavaRebel & Intellij IDEA.We will be using the latest stable version 6.0.6.

Currently it is not possible to debug applications from IntelliJ Idea that are using JavaRebel. The issue has been reported to JetBrains.. To debug applications running under JavaRebel using IntelliJ IDEA use the special plugin. It can be downloaded from the IntelliJ Plugin page or from the IntelliJ IDEA plugin manager.

Use the following tips increase your productivity.

  • Develop in exploded mode

    • Make sure that you don’t package modules as war/jar files
    • Set the output directory to the respected WEB-INF/classes
      • This is done via Module Settings -> Output and JavaDoc -> Output path
  • Turn off application deployment
    • Settings -> Project Settings -> Compiler -> Deploy web applications to server after compilation
  • Ease the compilation process
    • IDEA saves files when you compile them.
    • Make sure all dependent files are also compiled.
      • Settings -> Project Setting -> Compiler -> Honor dependencies on “Compile” command
    • Start using the default compile shortcut Ctrl-Shift-f9 or map it to ctrl-s.

Opening Module Settings

Module Settings

Setting Output Paths

Setting Output Paths

Compiler Settings

Compiler Settings

8 Responses to “JavaRebel and IntelliJ IDEA”

  1. ZeroTurnaround.com » Blog Archive Says:

    […] If you don’t know how to setup IDEA and JavaRebel read the JavaRebel and IntelliJ IDEA tips. […]

  2. IntelliJ IDEA中文爱好者博客 » Blog Archive » JavaRebel 1.2M1 Says:

    […] 今天下载了JavaRebel 1.2-M1试用,确实非常地强大啦,支持unexploded development,不管什么应用都可以搞定。现在基本不用重新启动Tomcat,节省了不少时间。如果使用IntelliJ IDEA,可以参考一下:http://www.zeroturnaround.com/blog/javarebel-and-intellij-idea-tips/ […]

  3. Brendan Patterson Says:

    Is this still true??

    “Currently it is not possible to debug applications from IntelliJ Idea that are using JavaRebel. The issue has been reported to JetBrains.”

  4. Toomas Römer Says:

    Not any more. We have released a plugin that takes care of setting breakpoints. Here is the link http://plugins.intellij.net/plugin/?id=1699 or you can install it via the plugin manager from inside IntelliJ.

  5. Dragos Says:

    Hi all!

    I installed the JavaRebel and the plugin on IntelliJ and when I start in debug modus it does not stop at the breakpoints. The version I am using is 7.0.3 of IntelliJ.
    Any comments on this?

  6. Toomas Römer Says:

    Hi

    Could you confirm that:
    *) You’ve restarted IDE after installation
    *) Plugin is enabled

    and the problem persists.

  7. paulo avelar Says:

    Yes,
    I have the same problem as the last user.
    Just tried the plugin and now instead of crashing (without the plugin it freezes the IDE), it does not stop on breakpoints.

  8. Toomas Römer Says:

    Could you open up an issue in the Forum (http://www.zeroturnaround.com/forum/) with version details and instructions on how to reproduce?

Leave a Reply