Hola tengo un error saben como lo puedo solucionar ? [ERROR] COMPILATION ERROR : [INFO] -------------------------------------------------...

Luis Angel Martinez Gonzalez

Luis Angel Martinez Gonzalez

Pregunta
student
hace 5 años

Hola tengo un error saben como lo puedo solucionar ?

[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.246 s

[INFO] Finished at: 2020-02-09T21:06:26-06:00

[INFO] ------------------------------------------------------------------------

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.8.1:compile (default-compile) on project e-reservation: Compilation failure

[ERROR] No compiler is provided in this environment. Perhaps you are running on a JRE rather than a JDK?

[ERROR]

[ERROR] -> [Help 1]

[ERROR]

[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.

[ERROR] Re-run Maven using the -X switch to enable full debug logging.

[ERROR]

[ERROR] For more information about the errors and possible solutions, please read the following articles:

[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException

1 respuestas
para escribir tu comentario
    Luis Garcia

    Luis Garcia

    student
    hace 5 años

    Si está utilizando un IDE, lo más probable es que esté apuntando a JRE en lugar de JDK. Por lo tanto, debe cambiar el JRE al JDK. En eclipse: Window > Preferences > Java > Installed JREs > Execution Env... Aquí debes elegir el JDK

Curso de Hibernate y Java Spring

Curso de Hibernate y Java Spring

Crear aplicaciones intuitivas comienza con un desarrollo ágil y eficiente. ¿Sabías que con Hibernate y Java Spring puedes optimizar procesos entre apps y bases de datos, o evitar acciones repetitivas, como escribir varias veces la mismas líneas de código? Ahora tendrás tiempo para hacer más de lo que te gusta: ¡nunca parar de aprender con Platzi!

Curso de Hibernate y Java Spring
Curso de Hibernate y Java Spring

Curso de Hibernate y Java Spring

Crear aplicaciones intuitivas comienza con un desarrollo ágil y eficiente. ¿Sabías que con Hibernate y Java Spring puedes optimizar procesos entre apps y bases de datos, o evitar acciones repetitivas, como escribir varias veces la mismas líneas de código? Ahora tendrás tiempo para hacer más de lo que te gusta: ¡nunca parar de aprender con Platzi!