Details
-
Task
-
Status: Resolved
-
Minor
-
Resolution: Fixed
-
Slider 0.70
-
None
-
None
-
Slider Feb #1
Description
Java 7 is needed to build develop branch.
With Java 6, you would get:
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.1:compile (default-compile) on project slider-core: Compilation failure: Compilation failure: [ERROR] /home/jenkins/jenkins-slave/workspace/Slider-develop/slider-core/src/main/java/org/apache/slider/client/SliderClient.java:[177,8] 1. ERROR in /home/jenkins/jenkins-slave/workspace/Slider-develop/slider-core/src/main/java/org/apache/slider/client/SliderClient.java (at line 177) [ERROR] import java.nio.file.Files; [ERROR] ^^^^^^^^^^^^^ [ERROR] The import java.nio.file cannot be resolved [ERROR] [ERROR] /home/jenkins/jenkins-slave/workspace/Slider-develop/slider-core/src/main/java/org/apache/slider/client/SliderClient.java:[916,18] 2. ERROR in /home/jenkins/jenkins-slave/workspace/Slider-develop/slider-core/src/main/java/org/apache/slider/client/SliderClient.java (at line 916) [ERROR] byte[] encoded = Files.readAllBytes(clientInfo.clientConfig.toPath()); [ERROR] ^^^^^ [ERROR] Files cannot be resolved [ERROR] [ERROR] /home/jenkins/jenkins-slave/workspace/Slider-develop/slider-core/src/main/java/org/apache/slider/client/SliderClient.java:[916,61] 3. ERROR in /home/jenkins/jenkins-slave/workspace/Slider-develop/slider-core/src/main/java/org/apache/slider/client/SliderClient.java (at line 916) [ERROR] byte[] encoded = Files.readAllBytes(clientInfo.clientConfig.toPath()); [ERROR] ^^^^^^ [ERROR] The method toPath() is undefined for the type File
Enforce JDK7 as minimum JDK version.
Attachments
Issue Links
- is duplicated by
-
SLIDER-798 Change build to Java 7 language
- Resolved