The version required to build may change over time, but it is declared in the pom.xml build configuration, and helpfully checked and enforced by the maven-enforcer-plugin which will print a message and abort the build if the requirements aren't met when you try to build. Currently, 1.8 is the minimum required for both the 1.9 branch and the master branch.
In theory, any 1.8 version should work. We don't specify anything more specific than 1.8. However, there's nothing we can do about a broken installation or a buggy version of 1.8 that is later patched to fix a version that doesn't comply with the 1.8 java specifications. We also don't do anything to require OpenJDK, Oracle JDK, IBM JDK, or any other version. If updating your software fixed the issue for you, the best I can suggest is to keep your build environment up-to-date to avoid bugs in your build tools. On Sat, Apr 27, 2019 at 8:52 AM d resnik <[email protected]> wrote: > > Jeff, > That worked, thanks. > Should the developer docs list the minimum java version required to build the > accumulo version? > Don > On Friday, April 26, 2019, 5:41:27 AM EDT, d resnik > <[email protected]> wrote: > > I am trying to build accumulo 2.0 (master) to work on a ticket, but I keep > getting this error: > > [ERROR] Failed to execute goal > org.apache.maven.plugins:maven-compiler-plugin:3.7.0:compile > (default-compile) on project accumulo-core: Compilation failure: Compilation > failure: > > [ERROR] > /Users/VandelayMacBookAir/git/accumulo/core/src/main/java/org/apache/accumulo/core/metadata/schema/TabletMetadata.java:[352,62] > incompatible types: ? super > java.util.Iterator<java.util.Map.Entry<org.apache.accumulo.core.data.Key,org.apache.accumulo.core.data.Value>> > cannot be converted to > java.util.Iterator<java.util.Map.Entry<org.apache.accumulo.core.data.Key,org.apache.accumulo.core.data.Value>> > > [ERROR] > /Users/VandelayMacBookAir/git/accumulo/core/src/main/java/org/apache/accumulo/core/metadata/schema/TabletMetadata.java:[352,35] > incompatible types: bad return type in lambda expression > > [ERROR] cannot infer type-variable(s) F,T > [ERROR] (argument mismatch; incompatible parameter types in lambda > expression) > Here is my java version > > java version "1.8.0_31" > > Java(TM) SE Runtime Environment (build 1.8.0_31-b13) > Java HotSpot(TM) 64-Bit Server VM (build 25.31-b07, mixed mode) > I can't find anything in the accumulo docs about the java version required, > please let me know if I need to upgrade java to build. > Thanks, > Don Resnik
