Friday, November 1, 2013

javafx ensemble with netbeans

When running the javafx (javafx-samples-2.2.45) Ensemble example on Windows with netbeans, it is possible that the following error with occur:

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)

To fix this, open the project.properties file in the nbproject subfolder of Ensemble project, which is contained in the above samples zip file.

native.bundling.enabled=false
platform.active=default_platform
platforms.default_platform.home=C:\\Program Files\\Java\\jdk1.7.0_25

Of course, the values will depend on  the location of your java installation.


No comments:

Post a Comment