解决Mac OS下安装MyEclipse报错:Your system does not have sufficient memory to support MyEclipse

时间:2023-03-09 04:13:58
解决Mac OS下安装MyEclipse报错:Your system does not have sufficient memory to support MyEclipse

最近想尝尝鲜,FQ去www.myeclipseide.com上下载了最新版的MyEclipse 15CI版,安装的时候,报告如下错误(MyEclipse 14也会出现这个问题):

Your system does not have sufficient memory to support MyEclipse. MyEclipse requires 256 MBs physical memory and 64 MBs of virtual memory. Your system only has 4056708 MBs of physical memory, and 0 MBs of virtual memory".

百度和Google了下,发现很多解决方案都是写个程序强制性耗尽系统物理内存,逼迫系统开始使用虚拟内存,然后开始安装,这很明显是个很Low的办法,

功夫不费有心人,终于找到了如下靠谱的解决方案,目前已经成功安装:

1、下载完整的DMG安装文件

2、双击打开,此时会出现一个MyEclipse 15 XXXXX Installer.app文件,右键显示包内容

3、将包里的Contents文件夹复制出来,随便放个地方

4、删除 Contents/_CodeSignature 目录

5、编辑 MacOS/standard-install文件,里面大概是这样的:

解决Mac OS下安装MyEclipse报错:Your system does not have sufficient memory to support MyEclipse
1 #!/bin/sh
2 dir=`dirname "$0"`
3 cd "${dir}/../Installer"
4 dir=`pwd`
5 ./pulse-one -vmargs -Xms192m -Xmx256m -XX:MaxPermSize=128m -d32 -XstartOnFirstThread -Dorg.eclipse.swt.internal.carbon.smallFonts "-Dpulse.settings.directory=${dir}/../Settings" "-Dpulse.artifact.bin.path=${dir}/../Resources/artifacts.bin" "-Dpulse.installer.directory=${dir}" &
解决Mac OS下安装MyEclipse报错:Your system does not have sufficient memory to support MyEclipse

6、在-vmargs里增加"-Dcom.genuitec.pulse.debug.memory.check=true"并保存

7、运行Contents/MacOS/standard-install 文件,搞定!

原文:

Download the full installer 
- Open the DMG and then show the package content of the installer 
- Copy the content of the Show Package contents to a separate folder 
- Delete the CodeSignature folder 
- From SystemPrefences temporarly enable "Allow apps downloaded from Anywhere" (in your Security & Privacy settings) 
- Edit the file MacOS/standard-install and add the following to the vmargs: "-Dcom.genuitec.pulse.debug.memory.check=true" 
- Run standard-install

出处:https://www.myeclipseide.com/index.php?name=PNphpBB2&file=viewtopic&p=137321