https://kotlinlang.org logo
#compose-desktop
Title
# compose-desktop
r

rob42

02/27/2024, 5:37 PM
Fresh project downloaded from the wizard doesn't "run" from the sidebar in IntelliJ. It shows as runnable, but the menu says "Nothing here" If I manually run the
:composeApp:desktopRun
task, it fails with
No main class specified and classpath is not an executable jar.
Manually running
:composeApp:run
does appear to work, but it's the hardest to find in the gradle panel. Any ideas what's going on? I worry that these kinds of issues will turn off people trying out compose desktop for the first time.
j

Jeff Lockhart

02/27/2024, 6:10 PM
run
is the Gradle task to run a JVM executable, which is what Compose Desktop is.
a

Alexander Maryanovsky

02/27/2024, 8:01 PM
“play” from the gutter should work too
Which project template did you download?
r

rob42

02/27/2024, 9:19 PM
@Alexander Maryanovsky I generated a template from https://kmp.jetbrains.com/ with Android and Desktop checked.
I generated a second template project with identical setttings and opened it later and it... worked. Both the gutter "run" and composeAppdesktopRun
a

Alexander Maryanovsky

02/27/2024, 9:21 PM
Strange. Maybe you didn’t wait for the gradle sync to finish the first time?
r

rob42

02/27/2024, 9:22 PM
Here's the one that still won't run
Gradle is definitely fully synced. This initial project I generated still won't run from the gutter. It's strange.
7 Views