This message was deleted.
# gradle
s
This message was deleted.
o
It seems like you're building with a JRE
not sure why compiling regular java wouldn't work, but if you're only compiling kotlin you don't need the JDK i think
yes, that's what I mean
tools.jar
is included with the JDK only
c
But I'm using JDK
o
can you do
java -version
,
javac -version
, and
echo $JAVA_HOME
?
...or actually, just
./gradlew --version
output will be good
c
Tells me I'm using Java 10
o
I want to see the actual output
c
Copy code
Groovy:       2.4.12
Ant:          Apache Ant(TM) version 1.9.9 compiled on February 2 2017
JVM:          10 ("Oracle Corporation" 10+46)
OS:           Mac OS X 10.13.4 x86_64
For
./gradlew --version
o
what does
echo $JAVA_HOME
look like?
c
Doesn't print anything 😕
o
hmm, okay
does
javac -version
work for you?
c
Yeah, it prints
javac 10
o
idk then
my advice is to set JAVA_HOME to point to your JDK
just in case Gradle / kapt is getting confused
c
Let me try that now. Thanks simple smile
Thanks! That worked. I set my java home to use Java 8, and it worked. Why isn't Java 10 working?
o
presumably Gradle is picking up on a JRE instead of JDK -- perhaps
java
comes from a JRE
g
It's not a Gradle problem. Kapt just doesn't support Java 10+
Should be fixed in 1.3.20 (you can try EAP)
o
oh, interesting -- I swear I've used it with JDK 11...