JetBrains / JetBrainsRuntime

Runtime environment based on OpenJDK for running IntelliJ Platform-based products on Windows, macOS, and Linux
GNU General Public License v2.0
1.28k stars 193 forks source link

'jlink', 'jpackage' are missing for packaging a Compose Desktop app #256

Closed thagikura closed 9 months ago

thagikura commented 9 months ago

I couldn't package a Compose desktop app with the JBR saying

Execution failed for task ':desktopApp:checkRuntime'.
> Failed to check JDK distribution: 'jlink', 'jpackage' are missing
JDK distribution path: <JBR_install_path>

Is it intended or is it an issue?

I tried following steps

$ export JAVA_HOME=<path_to_JBR>
$ git clone https://github.com/JetBrains/compose-multiplatform
$ cd compose-multiplatform/examples/widgets-gallery
$ ./gradlew :desktop:packageDistributionForCurrentOS

The JBR I used was https://github.com/JetBrains/JetBrainsRuntime/releases/tag/jbr-release-17.0.9b1087.3

thagikura commented 9 months ago

I may have downloaded a wrong JBR. Sorry about that

zhendong008 commented 1 month ago

Which JBR did you use in the end?