[JAVA] Note: Memory Analyzer does not work on Mac OS

Problems trying to use Java 6 for some reason

There is a specification like that at the bottom of /Applications/mat.app/Contents/Info.plist, so rewrite it.

<key>Eclipse</key>
<array>
	<string>-vm</string><string>/Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java</string>
	<!-- to use a specific Java version (instead of the platform's default) uncomment one of the following options,
			or add a VM found via $/usr/libexec/java_home -V
		<string>-vm</string><string>/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Commands/java</string>
		<string>-vm</string><string>/Library/Java/JavaVirtualMachines/1.8.0.jdk/Contents/Home/bin/java</string>
	-->
	<string>-keyring</string>
	<string>~/.eclipse_keyring</string>
	<string>-showlocation</string>
</array>

GUI does not accept operations

According to https://www.eclipse.org/forums/index.php/t/1090889/, it seems to be a problem with the SWT version.

Download SWT from https://www.eclipse.org/downloads/download.php?file=0eclipse/downloads/drops4/R-4.7.1a-201710090410/swt-4.7.1a-cocoa-macosx-x86_64.zip And replace it.

mv swt.jar /XXXXXXXXXXXXXXXX/mat.app/Contents/Eclipse/plugins/org.eclipse.swt.cocoa.macosx.XXXXXXXXXXXXXXXX.jar

Recommended Posts

Note: Memory Analyzer does not work on Mac OS
Does the escape sequence (\) not work? (for Mac)
Sidekiq-limit_fetch does not work
[Ruby on Rails] When parameter id acquisition does not work
Set JAVA_HOME correctly on Mac OS 10.12
Java Integer comparison (==) does not work correctly
eclipse tab width change does not work.
UriComponentsBuilder does not encode "+" depending on spring version
[React + TypeScript] Property'options' does not exist on type'HTMLElement'.
When @Transactional of Spring Boot does not work
@BeforeStep does not work in Tasklet of spring-batch
[Kotlin] The mapping library by reflection based on Java basically does not work with Kotlin.