You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Josh Rosen (JIRA)" <ji...@apache.org> on 2015/04/30 20:43:07 UTC
[jira] [Reopened] (SPARK-1437) Jenkins should build with Java 6
[ https://issues.apache.org/jira/browse/SPARK-1437?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Josh Rosen reopened SPARK-1437:
-------------------------------
Assignee: (was: Patrick Wendell)
Re-opening this, since it's now relevant for Project Tungsten (we hit a Java 6 build break due to a sun.misc.Unsafe API that wasn't present in that version of Java).
> Jenkins should build with Java 6
> --------------------------------
>
> Key: SPARK-1437
> URL: https://issues.apache.org/jira/browse/SPARK-1437
> Project: Spark
> Issue Type: Bug
> Components: Build
> Affects Versions: 0.9.0
> Reporter: Sean Owen
> Priority: Minor
> Labels: javac, jenkins
> Attachments: Screen Shot 2014-04-07 at 22.53.56.png
>
>
> Apologies if this was already on someone's to-do list, but I wanted to track this, as it bit two commits in the last few weeks.
> Spark is intended to work with Java 6, and so compiles with source/target 1.6. Java 7 can correctly enforce Java 6 language rules and emit Java 6 bytecode. However, unless otherwise configured with -bootclasspath, javac will use its own (Java 7) library classes. This means code that uses classes in Java 7 will be allowed to compile, but the result will fail when run on Java 6.
> This is why you get warnings like ...
> Using /usr/java/jdk1.7.0_51 as default JAVA_HOME.
> ...
> [warn] warning: [options] bootstrap class path not set in conjunction with -source 1.6
> The solution is just to tell Jenkins to use Java 6. This may be stating the obvious, but it should just be a setting under "Configure" for SparkPullRequestBuilder. In our Jenkinses, JDK 6/7/8 are set up; if it's not an option already I'm guessing it's not too hard to get Java 6 configured on the Amplab machines.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org