I haven't used Intellij for a long time so this is...
# getting-started
a
I haven't used Intellij for a long time so this is a new configuration. I am setting up my Java and Gradle for the first time on this system, for this Ktor quickstart project.
s
for first run: find main method in your code, and clicks on run button on left side of that
a
Thank you! 🙂 I'm not seeing a run button on the left.
Also, I just noticed this error in the console: Could not initialize class org.codehaus.groovy.classgen.Verifier
Do I need to install Gradle myself? I thought the IDE took care of that when I selected a JDK. Maybe not.
k
Another newbie here, had a lot of wasted time in the beginning, found a setup that works pretty good: sdkman for managing dependencies (I install JDK and Gradle with it)
👍 1
Intellij supplies the Kotlin compiler, but if I didn't use Intellij I would install the compiler with sdkman also ...
a
Thank you! I will check it out.
k
I also had a problem with Gradle, but can't remember the error I was getting - but the problem I had an older version of Gradle and a newer, incompatible JDK... which was totally undecipherable from the error. Fixed by making sure everything is at the latest version, Gradle and the JDK Gradle uses...
just something to look out for...
a
Thank you so much, @Karlo Lozovina! That is helping very much. 🙂 I didn't realize my SDKs were messed up. Things seem to be going okay for now.
m
For your interest there is a dedicated #ktor channel where you can ask on the topic. As with the #kotest channel, project maintainers hang out there so you can get firsthand answers.
👍 1
a
Thanks very much, @Matteo Mirk! 🙂
😉 1