I would like to build my JavaFX app for Windows x86 arch. So I've downloaded Adopt OpenJdk 32-bit build and used it to create Java Runtime Image. When I'm trying to run application I get the following error:
Loading library api-ms-win-core-console-l1-1-0 from resource failed: java.lang.UnsatisfiedLinkError: C:\Users\admin01\.openjfx\cache\11.0.1\api-ms-win-core-console-l1-1-0.dll: Can't load AMD 64-bit .dll on a IA 32-bit platform
java.lang.UnsatisfiedLinkError: C:\Users\admin01\.openjfx\cache\11.0.1\api-ms-win-core-console-l1-1-0.dll: Can't load AMD 64-bit .dll on a IA 32-bit platform
at java.base/java.lang.ClassLoader$NativeLibrary.load0(Native Method)
This error occurs because openjfx:javafx-graphics
artifact is platform dependent and it includes DLLs compiled for 64-bit arch.
$ file api-ms-win-core-console-l1-1-0.dll
api-ms-win-core-console-l1-1-0.dll: PE32+ executable (DLL) (console) x86-64, for MS Windows
There is no 32-bit OpenJFX version in Maven Central.
Is it possible to get x86 version somewhere? Or how can I build it by myself?
Oracle wrote in its Client Support Roadmap that JavaFX new fixes will continue to be supported on Java SE 8 through March 2025.
JavaFX, also known as OpenJFX, is free software; licensed under the GPL with the class path exception, just like the OpenJDK.
In Java 11, JavaFX was removed from the SDK. It is now in its own separate module, and if you want to use it in your application you will need to specifically include it.
The fact that we can release JavaFX 17 today is a huge victory for the developer community. JavaFX is really driven by this community. Technical contributions from Gluon, Oracle and a growing number of individuals and companies are discussed in an open way in the OpenJFX project at GitHub.
Liberica OpenJDK 12 is available for 32-bit Windows and includes OpenJFX. As far as I know it's the only publicly available JDK including 32bit openjfx ref. https://bell-sw.com/pages/java-12
As of right now (April 16th 2019):
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With