安装Maven后提示找不到JDK的错误 。The Maven Integration requires that Eclipse be running in a JDK
来源:互联网 发布:微信误删恢复软件 编辑:程序博客网 时间:2024/05/23 01:18
在eclipse中安装了m2eclipse(maven插件)
在安装后,出现下列警告:
The Maven Integration requires that Eclipse be running in a JDK, because a number of Maven core plugins are using jars from the JDK.
Please make sure the -vm option in eclipse.ini is pointing to a JDK and verify that Installed JRE’s are also using JDK installs.
解决:
(1)设置系统安装的JDK目录set your JDK as a default Java environment in eclipse (default installed JRE)
Open 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)增加JDK路径到eclipse.ini文件中add path to your SDK in eclipse.ini
open ‘eclipse.ini’ and add there: -vm path_to_javaw_on_your_machine,so in my example it will be (jdk1.6.0_17 on Windows):-vm
D:\\Java\jdk1.6.0_13\jre\bin\javaw
不能有空格,否则要用~1代替,如: ‘Program Files’ is ‘Progra~1′. Notice 1: Do not use paths with spaces! Replace all dir names with spaces to their shortcuts. For example: ‘Program Files’ is ‘Progra~1′.
要分为2行写。Notice 2: ‘-vm’ is in the first line, path is in the second line
your ‘eclipse.ini’ looks like this:
-startup
plugins/org.eclipse.equinox.launcher_1.0.201.R35x_v20090715.jar
--launcher.library
plugins/org.eclipse.equinox.launcher.win32.win32.x86_1.0.200.v20090519
-showsplash
org.eclipse.platform
--launcher.XXMaxPermSize
256m
-vm
D:\Java\jdk1.6.0_13\jre\bin\javaw
-vmargs
-Xms40m
-Xmx256m
-vm要在-vmargs前面。Notice : ‘-vm’ must be "-vmargs" above
重启eclipse。Restart eclipse and everything should be fine.
来自:http://www.blogjava.net/itvincent/archive/2010/07/25/327101.html
- 安装Maven后提示找不到JDK的错误 。The Maven Integration requires that Eclipse be running in a JDK
- 安装Maven后提示找不到JDK的错误 。The Maven Integration requires that Eclipse be running in a JDK
- 安装Maven后提示找不到JDK的错误 。The Maven Integration requires that Eclipse be running in a JDK
- 安装Maven后提示找不到JDK的错误 。The Maven Integration requires that Eclipse be running in a JDK
- 安装Maven后提示找不到JDK的错误 。The Maven Integration requires that Eclipse be running in a JDK
- eclipse提示The Maven Integration requires that Eclipse be running in a JDK解决方法:
- eclipse提示The Maven Integration requires that Eclipse be running in a JDK解决方法
- Eclipse安装Mave后一直报错:The Maven Integration requires that Eclipse be running in a JDK......
- Eclipse安装Mave后一直报错:The Maven Integration requires that Eclipse be running in a JDK...... .
- Maven出现以下问题:The Maven Integration requires that Eclipse be running in a JDK
- The Maven Integration requires that Eclipse be running in a JDK
- The Maven Integration requires that Eclipse be running in a JDK
- The Maven Integration requires that Eclipse be running in a JDK
- The Maven Integration requires that Eclipse be running in a JDK,
- Maven出现以下问题:The Maven Integration requires that Eclipse be running in a JDK, because a number of Maven core plugins are using ja
- The Maven Integration requires that Eclipes be running in a JDK because a number o eclipes加载maven出错
- the Maven Integration requires that Eclipse be runing in a JDK,because a number of Maven core plugin
- eclipse安装完maven后,打开报错 Eclipse is running in a JRE, but a JDK is required
- 找素数 素数就是不能再进行等分的整数。比如:7,11。而9不是素数,因为它可以平分为3等份。
- 微信公众平台为什么会火
- 黑马程序员————学习日记【18】 【基础加强2】
- 用JS写的计时器setTimeout与setInterval
- 07 OGNL
- 安装Maven后提示找不到JDK的错误 。The Maven Integration requires that Eclipse be running in a JDK
- 黑马程序员————学习日记【19】 【基础加强3】
- Linux基础学习
- C# 进程间通信 (Process Communication in C#)
- UVa 128 Software CRC 数论(模运算)
- ZOJ 1136 Multiple(BFS)
- 第八周上机项目一(2):用类的友元函数实现运算符的重载
- 数据挖掘十大经典算法
- 汇编学习笔记《一》