计算机软件 Eclipse The Maven Integration requires that Eclips

计算机软件Eclipse The Maven Integration requires that Eclipse be running in aJDK

问题描述:

   在打开eclipse时,总是会有如下图:

计算机软件 <wbr>Eclipse <wbr>The <wbr>Maven <wbr>Integration <wbr>requires <wbr>that <wbr>Eclips


    就是什么的:TheMaven Integration requires that Eclipse be running in a JDK,beacause a number of Maven core plugins are using jars from theJDK. Please make sure the -vm option in eclipse.ini is pointing toa JDK and verify that Installed JREs are also using JDKinstalls.

 

解决方案:

   其实在warning中已经讲的很明显了,如何解决方法,当然你搜索网上资料,不敢乱改,但毕竟只是个warning而已,只是每次打开时,点下的问题。(其实我也忍它好几个月了,后来senior的枪哥solve它了)
   特此总结下解决方案。

方案一、

若在Eclipse启动时,出现上图中的情况解决方法:

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 andclick ‘Finish’.

After that – check this JDK on the list of installed JREs and click‘OK’.refer to the image below:

计算机软件 <wbr>Eclipse <wbr>The <wbr>Maven <wbr>Integration <wbr>requires <wbr>that <wbr>Eclips



 

 

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

 

-startup
plugins/org.eclipse.equinox.launcher_1.2.0.v20110502.jar
--launcher.library
plugins/org.eclipse.equinox.launcher.win32.win32.x86_1.1.100.v20110502
-product
org.eclipse.epp.package.jee.product
--launcher.defaultAction
openFile
--launcher.XXMaxPermSize
256M
-showsplash
org.eclipse.platform
--launcher.XXMaxPermSize
256m
--launcher.defaultAction
openFile
-vm
D:\Program Files\Java\jdk1.6.0_23\bin
-vmargs
-Dosgi.requiredJavaVersion=1.5
-Xms40m
-Xmx512m

 

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

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

 

方案二、

   在桌面的Eclipse图标右键,单机属性,如下图:

计算机软件 <wbr>Eclipse <wbr>The <wbr>Maven <wbr>Integration <wbr>requires <wbr>that <wbr>Eclips



 

在目标处,把原先的位置:"D:\ProgramFiles\eclipse\eclipse.exe"

改为:"D:\ProgramFiles\eclipse\eclipse.exe" -vm "D:\ProgramFiles\Java\jdk1.6.0_23\bin\javaw"

 
这两种方法在我的eclipse都是可行的。
  • 1
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值