mvn clean install error

hello, error running a mvn clean install after creating a new openmrs project

Thanks for reaching out! The error you’re facing when running mvn clean install in the basicexample module is likely due to Maven not finding the Java compiler. The key part of the error message:

“No compiler is provided in this environment. Perhaps you are running on a JRE rather than a JDK?”

suggests that your system is using a Java Runtime Environment (JRE) instead of a Java Development Kit (JDK), which is required for compilation.

:white_check_mark: Steps to Fix This:

  1. Verify your Java installation
  • Open Command Prompt (cmd) and run:
java -version
* If it doesn’t show **JDK 8+**, you need to install it.
  • Also, check if the Java compiler is available:
javac -version
* If this fails, it means the JDK is missing.
1 Like