---
title: "Eclipse is running in a JRE, but a JDK is required"
author: "iammonster"
date: "2009-08-27T16:32:01Z"
tags: []
slug: "eclipse-is-running-in-a-jre-but-a-jdk-is-required"
draft: false
lastmod: "2009-08-27T16:34:04Z"
id: 458429
url: "https://jiajun.iteye.com/blog/458429"
---

安装Maven之后提示：  
![](/upload/attachment/140828/4d3f49b0-0431-3a38-a46f-581f19c2d721.jpg)

 

控制台出现：

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

 

解决办法：

```
To create a Windows shortcut to an installed Eclipse:

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

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