Android Netbee
Android Netbee

Reputation: 21

Kotlin multiplatform build desktopApp failure

When I run the :desktopApp:packageDistributionForCurrentOS it fails.

Console log:

Task :desktopApp:createRuntimeImage FAILED External tool execution failed:

Standard output file: Error: --module-path is not specified and this runtime image does not contain jmods directory. Usage: jlink --module-path --add-modules [,...] Use --help for a list of possible options

Error log file is empty.

Kotlin: 1.8.20 Compose-multiplatform: 1.4.0 Gradle: 8.0

I tried to clean and rebuild the project but the problem still exists.

Upvotes: 2

Views: 378

Answers (1)

sciack
sciack

Reputation: 113

I have similar problem, I solved it changing Java distribution. I have the problem with OpenJDK from RedHat 17.0.7 (packaged with Fedora) and move to Eclipse Temurin release (17.0.8). Not sure if you still have the problem, but I leave this answer it for someone else has similar issue and maybe can help.

I know that you are on Windows, but maybe is a similar issue in jbr jdk version.

Upvotes: 3

Related Questions