I have download Eclipse MAT and try to launch it on Windows.
Executing MemoryAnalyzer.exe
display a popup Incompatible JVM with this message: Version 1.8.0_242 of the JVM is not suitable for this product. Version: 11 or greater is required.
As said in this doc, I have created a jre
directory and copied an OpenJDK 16 which solves the issue.
But I don't find this solution very elegant. So I tried to add the -vm
parameter in the MemoryAnalyzer.ini
and also tried to create an eclipse.ini
file as reference by the doc. It doesn't work !
Is there a way to configure the location of the JVM without copy it entirely in the mat/jre directory ?
- NB 1: the documentation seems out of date. The
MemoryAnalyzer.ini
file exists whereas the doc references theeclipse.ini
which is not present in the default installation. - NB 2: I don't want to change my
JAVA_HOME
just for this tool.
-vm
and"D:\Program Files\Java\jdk-20\bin"
. I have to runMemoryAnalyzer.exe -vm "D:\Program Files\Java\jdk-20\bin"
from command line. Not sure why? – Fulks