4

I am trying to run visualvm in my Windows 8 machine and i am getting error 'Local java applications cannot be detected'. I tried to follow the below steps to resolve the issue as suggested in 'https://visualvm.github.io/troubleshooting.html'. I gave full permission to my 'AppData\Local\Temp\hsperfdata_Dhasan' folder. But still i am getting the same error whenever i start visualvm. Please help me to fix this issue.

Thanks.

dhasan k
  • 129
  • 1
  • 3
  • 10

1 Answers1

22

Quit all java applications and delete hsperfdata_Dhasan folder.

Tomas Hurka
  • 6,723
  • 29
  • 38
  • I deleted hsperfdata_Dhasan folder and restarted my machine. But still getting the same error. Also, i dont have admin rights in my system. Will it be a problem? – dhasan k Mar 08 '18 at 17:56
  • 2
    This is strange. Can you check that hsperfdata_Dhasan folder was created in AppData\Local\Temp\ after you deleted it and started VisualVM again? – Tomas Hurka Mar 16 '18 at 13:13
  • I should add that "Dhasan" will be your computer username. – hipokito Sep 13 '18 at 19:44
  • 1
    This should be accepted as an answer. It worked for me. – Mukesh Singh Aug 04 '19 at 22:42
  • This worked for me. One point is important to mention here, the link in the error dialog goes to a page with an explanation like this: The created folder is lower-case, if your user name has uppercase letters, delete the folder and make a case sensitive one, BUT, in my case, the "exact opposite" was the case. The existing folder had uppercase letters of my UserName, I deleted it, didn't create anything and just ran jvisualvm again, and all was fine. So, just delete the folder. – Mostafa Zeinali Jul 13 '21 at 07:22