gpt4 book ai didi

Java FX 示例在 NetBeans 中打开时抛出错误

转载 作者:行者123 更新时间:2023-11-30 11:22:05 24 4
gpt4 key购买 nike

我完全按照以下标题下的以下文档中提到的步骤操作:

How Do I Run a Sample in an IDE?

但是,在 Netbeans 7.4 中,我收到以下错误:

   ant -f C:\\Users\\akhare\\Desktop\\javafx_samples-2_2_51-windows\\javafx-samples-2.2.51\\src\\Ensemble jfxsa-run
C:\Users\akhare\Desktop\javafx_samples-2_2_51-windows\javafx-samples-2.2.51\src\Ensemble\nbproject\build-impl.xml:88: The J2SE Platform is not correctly set up.
Your active platform is: default_platform, but the corresponding property "platforms.default_platform.home" is not found in the project's properties files.
Either open the project in the IDE and setup the Platform with the same name or add it manually.
For example like this:
ant -Duser.properties.file=<path_to_property_file> jar (where you put the property "platforms.default_platform.home" in a .properties file)
or ant -Dplatforms.default_platform.home=<path_to_JDK_home> jar (where no properties file is used)
BUILD FAILED (total time: 0 seconds)

不确定为什么会出现上述错误。请指教。谢谢

最佳答案

根据解决方案here ,这解决了我的问题,您需要转到项目属性并将 java 平台JDK xxx(default) 更改为 JDK xxx

关于Java FX 示例在 NetBeans 中打开时抛出错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/21947803/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com