Maven pointing to JRE instead of jdk

前端 未结 7 1865
南笙
南笙 2020-12-10 11:46

I\'ve been working with a co-worker on a problem I have been experiencing on a new project I just joined. Long story short, maven isn\'t building my .war file correctly. W

7条回答
  •  伪装坚强ぢ
    2020-12-10 12:30

    You can replace the environment from jre to jdk in Eclipse IDE as follows if it also shows compiler unavailable :

    • (right-click) your_project_name > Build Path > Configure Build Path > Libraries > (double-click) JRE System Libraries > Alternate Jre : jdk 1.8 >ok
    • Then from Installed JRES option in Libraries select jdk 1.8
    • Project > Clean
    • Maven > Update

提交回复
热议问题