5

I'm experiencing an issue launching my application with the VisualVM Launcher plugin for Intellij. The message I recieve when lauching is displayed below:

Error running 'Desktop': appId=81286153463824, jdkHome=null, visualVmHome=/Applications/VisualVM.app

I found these post that relate to this issue: here and here. Unfortunately, the problem is I can't find the scripts mentioned in the first post and I have no idea how to create the stack trace mentioned in the latter post.

I'm quite new to Intellij coming from eclipse, I don't know what details are pertinent. Below you'll find some quick facts:

IntelliJ IDEA 2018.2.1 (Community Edition)
Build #IC-182.3911.36, built on August 6, 2018
JRE: 1.8.0_152-release-1248-b8 x86_64
JVM: OpenJDK 64-Bit Server VM by JetBrains s.r.o
macOS 10.13.6
HDubz
  • 167
  • 1
  • 2
  • 14

2 Answers2

14

You probably (understandably) were confused about setting the location of your VisualVM executable when configuring the VisualVM Launcher IntelliJ plugin:

You want to located the .jar, not your Mac's executable path:

$ sudo find / -name "*visualvm*"
/usr/bin/jvisualvm

https://i.stack.imgur.com/YVbjV.png

LxL
  • 1,878
  • 2
  • 20
  • 39
Max
  • 171
  • 1
  • 6
  • I came across same problem on Windows. For Windows, ensure pointing to the exe ...\visualvm_206\bin\visualvm.exe – Zeena Feb 25 '21 at 13:56
1

MacOs

  1. Install visualvm using brew: brew install --cask visualvm

  2. Set visualvm path in InteliJ IDEA enter image description here

Igor
  • 2,039
  • 23
  • 27