我正在尝试运行DataApp示例。当我从文件夹中打开所有项目时,其中一些项目在许多java文件中都有错误,如下图所示。
我在Windows 7 64bit上运行该项目,使用Netbeans 8.0 Beta,JDK 8,glassfish 4.0
当我尝试编译其中一个包含错误的java文件时,我收到以下错误:
ant -f C:\\Users\\acer\\Desktop\\DataApp\\DataAppClient - Djavac.includes=com/javafx/experiments/dataapp/client/DataApplication.java - Dnb.internal.action.name=compile.single compile-single
C:\Users\acer\Desktop\DataApp\DataAppClient\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)
如何成功编译程序?
提前致谢....