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

application fails to start if an old java 8 installation is on the path #940

Open
kristofdho opened this issue May 27, 2021 · 1 comment
Labels
bug Something isn't working

Comments

@kristofdho
Copy link
Contributor

Starting from GraalVM 21.1.0 the java.library.path property is initialized using the PATH variable. This causes the application to fail to start if there is a java 8 jre on the path, more specifically the glass.dll library of the jre. If I remove only this dll, or remove the jre from the path, everything seems to work as expected.
In my case it is jre1.8.0_271 but I'm sure others will act the same.

Expected Behavior

Application should run as expected, ignoring java 8 dlls

Current Behavior

when starting the exe:
image

Steps to Reproduce

put a java 8 installation on the path, or copy glass.dll from that installation next to the executable.

Your Environment

  • Windows 10
  • GraalVM 21.1.0
  • client maven plugin 0.1.41 -> substrate 0.0.39
@kristofdho kristofdho added the bug Something isn't working label May 27, 2021
@jperedadnr
Copy link
Contributor

This is a known issue for any JavaFX app: https://bugs.openjdk.java.net/browse/JDK-8223746

Scene Builder has recently added a workaround to avoid it: https://github.com/gluonhq/scenebuilder/pull/358/files, which effectively overrides java.library.path for the application, or see https://openjfx.io/openjfx-docs/#IDE-Eclipse warning about using a dummy path.

Is this an option for you?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants