MemoryAnalyzer(mat) memory analysis tool reports an error version1.8.0 of the jvm is not suitable for this product 11 or..

This error obviously means that the current jdk version is too low and requires jdk11 or above.

Configuring jdk mainly uses java api and java runtime environment (jre). Because eclipse relies on jdk11 java runtime environment, an error is reported. My jdk is version 1.8. I use eclipse just to use the memory analysis tool mat, so I don't want to replace the jdk1.8 I am using now.

The specific steps are as follows (three steps):

1. Download the latest jdk11 zip package from Oracle's official website, and unzip it to a location that does not have a Chinese path (it must not have Chinese characters (anyone who has played games before knows that if the path contains Chinese characters, it is likely to be garbled), I unzip it directly on the C drive) .

2. Download MemoryAnalyzer from the Eclipse official website and unzip it. The folder contents are as follows. Open the MemoryAnalyzer configuration file.

3. Add a sentence to specify the jdk version used by eclipse

-vm
C:\jdk-11.0.13_windows-x64_bin\jdk-11.0.13\bin\javaw.exe

Summarize:

Download jdk11, then specify the jdk version for eclipse, and then open it to run the mat tool without changing computer environment variables and other configurations. You can also use this method if you are using eclipse to report errors.

Guess you like

Origin blog.csdn.net/health7788/article/details/123893540