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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

"Two versions of module javafx.base found" error fix for "gradle jlink" cmd #1

Open
Adito5393 opened this issue Jul 21, 2021 · 0 comments

Comments

@Adito5393
Copy link

Thanks for sharing this awesome tool! 馃憤

I had encountered the following error trying to build the image:

11:22:50: Executing task 'jlink'...

Error: Two versions of module javafx.base found in ...\ikonfx\build\jlinkbase\jlinkjars (javafx-base-14.0.1-win.jar and javafx-base-14.0.1-linux.jar)

Following this recommendation, I could fix the error by modifing the build.gradle file, inside the dependencies code block:

// Get rid of this
// compile group: 'org.controlsfx', name: 'controlsfx', version: '11.0.2'

// Use this instead
implementation('org.controlsfx:controlsfx:11.0.2') {
    exclude group: 'org.openjfx'
}

Feel free to test it and maybe make the change for future users.

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

1 participant