I created a springboot project from spring initializr then I created a maven project with the same name and I import the project into eclipse.
JDK version is 1.8 and target run time is Apache tomcat 8.0.
but when i try to make run maven install the build doesn't pass by displaying this error
[INFO] Compiling 1 source file to
C:\Users\scharafi\workspace\ServeursGestionStock\target\classes
[INFO] -------------------------------------------------------------
[ERROR] COMPILATION ERROR :
[INFO] -------------------------------------------------------------
[ERROR] No compiler is provided in this environment. Perhaps you are running on a JRE rather than a JDK?
[INFO] 1 error
[INFO] -------------------------------------------------------------
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 8.009 s
[INFO] Finished at: 2018-06-22T18:48:38+01:00
[INFO] Final Memory: 20M/159M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.7.0:compile (default-compile) on project ServeursGestionStock: Compilation failure
[ERROR] No compiler is provided in this environment. Perhaps you are running on a JRE rather than a JDK?