Home > Build-Management, Eclipse, Software Engineering > Maven Eclipse Compiler Error “No compiler is provided in this environment. …”

Maven Eclipse Compiler Error “No compiler is provided in this environment. …”

I got the following compilation error while running the Maven install command from Eclipse:

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

Go into Window > Preferences > Java > Installed JREs > and check your installed JREs. You should have an entry with a JDK there.

2013-03-08 10_37_19-Preferences

Go into Window > Preferences > Java > Installed JREs > Execution Environments

Select JavaSE-1.6, click the jdk checkbox on the right. Then use “update project configuration” from the maven menu.
2013-03-08 10_55_36-Preferences

For more informations about Maven and Eclipse have a look at the book of Sanjay Shah
here.
Maven-for-Eclipse

Advertisements
  1. September 25, 2013 at 20:00

    Thank You. This helped me compile a Maven project. I’ll probably read up but is there a quick answer to why the JDK has its own JRE and we have to do this?

    It’s strange because a simple ‘Hello World’ project seemed to work just fine with the JRE.

    Arvind

  2. v
    December 26, 2013 at 08:32

    Unable to find JDK after selecting Java se

    • eagle
      March 26, 2016 at 17:16

      use “Search” button,then you can find the JDK,

  3. Abu Saad
    November 21, 2014 at 11:01

    Thanks!

  4. Deenu
    April 22, 2015 at 09:22

    This is helped for me. Thank you!!!

  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

w

Connecting to %s