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
Go to your 'Runtime Configuration' and configure your JRE to an JDK.
Or as @PawanKumarBaranwal suggested, set your default JDK. But care if you have more than one JRE configured.