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

jfxNative problem with openJDK #146

Open
giloutho opened this issue Jul 17, 2019 · 9 comments
Open

jfxNative problem with openJDK #146

giloutho opened this issue Jul 17, 2019 · 9 comments

Comments

@giloutho
Copy link

I use this plugin for two years without problems with Oracle JDK (V 8). I want to swtich to openJDK (v8).

I began with Mac version no problems.

Under Windows, build felt with jfxNative : java.lang.NoSuchMethodError: com.oracle.tools.packager.windows.WinAppBundler.lambda$copyMSVCDLLs$261(Ljava/nio/file/Path;)Z

Application folder with executables is correct, the problem occured for the installer exe.

Any idea ?

@FibreFoX
Copy link
Owner

Did you install the OpenJFX-part too?

@giloutho
Copy link
Author

Yes... I forgot : in Application foler, the exe generated works perfectly. Error occured during installer generation.

It's not that serious, I can use Innosetup to produce the installer

@zapek
Copy link

zapek commented Jul 27, 2019

I have the same problem here but with the Oracle JDK (v8, 221)

@chaddaniels
Copy link

Same problem here using Oracle or Zulu 8u222.

@irn
Copy link

irn commented Nov 14, 2019

The same issue on Windows with Oracle Java 1.8 (231)

@Indigo6
Copy link

Indigo6 commented Nov 18, 2019

Windows Oracle Java 1.8 (231) too

@chaddaniels
Copy link

Not sure if this is the right way to work around this issue, but I wanted to share this just in case this helped anyone else. I added this and am no longer hitting the issue:

jfx {
   ...
   usePatchedJFXAntLib = false
   ...
}

@FibreFoX
Copy link
Owner

@chaddaniels that's a good explanation, on Windows there was some low-level binary-code patching required due to some bug, seems that they backported a lot of changes there :(

therefor: confirmed bug

@UgmaDevelopment
Copy link

Doing as @chaddaniels suggests worked for me, but make sure you stop your gradle daemon with something like gradlew --stop before trying again.

There's a note that appears, reminding you to, but you may have missed it (like I did). It reads,

Please restart gradle-daemon! Patched ant-javafx.jar is loaded, but you disabled to patch and use that file.

If you don't restart your daemon, you might get an error like this:

Execution failed for task ':jfxNative'.
> java.lang.NoSuchMethodError:

simonkelly1973 added a commit to mdpnp/mdpnp that referenced this issue May 6, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

7 participants