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.36k stars 200 forks source link

Using jbr on macos and get error "Failed to check JDK distribution: 'jpackage' is missing" #477

Open crowforkotlin opened 3 days ago

crowforkotlin commented 3 days ago

I use jewel in my project, which requires jbrsdk+jcef but I see that jbr doesn't have jpackage, so when I use ./gradlew packageDmg, I get an error!

image

Is there a way around this?

Jewel must be run with jbr, but jbr does not have jpackage. I cannot package it on Mac. If I force the packaged product, it will not run.

vprovodin commented 3 days ago

Indeed jbr_jcef, that is integrated into IDEs distributions, does not have jpackage. jbr_jcef is used as a runtime to launch IDEs. So most components required for developing was removed to keep distribution size as small as possible. You should use jbrsdk_jcef (or any other JDK) that can be downloaded via Download JDK.

Screenshot 2024-11-29 at 02 31 25

It should be specified as Gradle JDK

crowforkotlin commented 3 days ago

Indeed jbr_jcef, that is integrated into IDEs distributions, does not have jpackage. jbr_jcef is used as a runtime to launch IDEs. So most components required for developing was removed to keep distribution size as small as possible. You should use jbrsdk_jcef (or any other JDK) that can be downloaded via Download JDK. Screenshot 2024-11-29 at 02 31 25 It should be specified as Gradle JDK

OK, I asked the author in jewel, if that's the case then there is no way to solve it, this issue is closed, I will try to solve it, thank you

crowforkotlin commented 3 days ago

Indeed jbr_jcef, that is integrated into IDEs distributions, does not have jpackage. jbr_jcef is used as a runtime to launch IDEs. So most components required for developing was removed to keep distribution size as small as possible. You should use jbrsdk_jcef (or any other JDK) that can be downloaded via Download JDK. Screenshot 2024-11-29 at 02 31 25 It should be specified as Gradle JDK

But why does JBR on Windows and Linux kernal system have jpackage? But jpackage does not exist on Mac? This results in the desktop product of the project using Jetbrains Jewel only running on Windows and Linux kernal system, but cannot be packaged on Mac. If you force it to be packaged and run with other JDK, it will crash.