https://kotlinlang.org logo
#announcements
Title
# announcements
v

vkkoshelev

07/01/2017, 7:41 PM
Hi guys! I'm trying to build kotlin on win10. I've set jdk paths in the following way: set JAVA_HOME=C:\Program Files\Java\jdk1.8.0_131 set JDK_16=C:\Program Files\Java\jdk1.6.0_45 set JDK_17=C:\Program Files\Java\jdk1.7.0_79 set JDK_18=C:\Program Files\Java\jdk1.8.0_131 However, I've got a compilation error: [kotlinc] Compiling [D:\kotlin\kotlin\compiler\cli\cli-runner\src] => [D:\kotlin\kotlin\dist\classes\runner] [kotlinc] error: no class roots are found in the JDK path: C:\Program Files\Java\jdk1.6.0_45 Can you give me a clue what's wrong with my JDK 1.6?
i

ilya.gorbunov

07/01/2017, 8:57 PM
vkkoshelev: Could it be that you have jre installed instead of jdk? Does it have
jre
and
lib
directories inside?
v

vkkoshelev

07/01/2017, 9:33 PM
it's definitely jdk. Currently i'm in the middle of kotlinc debugging. Hopefully I will find the cause soon 🙂
The issue is caused by leading whitespace in command 'set JDK_16=C:\Program Files\Java\jdk1.6.0_45 '.
3 Views