Maven Package Compilation Error

后端 未结 12 1767
栀梦
栀梦 2020-12-05 07:39

i created a webapp project using maven in eclipse. when i run the command mvn package in command prompt it showing folowing error.

[ERROR] COMPILATION ERROR         


        
12条回答
  •  生来不讨喜
    2020-12-05 08:02

    1. Check your installation JDK and its path - download link

    2. Check its path on environmental variables - check

    3. Add eclipse windows->preferences->Java->installed JREs->add->standart VM -> JRE home (jdk path exmp:'C:\Program Files\Java\jdk1.8.0_221') then apply.

    4. right click your project -> properties -> select (Libraries -> JRE System libraries) -> edit -> choose workspace default JRE (JDK.1.8.0_221)

    5. Right-click your project -> Maven update clean and install project again.

提交回复
热议问题