Created attachment 163576 [details]
Exception from build
NetBeans 9 (dev) running on JDK9 as run time platform.
1. Added new JavaFX project from template.
2. Set project Java Platform to JDK9 and Sources to JDK9 as well.
3. Invoke Build action on project.
4. Following error occurs:
Detected JavaFX Ant API version 1.3
Launching <fx:jar> task from /home/martin/jdk-9-b151/lib/ant-javafx.jar
javax.script.ScriptException: TypeError: app.setFallbackClass is not a function in <eval> at line number 89
Full log in attachement.
Also $PATH was pointing to JDK9/bin folder so JDK9 is used by JavaFX Ant tasks.
I verified various settings again and setting $PATH is not needed. --jdkhome is important.
Fixed jet-main 04ce0c02754e
Caused by an incompatible API change in the ant-javafx.jar.
The <fx:application> http://docs.oracle.com/javafx/2/deployment/javafx_ant_task_reference002.htm#CIAGCAFH no more have fallbackClass attribute.
Integrated into 'main-silver', will be available in build *201702080002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
User: Tomas Zezula <email@example.com>
Log: #269752:javax.script.ScriptException: TypeError: app.setFallbackClass is not a function in <eval> at line number 89