ZeroTurnaround Support Forum » JRebel Support

Detect JRebel

(5 posts)
  • Started 7 months ago by dmigowski
  • Latest reply from dmigowski

  1. dmigowski

    Member
    Posts: 21

    Hello, dear JRebel team,

    is there a possiblity to detect if JRebel is used in the application?

    Regards,
    Daniel Migowski

    PS: I know "good code" does not need to check it, but we have a special case where this might come handy.

    Posted 7 months ago #
  2. toomasr

    CoreRebel
    Posts: 482

    The first idea that comes to mind is going through the system properties, System.getProperty. At first glance I see a substring of "jrebel" in a prop named "java.class.path" and also in "sun.boot.class.path".

    Posted 7 months ago #
  3. lauri

    Member
    Posts: 480

    Or you could test if any of the jrebel sdk classes are present.

    Posted 7 months ago #
  4. toomasr

    CoreRebel
    Posts: 482

    So Class.forName() and use any from http://repos.zeroturnaround.com/svn/jr-root/trunk/jr-sdk/src/org/zeroturnaround/javarebel/ and see if loading is a success.

    Posted 7 months ago #
  5. dmigowski

    Member
    Posts: 21

    Thanks to you all, I will go with the last post, because it sounds like the most stable variant.

    Posted 7 months ago #

RSS feed for this topic

Reply

(required)

(required)

(optional)

(required)

Allowed markup: a blockquote code em strong ul ol li.
Put code in between `backticks`.

Olark Livehelp