That's a Breeze question, no? you should not need to compile Breeze yourself to compile Spark -- why do that?
That method indeed only exists in Java 7. But Breeze seems to target Java 6 as expected: https://github.com/scalanlp/breeze/blob/master/build.sbt#L59 I see this particular line of code was added after the last release: https://github.com/scalanlp/breeze/commit/ff46ddfa66f98b8c8b0ef5b65a6e7a9f86b5a5c4 So it's possible it's an issue lurking in Breeze of just the same form we just saw. It's worth opening an issue since, indeed, I would expect exactly the compile error you see with Java 6. But it should not stop you from building Spark. On Sun, Apr 6, 2014 at 5:00 PM, Debasish Das <debasish.da...@gmail.com> wrote: > Hi Koert, > > How do I specify that in sbt ? > > Is this the correct way ? > javacOptions ++= Seq("-target", "1.6", "-source","1.6") > > Breeze project for examples compiles fine with jdk7, fails with jdk6 and > the function it fails on: > > error] /home/debasish/github/breeze/ > src/main/scala/breeze/util/package.scala:200: value valueOf is not a member > of object java.util.BitSet > [error] java.util.BitSet.valueOf(bs.toBitMask) > > is not available in jdk6... > > http://docs.oracle.com/javase/6/docs/api/java/util/BitSet.html > > I have no clue how with target 1.6 solves the issue...are you saying jdk7 > will put a function that's closest to java.util.BitSet.valueOf ? > > Thanks. > Deb >