This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
[ JDK VERSION : 1.6.* ] Project gives the following error while trying to build it. ERROR: Unknown argument: http://localhost:8082/servlet/org.netbeans.modules.javafx.project.JnlpDownloadSe rvlet/C%3A/home/josh/Projects/TempJfx2/dist/ Issue is discussed here: http://forums.netbeans.org/ntopic10403.html http://www.techienuggets.com/Detail?tx=74948 Unknown what series of actions resulted in this error. Created project, cleaned project. Tried to build project again. Project is attached.
Created attachment 98511 [details] Project with the build error. Executing the build command against this project creates the error message.
I can no longer build and JavaFX projects due to this error. Will attempt to reinstall NetBeans. Promoted to P1.
The following pages might be relevant. http://echelog.matzon.dk/logs/browse/netbeans/1235516400 http://www.mentby.com/vaziocs/ https://netbeans.org/bugzilla/show_bug.cgi?id=163386 https://netbeans.org/bugzilla/show_bug.cgi?id=158494 Issue 163386 has more detail with the error message. It's marked as a duplicate of 158494 that says that the issue has to do with a project that does not have a Main class. Issue 158494 is marked as an enhancement. This issue was originally reported in February, 2009. In my opinion it should be reclassified as a DEFECT and worked sooner rather than later. It's completely legitimate to create a JavaFX project without a Main class. The inability to build a project and an error message that has offers nothing towards resolution is only going to be a discouragement to new JavaFX developers.
Attached project does not specify main application class so it cannot be compiled. Compilation error message is clearly saying this information. The fact that JavaFX project should be asking for the main class through an UI (when user needs to compile the project) is tracked in issue #158494 The dialog with selection of the main class appears correctly when you try to execute the project. You are trying to use JavaFX projects as libraries which is unsupported by the JavaFX architecture (see http://javafx-jira.kenai.com/browse/RT-2947 )
RT-2947 is marked as critical and should be worked. Until RT-2947 is worked, I can't see a reason why JavaFX couldn't support compilation (not execution) of a project that does not contain a Main class. If, for some reason, it's not possible to compile the JavaFX project without a main class, then the error message received after issuing the *compile* command (not the execute command) should be changed to something that says, "Currently JavaFX does not support compilation of projects that do not have a main class specified. Please specify a main class under... " This error message is not helpful: ERROR: Unknown argument: http://localhost:8082/servlet/org.netbeans.modules.javafx.project.JnlpDownloadSe rvlet/C%3A/home/josh/Projects/TempJfx2/dist/ A search of the web reveals a number of people that are completely stumped by this error message.
First the explanation: it is not possible to compile JavaFX project without a main class specified, it is a mandatory argument of the javafxpackager. Decreasing the priority of this issue as it cannot be reproduced without an intentional user action. User must manually set the main class of a project to an empty string. Any new project created without the main class is displaying correct error message "ERROR: Application class is not specified." (see issue #158494)
I did not manually specify the main class as an empty String. I simply used the project and it resulted in the error message. Also, if it's not possible to compile a JavaFX project without a main class, then NetBeans should prevent the user from having a project where a main class is not specified. If the user tries to delete the main class, it should prompt for another class or not let them do it. If the user tries to specify an empty String, NetBeans should prevent them from doing so. Currently NetBeans lets the user create a project without a main class (see screenshot).
Created attachment 98644 [details] New Project Window Lets User Create JavaFX Project Without Main Class
Fixed in http://hg.netbeans.org/javafx/rev/f7129366059d by a new fail check during each build, plus the main class selection UI can appear now even before project compilation.
*** Bug 181687 has been marked as a duplicate of this bug. ***