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>
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