Hello, I just started with the compose multiplatfo...
# multiplatform
b
Hello, I just started with the compose multiplatform. Im trying to build a desktop application. When I run the project from the IDE everything works fine but if I build executable and runing it after install i get a popup saying "failed to launch JVM". I assume its something with my gradle config. gradle.properties. Anyone else has the same problem?
Copy code
org.gradle.jvmargs=-Xmx2048m -Dfile.encoding=UTF-8
kotlin.code.style=official
kotlin.version=1.9.20
compose.version=1.5.11
import org.jetbrains.compose.desktop.application.dsl.TargetFormat


plugins {
    kotlin("jvm")
    id("org.jetbrains.compose")
    kotlin("plugin.serialization") version "1.9.21"
    id("app.cash.sqldelight") version "2.0.0"
}

group = "com.bgdev"
version = "1.0-SNAPSHOT"

repositories {
    mavenCentral()
    maven("<https://maven.pkg.jetbrains.space/public/p/compose/dev>")
    google()
}

sqldelight {
    databases {
        create("Database") {
            packageName.set("com.bgdev.database")
        }
    }
}

dependencies {
    // Note, if you develop a library, you should use compose.desktop.common.
    // compose.desktop.currentOs should be used in launcher-sourceSet
    // (in a separate module for demo project and in testMain).
    // With compose.desktop.common you will also lose @Preview functionality
    implementation(compose.desktop.currentOs)
    implementation("com.google.code.gson:gson:2.8.8") // Use the latest version of Gson
    implementation("org.jsoup:jsoup:1.14.3")
    implementation("app.cash.sqldelight:sqlite-driver:2.0.0")
    implementation("org.jetbrains.kotlinx:kotlinx-serialization-json:1.6.0")
}

compose.desktop {
    application {
        mainClass = "MainKt"
        nativeDistributions {
            targetFormats(TargetFormat.Msi)
            packageName = "demoapp"
            packageVersion = "1.0.0"
        }
    }
}
Copy code
pluginManagement {
    repositories {
        gradlePluginPortal()
        maven("<https://maven.pkg.jetbrains.space/public/p/compose/dev>")
    }

    plugins {
        kotlin("jvm").version(extra["kotlin.version"] as String)
        id("org.jetbrains.compose").version(extra["compose.version"] as String)
    }
}

rootProject.name = "composedesktopdemo"
p
You have a global JVM install in your computer. You can search for the specific error in the GitHub repo issues section. To see if someone already went through it: https://github.com/JetBrains/compose-multiplatform