3

I created a Maven project by using Eclipse Kepler as IDE.

I configure the pom.xml properties as follows:

<properties>
    <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
    <java.version>1.7</java.version>
</properties>

I'm using the JDK 1.8 on Mac OS X 10.9.4 Maverics: this version may support also the previous 1.7, as shown below:

Build path

Despite that, Eclipse gives me a warning:

Build path specifies execution environment JavaSE-1.7. There are no JREs installed in the workspace that are strictly compatible with this environment. 

Usually this warning could be resolved as described here, but in this case the procedure doesn't work (because the JRE 1.7 is already selected).

Perhaps, I should also install on my system a pure version of JDK 1.7, but the installer returns me an error as follows:

JDK Installer

Is there a way to resolve this issue?

Community
  • 1
  • 1
vdenotaris
  • 13,297
  • 26
  • 81
  • 132
  • Go and check the `Java compiler` settings of your project (right click, `Properties`). This could be a problem of level of compliance. – Dici Aug 29 '14 at 20:24
  • Also the Java compiler is set to work with `Java 1.7`. – vdenotaris Aug 29 '14 at 20:26
  • 3
    The only way would be to force an install of 7. The "strict" issue is because the Java 8 installation contains new APIs that are source-compatible with 7 but won't be present in a Java 7 JRE. – chrylis -cautiouslyoptimistic- Aug 29 '14 at 20:39

0 Answers0