Java获取进程Id遇到的问题

Based on “java.lang.Exception: Could not open PerfMemory” in the virtualvm log
I found the following link useful: http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6495549

After editing my profile and setting TEMP and TMP to C:\Temp (a directory I created) I can now profile. (the default temp directory was %USERPROFILE%\AppData\Local\Temp)

针对该问题,主要将用户变量(不是系统变量哦)中的Temp 和Tmp变量修改为自己新建的临时目录即可,具体原因还没研究出来

你可能感兴趣的:(Java获取进程Id遇到的问题)