You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@kafka.apache.org by Shlomi Hazan <hz...@gmail.com> on 2014/09/04 14:25:22 UTC

build fails (with JDK8)

Hi,
While I am not sure that JDK8 is the problem, what I did is simply clone
and gardle the source.
I kept getting failures and excluding tasks until eventually I did this:

*gradle -PscalaVersion=2.9.2 -x :clients:javadoc -x :clients:signArchives
-x :clients:licenseTest -x :contrib:signArchives clean build*

and got this (tail):

...

*:contrib:test UP-TO-DATE*
*:contrib:check UP-TO-DATE*
*:contrib:build*
*:core:compileJava UP-TO-DATE*
*:core:compileScala*
*Java HotSpot(TM) 64-Bit Server VM warning: ignoring option
MaxPermSize=512m; support was removed in 8.0*
*error: error while loading CharSequence, class file
'/usr/java/jdk1.8.0_11/jre/lib/rt.jar(java/lang/CharSequence.class)' is
broken*
*(bad constant pool tag 15 at byte 1501)*
*error: error while loading AnnotatedElement, class file
'/usr/java/jdk1.8.0_11/jre/lib/rt.jar(java/lang/reflect/AnnotatedElement.class)'
is broken*
*(bad constant pool tag 15 at byte 2713)*
*error: error while loading Arrays, class file
'/usr/java/jdk1.8.0_11/jre/lib/rt.jar(java/util/Arrays.class)' is broken*
*(bad constant pool tag 15 at byte 12801)*
*error: error while loading Comparator, class file
'/usr/java/jdk1.8.0_11/jre/lib/rt.jar(java/util/Comparator.class)' is
broken*
*(bad constant pool tag 15 at byte 5003)*
*/tmp/sbt_7c18fddb/xsbt/ExtractAPI.scala:395: error: java.util.Comparator
does not take type parameters*
* private[this] val sortClasses = new Comparator[Symbol] {*
*                                            ^*
*5 errors found*
*:core:compileScala FAILED*

*FAILURE: Build failed with an exception.*

** What went wrong:*
*Execution failed for task ':core:compileScala'.*
*> org.gradle.messaging.remote.internal.PlaceholderException (no error
message)*

** Try:*
*Run with --stacktrace option to get the stack trace. Run with --info or
--debug option to get more log output.*

*BUILD FAILED*

*Total time: 12.969 secs*


It looks like now it wants me to give a JDK7 rt.jar....
Can't we all just get along? :(
and those poor tasks I excluded too...

-- 
Shlomi