`
wzhen_
  • 浏览: 7958 次
  • 性别: Icon_minigender_1
  • 来自: 北京
最近访客 更多访客>>
社区版块
存档分类
最新评论

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>

分享到:
评论
1 楼 hw1287789687 2013-12-30  
http://hw1287789687.iteye.com/blog/1997389

相关推荐

    Eclipse is running in a JRE, but a JDK is required错误的解决.rar

    标题 "Eclipse is running in a JRE, but a JDK is required" 提示的是一个常见的Eclipse启动问题,意味着你的Eclipse集成开发环境正在使用Java运行时环境(JRE)而不是Java开发工具包(JDK)。这通常是由于配置不...

    Eclipse is running in a JRE, but a JDK is required 解决方法.rar

    标题 "Eclipse is running in a JRE, but a JDK is required" 提到的问题是许多Java开发者在使用Eclipse集成开发环境时可能遇到的一个常见错误。这个错误表明Eclipse正在使用Java运行时环境(JRE)运行,而实际上它...

    maven 常用命令集合

    * 安装好 m2eclipse 插件后,可能会报错:Eclipse is running in a JRE, but a JDK is required. Some Maven plugins may not work when importing projects or updating source folders。 解决方式是:创建一个 ...

    Maven插件安装使用说明

    &gt; Eclipse is running in a JRE, but a JDK is required &gt; &gt; Some Maven plugins may not work when importing projects or updating source folders. 这通常是因为Eclipse运行在JRE上而不是JDK上,导致某些Maven...

    maven报错积累文件

    当Eclipse启动提示“Eclipse is running in a JRE, but a JDK is required”时,需要在Eclipse的启动参数中指定JDK路径。这通常在Eclipse的启动配置(eclipse.ini)文件中完成,确保`-vm`参数设置在`-vmargs`之前,...

    Maven建立多模块项目-图文并茂--入门级别.doc

    - **Eclipse 启动问题**:安装 m2eclipse 插件后,Eclipse 可能会出现提示“Eclipse is running in a JRE, but a JDK is required”。解决方法是在 Eclipse 的启动参数中指定 JDK 的位置。 - 在 `-vm` 参数前添加 `...

Global site tag (gtag.js) - Google Analytics