I get: ```org.gradle.api.GradleScriptException: A ...
# arrow-contributors
m
I get:
Copy code
org.gradle.api.GradleScriptException: A problem occurred evaluating project ':arrow-meta'.
	at org.gradle.groovy.scripts.internal.DefaultScriptRunnerFactory$ScriptRunnerImpl.run(DefaultScriptRunnerFactory.java:93)
	at org.gradle.configuration.DefaultScriptPluginFactory$ScriptPluginImpl$2.run(DefaultScriptPluginFactory.java:237)
	at org.gradle.configuration.ProjectScriptTarget.addConfiguration(ProjectScriptTarget.java:77)
[...]
	at org.gradle.internal.concurrent.ManagedExecutorImpl$1.run(ManagedExecutorImpl.java:48)
	at org.gradle.internal.concurrent.ThreadFactoryImpl$ManagedThreadRunnable.run(ThreadFactoryImpl.java:56)
Caused by: org.gradle.api.GradleException: tools.jar not found at your JAVA_HOME dir /usr/lib/jvm/java-11-openjdk-amd64.
Building with a JRE or JDK9 is currently not supported
Maybe tools.jar is no more used and it is a bad check to have?:
Copy code
def toolsJar = Jvm.current().getToolsJar()

    if (!toolsJar)
        throw new GradleException("tools.jar not found at your JAVA_HOME dir ${Jvm.current().getJavaHome().getAbsolutePath()}.\n" +
                "Building with a JRE or JDK9 is currently not supported.")
r
Hi @Marius Kotsbak 🙌 Please, try it with JDK8 instead of JDK11
m
Probably works, but shouldn't it support newer than JDK 8?
p
Kotlin doesn’t atm
🙄 1
I can't get it to use JDK 8 either, as it detects and choses 11 during import from Gradle in IntelliJ, which fails. How do you do it?
p
“tools.jar not found at your JAVA_HOME dir ${Jvm.current().getJavaHome().getAbsolutePath()
point your JAVA_HOME to it
m
Hmm maybe that works before starting IntelliJ. Looks like I can bootstrap by commenting out those lines.