Has anyone ever had this issue when running `./gra...
# server
l
Has anyone ever had this issue when running
./gradlew run
? (Kotlin + JVM 1.8)
Copy code
Tables.java:12: error: package javax.annotation is not visible
import javax.annotation.Generated;
            ^
  (package javax.annotation is declared in module java.xml.ws.annotation, which is not in the module graph)
e
are you sure that you running build at jvm 1.8? this exceptions raise on 1.9
☝️ 1
l
Whooooops!
My default Java binary was set to the wrong one
Thanks for the hint
Any plans to support Java 10 soon by any chance?
m
Kotlin on java 10 works fine for me FWIW.
Shove this into your
gradle.properties
and you’re off to the races.
Copy code
org.gradle.jvmargs=--add-modules java.xml.bind
(Adjust modules as needed for your project)
a
@mp Do you build on 8 and run on 10?
m
Nope, just 10.
a
I'm using Gradle 4.9 and putting the config in gradle.properties of project root seems to ignore it. My project has only Kotlin code.