简体   繁体   English

尝试编译测试 javafx 应用程序时出错

[英]error when trying to compile test javafx application

I am currently looking for a GUI framework that is both modern and has a decent webviewer.我目前正在寻找一个既现代又具有不错的 webviewer 的 GUI 框架。 When I was lookig, I found the JavaFX Framework.当我在lookig时,我发现了JavaFX框架。 As of JDK11 it is the case that JavaFX is not delievered with the JDK anymore, so I installed the.jar manually.从JDK11开始,JavaFX不再随JDK一起交付,所以我手动安装了.jar。 I also kept in mind to edit the VM options as suggested in the IntelliJ tutorial.我还记得按照 IntelliJ 教程中的建议编辑 VM 选项。 VM options Now, I should be ready to compile, but I still get the following error message. VM 选项现在,我应该可以编译了,但我仍然收到以下错误消息。 Does anyone know why this error message is showing?有谁知道为什么显示此错误消息? If it is because I am using OpenJDK 11, is there any option to get a JavaFX version that is compatible with OpenJDK11?如果是因为我使用的是 OpenJDK 11,是否有任何选项可以获得与 OpenJDK11 兼容的 JavaFX 版本? (I am not allowed to upgrade) error message (我不允许升级)错误信息

whitin yout installation of JavaFX is a folder called bin.您安装的 JavaFX 是一个名为 bin 的文件夹。 it has some dll files needed in your JavaFX project.它有一些 JavaFX 项目所需的 dll 文件。 If you just added the jars into the classpath of your project without changing their locations it should find the dlls automatically.如果您只是将 jars 添加到项目的类路径中而不更改它们的位置,它应该会自动找到 dll。

another way to work this out is to copy those dlls and paste them into the bin folder in your jdk installation另一种解决方法是复制这些 dll 并将它们粘贴到 jdk 安装中的 bin 文件夹中

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM