Skip to content

Setting jpackageHome no longer working #164

Open

Description

@danielpeintner

Hi,

I am trying to use a different JDK on MacOS for the jpackage commands compared to the JDK used for the app itself.
Therefore, there is the option jpackageHome (see https://badass-runtime-plugin.beryx.org/releases/latest/#_jpackage)

I am pretty sure I used it already in the past but I no longer manage to get it working.

I tried several things

jpackageHome = '/Library/Java/JavaVirtualMachines/jdk-21.jdk/Contents/Home'
jpackageHome = '/usr/libexec/java_home -v 21'
jpackageHome = '$(/usr/libexec/java_home -v 21)'

Am I using the right syntax or is there anything else I need to do?

I also tried to set via the console

export BADASS_RUNTIME_JPACKAGE_HOME=/usr/libexec/java_home -v 21``

Anyhow, it still picks the default JDK I am starting gradle with.

Is this option still working?

Note: I am using the latest version of the plugin.

id 'org.beryx.runtime' version '2.0.0'

Thank you for any advice. Thanks!

Activity

  1. danielpeintner commented on Nov 21, 2025

    @danielpeintner
    Author

    FYI: the issue exists on Windows (and I think in general) also

    I looked up some older versions (e.g., v1.12.4) of the code (which have getJPackageHomeOrDefault() or getDefaultJPackageHome())

    or

    which seem to be completely missing in recent versions
    see https://github.com/beryx/badass-runtime-plugin/blob/master/src/main/groovy/org/beryx/runtime/data/JPackageData.groovy

    I would like to provide a fix, but my knowledge is very limited with that regard...

    Note: I think it is useful to have support for setting other jpackage versions.
    The reason is rather simple, jpackage from JDK25 seems to have some issues/problems, and it is still good to have Java25 for the application, but use for example JDK21 for building the package.

  2. changed the title [-]jpackageHome still working on macOS?[/-] [+]Setting jpackageHome no longer working[/+] on Nov 21, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions