Latest news

JavaRebel is a Jolt Awards finalist

The Jolt Awards finalists have been announced and JavaRebel is shortlisted in the Utilities category. ...

ZeroTurnaround at Devoxx

Devoxx is an annual European Java conference with a total of 3200 attendees from 35 countries and again has been completely sold o...

Christmas sale - everything is 40% off!

Christmas sale for ZeroTurnaround products has started and will last till 4th of January 2009. Everything is 40% off. ...

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. The article has been updated to reflect UI changes in IDEA 8.0.

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

Compiler Settings for IDEA 8.0

Compiler Settings

11 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?

  9. Rolf Staflin Says:

    Thank you for writing this page! The location of some settings have changed since it was written and an update would be helpful. Still, it helped me set up my IDEA project to finally get JavaRebel working.

    Great stuff! Make room on your bank account — one registration coming up!

  10. Toomas Römer Says:

    @Rolf Staflin

    Thank you for the information. We’ve added this as a TODO item and we’ll update the information to reflect the changes in the latest IntelliJ IDEA versions.

  11. Toomas Römer Says:

    Article has been updated to reflect IntelliJ 8.0 UI changes.

Leave a Reply