Hi all, I'm following the steps outlined here: <ht...
# ktor
v
Hi all, I'm following the steps outlined here: https://ktor.io/servers/engine.html#running-the-application-from-inside-the-ide, but when I create my run configuration it still throws an error:
Error: Could not find or load main class io.ktor.server.netty.DevelopmentEngine
d
I would follow either use the project generator or download the ktor plugin for IntelliJ to generate a valid project and start from there: - https://ktor.io/quickstart/generator.html - https://ktor.io/quickstart/quickstart/intellij-idea/plugin.html Maybe your issue is related to a missing netty dependency, or a wrong main. But try to create a project with any of the tools try the generated project, and if it works, compare the code with your other project to see the differences
v
Thanks I'll try the generator, sounds like the best approach 🙂
👍 1
m
I made a demo project that does this (among other things) to help people get started: https://bitbucket.org/marshallpierce/ktor-demo/src/master/
👍 2
v
It did not work either, I had the plugin to generate the project. Once again the fat jar works fine but creating the run configuration I get the same error as class not found