Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
crowforkotlin opened this issue Nov 28, 2024 · 3 comments
Assignees

Comments

@crowforkotlin
Copy link

crowforkotlin commented Nov 28, 2024

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
Copy link
Collaborator

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
Copy link
Author

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 crowforkotlin reopened this Nov 29, 2024
@crowforkotlin
Copy link
Author

crowforkotlin commented Nov 29, 2024

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.

@crowforkotlin crowforkotlin changed the title Failed to check JDK distribution: 'jpackage' is missing Failed to check JDK distribution: 'jpackage' is missing on macos Nov 29, 2024
@crowforkotlin crowforkotlin changed the title Failed to check JDK distribution: 'jpackage' is missing on macos Using jbr on oacos and get error "Failed to check JDK distribution: 'jpackage' is missing" Nov 29, 2024
@crowforkotlin crowforkotlin changed the title Using jbr on oacos and get error "Failed to check JDK distribution: 'jpackage' is missing" Using jbr on macos and get error "Failed to check JDK distribution: 'jpackage' is missing" Nov 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants