Cannot build GroovyFX under Java 8 due to org.gradle.api.GradleException: Could not load class

I’ve posted the exact steps to reproduce this issue here:

https://gist.github.com/timyates/e8bced71258034b394c4

Basically, I’m not even 100% sure this is a Gradle issue, but as it’s a Gradle exception (and looks like it’s the bundled asm lib failing to load a Java 8 class), I thought this was a good place to start

Hope it makes sense

Cheers,

Tim

Java 8 requires ASM 5, which is currently in alpha. You may want to run with Java 7 and only compile against 8. Right now, the only way to achieve this is to set ‘compileJava.options.forkOptions.executable’.

Cool, thanks Peter :slight_smile:

Just tried, and you can build the jdk8 branch of groovyfx with java 7, and then it works under java 8 :slight_smile:

Thanks again!