我想为Windows x86 arch构建我的JavaFX应用程序.所以我下载了Adopt OpenJdk 32位版本并用它来创建Java Runtime Image.当我尝试运行应用程序时,我收到以下错误:
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)
Run Code Online (Sandbox Code Playgroud)
发生此错误是因为openjfx:javafx-graphics工件是平台相关的,它包括为64位arch编译的DLL.
$ 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
Run Code Online (Sandbox Code Playgroud)
Maven Central中没有32位OpenJFX版本.
有可能在某处获得x86版本吗?或者我如何自己构建它?
Liberica OpenJDK 12可用于32位Windows,并包含OpenJFX。据我所知,它是唯一公开可用的JDK,包括32位openjfx引用。https://bell-sw.com/pages/java-12
截至目前(2019年4月16日):
| 归档时间: |
|
| 查看次数: |
891 次 |
| 最近记录: |