OpenJFX对32位系统的支持 [英] OpenJFX support for 32-bit systems

查看:166
本文介绍了OpenJFX对32位系统的支持的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想为Windows x86 arch构建JavaFX应用程序.因此,我已经下载了Adopt OpenJdk 32位版本,并用它来创建Java Runtime Image.当我尝试运行应用程序时,出现以下错误:

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)

发生此错误是因为openjfx:javafx-graphics工件依赖于平台,并且其中包含为64位arch编译的DLL.

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

Maven Central中没有32位OpenJFX版本.

是否可以在某处获得x86版本?或者我该如何自己构建它?

Is it possible to get x86 version somewhere? Or how can I build it by myself?

推荐答案

Liberica OpenJDK 12可用于32位Windows,其中包括OpenJFX.据我所知,它是唯一公开可用的JDK,包括32位openjfx引用. https://bell-sw.com/pages/java-12

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

截至目前(2019年4月16日):

As of right now (April 16th 2019):

  • Zulu OpenJDK 不适用于32位Windows,也从未收到对32位请求的任何答复
  • Amazon Corretto 仅适用于Java 8加上不完整的Javafx(缺少Webkit库)
  • Zulu OpenJDK not available publicly for 32bit windows plus never got any reply on requests for 32bit
  • Amazon Corretto available for Java 8 only plus not full Javafx (missing webkit libs)

这篇关于OpenJFX对32位系统的支持的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆