On a Win64 x64 machine, my JAVA_HOME (and PATH) point to a 32-bit JDK -
primarily used for running maven.
How can I configure MAT to run using a specific x64 JRE that's also
installed on my system?
The hack I use right now is to copy the (server) x64 "jre" subdirectory
inside the MAT directory - that seems to get picked up. However, I
assume there's an easier and cleaner way?
Krum Tsvetkov wrote:
> Try running
> MemoryAnalyzer.exe -vm <path_to_jdk>\bin
>
> pay attention you have to give it thepath down to the bin folder.
>
> Let me know if this helps.
Thanks, I've got it working.
Had to play for a few minutes with proper quoting.
This one works:
"C:\Program Files\<mat x64 dir>\MemoryAnalyzer.exe" -vm "C:\Program
Files\Java\jdk1.6.0_07_x64\bin"
This one doesn't:
"C:\Program Files\<mat x64 dir>\mat\MemoryAnalyzer.exe" "-vm C:\Program
Files\Java\jdk1.6.0_07_x64\bin"