安装有Maven的Eclipse启动时出现JDK警告

来源:互联网 发布:淘宝商城冰箱价格 编辑:程序博客网 时间:2024/06/07 06:56

若在Eclipse启动时,出现下图中的情况

2013年03月18日 - 小潘潘 - 小潘的博客
 


解决方法:


1:打开eclipse     Click on ‘Window’ -> ‘Preferences’ -> ‘Java’ -> ‘Installed JREs’.

    

If you can’t find any JDK on the list -> click ‘Add’ -> ‘Standard VM’ -> set all paths and click ‘Finish’.

After that – check this JDK on the list of installed JREs and click ‘OK’.

 

2:在eclipse的安装目录中找到eclipse.ini文件编辑这个文件

 

-startup
plugins/org.eclipse.equinox.launcher_1.0.200.v20090520.jar
--launcher.library
plugins/org.eclipse.equinox.launcher.win32.win32.x86_1.0.200.v20090519
-product
org.eclipse.epp.package.jee.product
--launcher.XXMaxPermSize
256M
-showsplash
org.eclipse.platform
--launcher.XXMaxPermSize
256m
-vm
C:\Java\jdk1.6.07\bin

-vmargs
-Dosgi.requiredJavaVersion=1.5
-Xms40m
-Xmx512m

 

黑色粗体部分就是需要添加的内容

注意:添加-vm后就需要另起一行,并且-vm一定要在-vmargs这个参数的上面。

0 0
原创粉丝点击