Unable to launch the VisualVM Launcher Plugin in Intellij
Asked Answered
E

2

6

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
Excavation answered 19/8, 2018 at 16:46 Comment(1)
post this as an issue to the maintainers github repository: github.com/krasa/VisualVMLauncherCrying
A
16

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://static.mcmap.net/file/mcmap/ZG-AbGLDKwfpKnMxcF_AZVLQamyA/YVbjV.png

Anorak answered 28/9, 2018 at 19:30 Comment(1)
I came across same problem on Windows. For Windows, ensure pointing to the exe ...\visualvm_206\bin\visualvm.exeClothesline
A
2

MacOs

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

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

Alit answered 5/5, 2023 at 10:5 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.