Christopher Perry
Christopher Perry

Reputation: 39225

JProfiler not working in IntelliJ 12 (JProfiler executable is null)

I'm trying to profile my Android app. I installed the JProfiler plugin through

IntelliJ IDEA --> Preferences --> Plugins

Here's a screenshot of the plugin description:

JProfiler plugin description

When I try to run the profiler nothing happens and I get this message saying that the JProfiler executable is null:

enter image description here

Any idea on how to fix this?

Upvotes: 3

Views: 19090

Answers (3)

zageyiff
zageyiff

Reputation: 465

You need to have JProfiler 7.2.2 (or newer) which integrates with IntelliJ IDEA 12 http://www.ej-technologies.com/download/jprofiler/changelog.html#7.2.2

To start, in a file browser check if you have the plugins folder, if not create it, so it looks like this

C:\Users\[username]\.IntelliJIdea12\config\plugins

If running IntelliJ IDEA 12, close it.

Inside JProfiler go to

Session -> IDE Integrations

And choose IntelliJ IDEA 12.x and click Proceed button

Choose your .IntelliJIdea12 folder

C:\Users\[username]\.IntelliJIdea12

And you're done, you should see a new button Next to Run [class#method] with Coverage that says Profile [class#method]

Upvotes: 1

Ricardo Pardini
Ricardo Pardini

Reputation: 950

You need to set or re-set the JProfiler executable. Do the following:

  • Select "Edit Configurations" from the "Run" drop down menu
  • Select "Application" under "Defaults" in the dialog box (or any existing run configuration)
  • Select the "Startup/Connection" tab
  • Select "JProfiler" in the list
  • Click on the "Select JProfiler Executable" button
  • Choose the JProfiler executable, which is

    • [JProfiler installation directory]\bin\jprofiler.exe on Windows
    • [JProfiler installation directory]/bin/jprofiler on Linux/Unix
    • [JProfiler installation directory]/bin/macos/jprofiler.sh on Mac OS X

Upvotes: 11

Ingo Kegel
Ingo Kegel

Reputation: 47975

You have to install JProfiler first, you can download it here.

Upvotes: 9

Related Questions