Maven Package Compilation Error

后端 未结 12 1771
栀梦
栀梦 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:16

    Try this. Go to Window --> Preferences --> Java --> Installed JREs.

    Double click the JRE, which is inside installed JREs.

    Give the JDK path (for example, C:\Program Files\Java\jdk1.7.0_80\) in JRE Home, and give JRE name as JDK. Click on Finish and then OK.

    For me it worked.

提交回复
热议问题