eclipse启动时jdk环境变量报错解决

来源:互联网 发布:淘宝卖家新增运费模板 编辑:程序博客网 时间:2024/05/05 19:34

eclipse启动报错如下:

这里写图片描述


解决办法:

编辑 D:\software\eclipse4.3\eclipse.ini 文件


在openFile后面增加jdk所在路径:

-vm

C:\Program Files\Java\jdk1.7\bin


完整示例如下:

-startupplugins/org.eclipse.equinox.launcher_1.2.0.v20110502.jar--launcher.libraryplugins/org.eclipse.equinox.launcher.win32.win32.x86_1.1.100.v20110502-productorg.eclipse.epp.package.jee.product--launcher.defaultActionopenFile--launcher.XXMaxPermSize256M-showsplashorg.eclipse.platform--launcher.XXMaxPermSize256m--launcher.defaultActionopenFile-vmC:\Program Files\Java\jdk1.7\bin-vmargs-Dosgi.requiredJavaVersion=1.5-Xms40m-Xmx512m-Dfile.encoding=UTF-8



0 0