How-to articles, tricks, and solutions about JAVA-7

How to set specific Java version to Maven?

To set a specific Java version for Maven, you can specify the maven.compiler.source and properties in the pom.xml file.

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

This error message means that the Java compiler (javac) is not available in the current environment. This can happen if you are running a Java program from a Java Runtime Environment (JRE) rather than a Java Development Kit (JDK).