Maven not picking JAVA_HOME correctly

后端 未结 8 1521
日久生厌
日久生厌 2020-12-03 02:35

I am on windows environment and using maven to compile my project. Although I just created the project and added the dependencies for various libararies.

As I added

8条回答
  •  渐次进展
    2020-12-03 03:08

    Sounds like you are running Maven in Eclipse. Eclipse does not consult JAVA_HOME.

    Make sure you have set your JRE in Eclipse preferences to your desired JDK.

提交回复
热议问题