Does kotlin REPL work for the JDK 9+?
# android
e
Does kotlin REPL work for the JDK 9+?
t
Copy code
Welcome to Kotlin version 1.5.10 (JRE 11.0.11+9)
Type :help for help, :quit for quit
>>> val foo = "yep"
>>> println("Does it work? $foo")
Does it work? yep
>>>
👍 1
e
What JDK do you use?
t
In that example I was running JDK 11.0.11+9. These are the ones on my box right now. 11 is my default now for work, but I use 16 whenever possible
Copy code
|     | 16.0.0.j9    | adpt    | installed  | 16.0.0.j9-adpt
               | >>> | 11.0.11.j9   | adpt    | installed  | 11.0.11.j9-adpt
               |     | 8.0.292.j9   | adpt    | installed  | 8.0.292.j9-adpt
 GraalVM       |     | 21.1.0.r16   | grl     | installed  | 21.1.0.r16-grl
Recommend sdkman if you are on a mac/linux to manage them