Eclipse is running in a JRE, but a JDK is required

After installing Maven, a warning message appears every time it starts:

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

Based on the online introduction, after making the following two settings, it is OK.

1. 1. Check if Eclipse is using JDK
write picture description here
. Here you need to use JDK.

2. Configure Eclipse.ini

找到Eclipse所在的目录,打开Eclipse.ini,在中间或者前面加入如下两句

-vm
C:\Program Files\Java\jdk1.5.0_16\bin\javaw.exe

Here's where I added
write picture description here
it After that, restarted Eclipse and the problem was solved.

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325471912&siteId=291194637