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
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.
C:\Program Files\Java\jdk1.7.0_80\
For me it worked.