今天到了新的环境,需要重新搭建Android的开发环境,下载eclipse并安装了JDK1.6后,启动eclipse,发现出现了错误“Could not create java virtual machine”,点击就立即关闭了。

解决办法如下,打开eclipse目录下的eclipse.ini文件:

-startup
plugins/org.eclipse.equinox.launcher_1.1.0.v20100507.jar
--launcher.library
plugins/org.eclipse.equinox.launcher.win32.win32.x86_1.1.1.R36x_v20100810
-product
org.eclipse.epp.package.jee.product
--launcher.defaultAction
openFile
--launcher.XXMaxPermSize
256M
-showsplash
org.eclipse.platform
--launcher.XXMaxPermSize
256m
--launcher.defaultAction
openFile
-vmargs
-Dosgi.requiredJavaVersion=1.5
-Xms40m
-Xmx512m

修改为:

-startup
plugins/org.eclipse.equinox.launcher_1.1.0.v20100507.jar
--launcher.library
plugins/org.eclipse.equinox.launcher.win32.win32.x86_1.1.1.R36x_v20100810
-product
org.eclipse.epp.package.jee.product
--launcher.defaultAction
openFile
--launcher.XXMaxPermSize
128M
-showsplash
org.eclipse.platform
--launcher.XXMaxPermSize
128m
--launcher.defaultAction
openFile
-vmargs
-Dosgi.requiredJavaVersion=1.5
-Xms40m
-Xmx512m

搞定!祝你好运!

更多相关文章

  1. Android(安卓)SDK 环境变量配置-Windows7-20170427
  2. Android开发(一):环境搭建
  3. 搭建 Android(安卓)开发环境,初试HelloWorld (win7) (上)
  4. 【Android自学日记】搭建Android开发环境
  5. cordova3+sencha touch2.x 环境搭建
  6. Android(安卓)ndk 开发环境配置与调试(linux)
  7. Android开发一:开发环境搭建
  8. ubuntu16.04 + Qt5.13 搭建安卓开发环境
  9. 转:Android开发环境搭建

随机推荐

  1. Android 7.1 Launcher3 支持按键操作显示
  2. android底部菜单栏的实现和百度地图API的
  3. Robolectric使用(四)自定义
  4. Android下的一些调试手段(含kernel调试办
  5. android ViewPager,ViewFlipper,ViewFlow
  6. Android(安卓)Java 获取剪切板的内容,MD5
  7. Android视频处理 --处理视频第一帧缩略图
  8. Android——eclipse共享library以及导出j
  9. Android 只开启一个Activity实例
  10. android 设置EditText和TextView不可见