Categories
Java

Java: No compiler is provided in this environment [Maven]

Project created via the archtype and got error could not built

mvn archetype:generate -DgroupId=com.dmsys.frmk -DartifactId=frmk -DarchetypeArtifactId=maven-archetype-quickstart -DinteractiveMode=false

Java Maven Project, pom.xml

<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
  <modelVersion>4.0.0</modelVersion>
  <groupId>com.dmsys.frmk</groupId>
  <artifactId>frmk</artifactId>
  <packaging>jar</packaging>
  <version>1.0-SNAPSHOT</version>
  <name>frmk</name>
  <url>http://maven.apache.org</url>
  <dependencies>
    <dependency>
      <groupId>junit</groupId>
      <artifactId>junit</artifactId>
      <version>3.8.1</version>
      <scope>test</scope>
    </dependency>
    <dependency>
		<groupId>net.sf.ehcache</groupId>
		<artifactId>ehcache</artifactId>
		<version>2.5.0</version>
		<type>pom</type>
	</dependency>
  </dependencies>
</project>

Error Message: No compiler is provided in this environment

Java-Maven-Error

Java version

java-maven-version

Java Home

java-maven_home

The issue on Windows 7-64 bit.

The project is no issue since it could run on other machines so the issue would link to configuration of the machine above.

But what is it?

By osify

One reply on “Java: No compiler is provided in this environment [Maven]”

The issue was found because using openJDK instead of Oracle JDK but I’m not so clear why’s like that but it was solved by downloading the new JDK from oracle.com site.

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.