Hi everyone, I tried to use `<http://kotlin.io|ko...
# getting-started
e
Hi everyone, I tried to use 
<http://kotlin.io|kotlin.io>.path.createTempDirectory()
 to create temporary directory on my kotlinc 1.4.31 but failed on Windows, WSL2 and Mac. In the Kotlin playground web,  the code raises `SecurityException`(which is correct) but all my systems (including kotlinc and intelliJ IDEA) cannot resolve the package 
kotlin.io.path
 . Is there anything I need to do to use the 
kotlin.io.path
 package?
e
are you targeting jvm 8? (should be the default now, https://kotlinlang.org/docs/whatsnew15.html#new-default-jvm-target-1-8 but checking just in case)
e
I'm using JVM 16. Anyway, I found the reason. The extensions are available in the 
kotlin-stdlib-jdk7
 module. So I need to put the jar file to the classpath or add the dependency to
kotlin-stdlib-jdk7
or `kotlin-stdlib-jdk8`(which transitively depends on the
kotlin-stdlib-jdk7
).
e
the jdk used to compile does not have to match the compilation target jvm
Kotlin plugin should be automatically adding stdlib-jdk7/-jdk8 based on the target, so it still sounds like something is going wrong with your setup. any public repro?