zoukankan      html  css  js  c++  java
  • maven插件问题

    每次装的时候,都忘记怎么处理,转一个解决办法http://hi.baidu.com/hwp0710/blog/item/e3142aa41b223be59052ee16.html

    Eclipse is running in a JRE, but a JDK is required
    关键字: eclipse is running in a jre, but a jdk is required

    安装Maven之后提示:
    eclipse is running in a jre, but a jdk is required
    控制台出现:
    Java代码

       1. Eclipse is running in a JRE, but a JDK is required  
       2.   Some Maven plugins may not work when importing projects or updating source folders.  

    Eclipse is running in a JRE, but a JDK is required
      Some Maven plugins may not work when importing projects or updating source folders.

     

    解决办法:
    Java代码

       1. To create a Windows shortcut to an installed Eclipse:  
       2.   
       3. Navigate to eclipse.exe in Windows Explorer and use Create Shortcut on the content menu.  
       4. Select the shortcut and edit its Properties. In the Target: field append the command line arguments.  
       5. -vm C:\Java\jdk1.6.0_05\bin\javaw  
       6. Opening this shortcut launches Eclipse. (You can drag the shortcut to the Windows Desktop if you want to keep it in easy reach.)  
       7.   
       8. example:  

       9. C:\Eclipse\eclipse.exe -vm C:\Java\jdk1.6.0_05\bin\javaw.exe

    另一解决办法:

    把myeclipse快捷方式发送到桌面,右击快捷方式,点属性,修改目标为(红色为修改的jdk)

    "C:\MyEclipse 6.6\eclipse\eclipse.exe" -vm "D:\Program Files\Java\jdk1.6.0_07\bin\javaw.exe"

    ok!!!

    <dependency>
                <groupId>com.sun</groupId>
                <artifactId>tools</artifactId>
                <version>1.5.0</version>
                <scope>system</scope>
                <systemPath>
                    D:\Program Files\Java\jdk1.6.0_07\lib\tools.jar
                </systemPath>
    </dependency>

  • 相关阅读:
    SpringMvc---Ant通配符
    mybatis 数据库语句
    shiro 静态页面资源不显示 解决方案
    http错误汇总
    关于代码质量与逻辑
    shiro 过滤属性的意义
    java思维导图
    E
    LCIS HDU
    E
  • 原文地址:https://www.cnblogs.com/highriver/p/1941366.html
Copyright © 2011-2022 走看看