https://kotlinlang.org logo
#ktor
Title
# ktor
r

rapho

05/31/2019, 11:27 AM
Hey, how can I install a feature if my main class is not of type io.ktor.application? I'm using Java 9.
c

cy

05/31/2019, 11:28 AM
In ktor you don't need to implement any inerfaces
r

rapho

05/31/2019, 11:34 AM
Thanks for the quick reply. Unfortunately I cannot use the configuration, as I'm getting this problem: https://github.com/ktorio/ktor/issues/342
c

cy

05/31/2019, 11:34 AM
Why do you need java 9 modules?
Or you see it just from IDEA?
r

rapho

05/31/2019, 11:46 AM
I have only jdk 9 installed. Yeah its just from IDEA. With gradle it works. But then I cannot use debugger I guess. I saw its already discussed here: https://kotlinlang.slack.com/archives/C0A974TJ9/p1543177721463900
Thanks for you help, looks like I have to wait for IDEA update. 👍
I've downgraded to jdk8 and it works with that version.
m

mp

05/31/2019, 2:47 PM
See https://bitbucket.org/marshallpierce/ktor-demo/src for a way to use ktor without ktor’s config.
r

rapho

05/31/2019, 4:04 PM
Interesting, thanks man 👍