简体   繁体   中英

Java Mission Control No JVMs detected Windows 10

I just downloaded Java Mission Control (JMC) for the first time and upon starting JMC, the following popup appears:

JMC 错误弹出窗口

I am trying to go through the Q&A but I am either not sure how to implement the suggested solutions, or the solutions don't seem to work, which I detail below:

问答

My attempted solutions

Referring to the suggested solutions enumerated above:

  1. A1: I am not running in Eclipse (I am running the JMC app directly as an executable), and anyway what does it mean to "run an app on a JDK, not a JRE"?
  2. A2: Indeed the hsperfdata folder was not writeable, so I modified the folder to give all permissions to everyone and closed all Java apps:

hsperfdata

However, after starting a new Java app , the permissions revert back to their original settings and thus I am unable to implement this suggested solution:

恢复权限

  • A3: The line after -vm is not empty, so I don't think this suggested solution is relevant for me:

虚拟机选项

For what it's worth, both JConsole and JVisualVM are able to find all running Java processes: 控制台 虚拟机

In case it is helpful for others with the same issue, I was able to resolve the problem described above by adding the location of the JRE contained within the JDK to the front of the System PATH variable (Windows 10):

在此处输入图片说明

路径变量

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM