albrechtroehm
01/29/2024, 8:12 AMCaused by: java.lang.ClassNotFoundException: java.lang.management.ManagementFactory
when running runDistributable
and maybe know how i can include it? Using temurin-jdk-17 and the gitlive firebase-sdk which seems to use the ManagmentFactory to replace some android dependencies. runRelease
works fine but something is probably not bundled correctlyalbrechtroehm
01/29/2024, 10:44 AMincludeAllModules = true
in the nativeDistribution block fixed this for me.
compose.desktop {
application {
mainClass = "com.example.desktop.MainKt"
javaHome = System.getenv("JAVA_HOME")
nativeDistributions {
targetFormats(TargetFormat.Dmg, TargetFormat.Msi, TargetFormat.Deb)
includeAllModules = true // <--
packageName = "ExampleDesktop"
packageVersion = "1.0.0"
}
}
}
mithun se
12/28/2024, 1:56 PMcompose.desktop {
application {
mainClass = "com.example.utils.myapp.MainKt"
nativeDistributions {
targetFormats(TargetFormat.Dmg, TargetFormat.Msi, TargetFormat.Deb)
packageName = "MyApp"
packageVersion = "1.0.0"
includeAllModules = true
windows{
menuGroup = "MyApp"
shortcut =true
menu = true
}
}
}
}
Umid Olimzhanov
05/07/2025, 4:59 AMnativeDistributions {
modules("java.management") // this module contains missing ManagementFactory
}