转自:http://blog.csdn.net/major_/article/details/7232886
Flash Builder 4.6 启动出错, Failed to create the Java Virtual Machine 。
将 Xmx512m 改成 256m 后 Flash Builder4.5 能够正常启动,但是编译特别慢,Flash Builder 几乎不能用。
后来用如下方式修改 FlashBuilder.ini 和 FlashBuilderC.ini 后 flash Builer 可以正常使用。
-----------------------------------------------------------------------------------------------------------
FlashBuilder.ini 文件内容如下:
-nl
en_US
-startup
eclipse/plugins/org.eclipse.equinox.launcher_1.1.0.v20100507.jar
--launcher.library
eclipse/plugins/org.eclipse.equinox.launcher.win32.win32.x86_1.1.1.R36x_v20100810
--launcher.defaultAction
openFile
-vmargs
-Xms512m
-Xmx512m
-XX:MaxPermSize=128m
-XX:PermSize=128m
-Dorg.eclipse.equinox.p2.reconciler.dropins.directory=eclipse/dropins
-Declipse.application=com.adobe.flexbuilder.standalone.FlashBuilderApplication
en_US
-startup
eclipse/plugins/org.eclipse.equinox.launcher_1.1.0.v20100507.jar
--launcher.library
eclipse/plugins/org.eclipse.equinox.launcher.win32.win32.x86_1.1.1.R36x_v20100810
--launcher.defaultAction
openFile
-vmargs
-Xms512m
-Xmx512m
-XX:MaxPermSize=128m
-XX:PermSize=128m
-Dorg.eclipse.equinox.p2.reconciler.dropins.directory=eclipse/dropins
-Declipse.application=com.adobe.flexbuilder.standalone.FlashBuilderApplication
-----------------------------------------------------------------------------------------------------------
FlashBuilderC.ini
文件内容如下:
-startup
eclipse/plugins/org.eclipse.equinox.launcher_1.1.0.v20100507.jar
--launcher.library
eclipse/plugins/org.eclipse.equinox.launcher.win32.win32.x86_1.1.1.R36x_v20100810
--launcher.defaultAction
openFile
-nl
en_US
-vmargs
-Xms512m
-Xmx512m
-XX:MaxPermSize=128m
-XX:PermSize=128m
-Dorg.eclipse.equinox.p2.reconciler.dropins.directory=eclipse/dropins
-Declipse.application=com.adobe.flexbuilder.standalone.FlashBuilderApplication
eclipse/plugins/org.eclipse.equinox.launcher_1.1.0.v20100507.jar
--launcher.library
eclipse/plugins/org.eclipse.equinox.launcher.win32.win32.x86_1.1.1.R36x_v20100810
--launcher.defaultAction
openFile
-nl
en_US
-vmargs
-Xms512m
-Xmx512m
-XX:MaxPermSize=128m
-XX:PermSize=128m
-Dorg.eclipse.equinox.p2.reconciler.dropins.directory=eclipse/dropins
-Declipse.application=com.adobe.flexbuilder.standalone.FlashBuilderApplication
-----------------读者已测试,好使。