-
| 
         Hey i'm struggling a bit with the following issue. When i try to run   | 
  
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 1 reply
-
| 
         In case someone else looks for this. Add the  compose.desktop {
    application {
        mainClass = "com.example.desktop.MainKt"
        javaHome = System.getenv("JAVA_HOME")
        nativeDistributions {
            targetFormats(TargetFormat.Dmg, TargetFormat.Msi, TargetFormat.Deb)
            modules("java.management", "java.sql", "jdk.unsupported") // or includeAllModules = true  // <--
            packageName = "ExampleDesktop"
            packageVersion = "1.0.0"
        }
    }
}
 | 
  
Beta Was this translation helpful? Give feedback.
-
| 
        
 You should be able to just add the Java Management Extensions (JMX) module  | 
  
Beta Was this translation helpful? Give feedback.
-
| 
         
  | 
  
Beta Was this translation helpful? Give feedback.
In case someone else looks for this. Add the
includeAllModules = trueflag fixes this issue.compose.desktop { application { mainClass = "com.example.desktop.MainKt" javaHome = System.getenv("JAVA_HOME") nativeDistributions { targetFormats(TargetFormat.Dmg, TargetFormat.Msi, TargetFormat.Deb) modules("java.management", "java.sql", "jdk.unsupported") // or includeAllModules = true // <-- packageName = "ExampleDesktop" packageVersion = "1.0.0" } } }