Я получаю эту ошибку при запуске моей программы в NetBeans.Платформа J2SE настроена некорректно (NetBeans IDE 8.0.2)
nt -f D:\\PMT_LandingPage jfxsa-run
D:\PMT_LandingPage\nbproject\jfx-impl.xml:3725: The following error occurred while executing this line:
D:\PMT_LandingPage\nbproject\build-impl.xml:87: 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)
Я новичок в NetBeans и действительно не знаю, как это исправить. Я искал эту проблему, но не смог найти решение.
У вас есть загруженный Java Development Kit (JDK), загруженный правильно? –
Какой JDK вы используете? Поддерживает ли он JavaFX? Как вы начали сборку? Из командной строки или изнутри NetBeans? –
Да, я загрузил. –