1、下载地址:https://www.eclipse.org/mat/downloads.php
如下图所示选择mac版本
下载完,安装的时候发现报错
打开错误文件错误信息:
The platform metadata area could not be written: /Volumes/mat/mat.app/Contents/MacOS/workspace/.metadata. By default the platform writes its content
under the current working directory when the platform is launched. Use the -data parameter to
specify a different content area for the platform.
翻译:
无法写入平台元数据区域:/Volumes/mat/mat.app/Contents/MacOS/workspace文件/。元数据。默认情况下,平台编写其内容
在平台启动时的当前工作目录下。使用-data参数
为平台指定其他内容区域。
!ENTRY org.eclipse.osgi 4 0 2020-12-28 20:33:59.721
!MESSAGE Application error
!STACK 1
java.lang.IllegalStateException: The platform metadata area could not be written: /Volumes/mat/mat.app/Contents/MacOS/workspace/.metadata. By default the platform writes its content
under the current working directory when the platform is launched. Use the -data parameter to
specify a different content area for the platform.
at org.eclipse.core.internal.runtime.DataArea.assertLocationInitialized(DataArea.java:73)
at org.eclipse.core.internal.runtime.DataArea.getStateLocation(DataArea.java:141)
at org.eclipse.core.internal.preferences.InstancePreferences.getBaseLocation(InstancePreferences.java:47)
at org.eclipse.core.internal.preferences.InstancePreferences.initializeChildren(InstancePreferences.java:212)
at org.eclipse.core.internal.preferences.InstancePreferences.<init>(InstancePreferences.java:62)
at org.eclipse.core.internal.preferences.InstancePreferences.internalCreate(InstancePreferences.java:224)
at org.eclipse.core.internal.preferences.EclipsePreferences.create(EclipsePreferences.java:352)
at org.eclipse.core.internal.preferences.EclipsePreferences.create(EclipsePreferences.java:340)
at org.eclipse.core.internal.preferences.PreferencesService.createNode(PreferencesService.java:395)
at org.eclipse.core.internal.preferences.RootPreferences.getChild(RootPreferences.java:63)
at org.eclipse.core.internal.preferences.RootPreferences.getNode(RootPreferences.java:98)
at org.eclipse.core.internal.preferences.RootPreferences.node(RootPreferences.java:87)
at org.eclipse.core.internal.preferences.AbstractScope.getNode(AbstractScope.java:41)
at org.eclipse.core.runtime.preferences.InstanceScope.getNode(InstanceScope.java:80)
at org.eclipse.ui.preferences.ScopedPreferenceStore.getStorePreferences(ScopedPreferenceStore.java:213)
at org.eclipse.ui.preferences.ScopedPreferenceStore.<init>(ScopedPreferenceStore.java:127)
at org.eclipse.ui.plugin.AbstractUIPlugin.getPreferenceStore(AbstractUIPlugin.java:274)
at org.eclipse.ui.internal.UIPlugin$1.getPreferenceStore(UIPlugin.java:93)
at org.eclipse.ui.internal.util.PrefUtil.getAPIPreferenceStore(PrefUtil.java:74)
at org.eclipse.ui.internal.Workbench.lambda$3(Workbench.java:558)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:338)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:557)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:154)
at org.eclipse.mat.ui.rcp.Application.start(Application.java:26)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:203)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:137)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:107)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:401)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:255)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:657)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:594)
at org.eclipse.equinox.launcher.Main.run(Main.java:1447)
解决办法:
在安装界面,右键拷贝到桌面或者应用程序里面
双击拷贝后的mat.app,即可正确打开