英文:
Intelli J IDE do not recognize JavaFX SDK
问题
我尝试在IntelliJ IDE 2020.1中使用JavaFX项目。
根据IDE创建者的建议,我需要从这个网站下载JavaFX SDK。
在下载并解压JavaFX目录之后,应通过项目结构->平台设置->SDKs->添加JDK将SDK添加到SDK列表中。
无论是JavaFX 11还是JavaFX 15目录,以及它们的“lib”子目录都会出现错误对话框
“所选目录不是有效的JDK主目录”
有人下载过JavaFX SDK并以类似的方式将其添加到IntelliJ项目中吗?
有人知道IntelliJ识别目录为有效JDK的标准吗?
英文:
I try to use Intelli J IDE 2020.1 for JavaFX project.
According to IDE creator suggestion I have to download JavaFX SDK form this site.
After downloading and unzipping JavaFX directory, SDK should be added to SDK list via Project Structure->Platform Settings->SDKs->Add JDK.
Both JavaFX 11 and JavaFX 15 directories, as well and their "lib" subdirectories brings error dialog
"The Selected direcotry is not valid home for JDK"
Does anybody downloaded JavaFX SDK and added it to Intelli J project in the similar ways?
Does anybody knows what is a criteria for Intelli J to recognize directory as valid JDK?
答案1
得分: 1
JavaFX应该被添加为库,而不是作为SDK。
更详细的描述可以在这里找到。
英文:
Well JavaFX should be added as library and not as SDK.
More detailed description may be found here
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论