简体   繁体   English

IntelliJ IDEA 无法识别 JavaFX 库

[英]IntelliJ IDEA not recognizing JavaFX library

I am attempting to create a JavaFX project using IntelliJ IDEA.我正在尝试使用 IntelliJ IDEA 创建一个 JavaFX 项目。 The instructions for doing so appear here: Create a new JavaFX project .执行此操作的说明显示在此处:创建一个新的 JavaFX 项目 This issue is, I am encountering a popup that does not appear in the official instructions, and it is preventing me from using the library.这个问题是,我遇到了官方说明中没有出现的弹出窗口,它阻止了我使用该库。

This is the step I am having trouble with:这是我遇到问题的步骤:

在此处输入图像描述

However, when I select the lib folder, I see this popup before I am allowed to proceed and pick a module:然而,当我 select lib 文件夹时,我看到这个弹出窗口,然后我被允许继续并选择一个模块:

在此处输入图像描述

No matter which option I pick, the classes from that library are still not recognized in the program.无论我选择哪个选项,程序中仍然无法识别该库中的类。 What do I do?我该怎么办?

Edit: The lib folder is not empty, so that can't be the cause of the issue.编辑: lib 文件夹不为空,因此这不是问题的原因。

When you go to the lib folder select all.jar files and src.zip file then press ok.当您将 go 到 lib 文件夹 select all.jar 文件和 src.ZADCDBD79A8D84175C229 文件时You have to manually add all files in the lib folder.您必须手动添加 lib 文件夹中的所有文件。

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

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