安装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>
分享到:
相关推荐
标题 "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" 提到的问题是许多Java开发者在使用Eclipse集成开发环境时可能遇到的一个常见错误。这个错误表明Eclipse正在使用Java运行时环境(JRE)运行,而实际上它...
* 安装好 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。 解决方式是:创建一个 ...
> Eclipse is running in a JRE, but a JDK is required > > Some Maven plugins may not work when importing projects or updating source folders. 这通常是因为Eclipse运行在JRE上而不是JDK上,导致某些Maven...
当Eclipse启动提示“Eclipse is running in a JRE, but a JDK is required”时,需要在Eclipse的启动参数中指定JDK路径。这通常在Eclipse的启动配置(eclipse.ini)文件中完成,确保`-vm`参数设置在`-vmargs`之前,...
- **Eclipse 启动问题**:安装 m2eclipse 插件后,Eclipse 可能会出现提示“Eclipse is running in a JRE, but a JDK is required”。解决方法是在 Eclipse 的启动参数中指定 JDK 的位置。 - 在 `-vm` 参数前添加 `...