未正确设置J2SE平台。(NetBeans IDE 8.0.2) [英] The J2SE Platform is not correctly set up.( NetBeans IDE 8.0.2 )

查看:224
本文介绍了未正确设置J2SE平台。(NetBeans IDE 8.0.2)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在NetBeans中运行程序时遇到此错误。

I am getting this error while running my program in NetBeans.

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的新手,实际上不知道如何修复它。我搜索了这个问题,但无法得到任何解决方案。

I am new with NetBeans and really don't know how to fix it. I googled this issue but could not get any solution.

推荐答案

转到工具 - > Java平台并选择JDK的正确路径。

Go to Tools -> Java Platformsand select the correct path to your JDK.

这篇关于未正确设置J2SE平台。(NetBeans IDE 8.0.2)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆