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.
NetBeans IDE Dev (Build 200702111900) 1.5.0_07; Java HotSpot(TM) Client VM 1.5.0_07-b02 Windows XP version 5.1 running on x86 en_US (nb); Cp1252 1.Create new j2se project 2.In this project create new JFrame form and make it to be main class of the project 3.In project properties set enabled checkboxes "Enable Web Start" and "Allow Offline" in panel related to "Application|Web Start" node 4.Run project and the Invalid Argument Error dialog appears (see attached screenshot). The details contain following output: ================================================== General: ======== An error occurred while launching/running the application. Category: Invalid Argument Error Too many arguments supplied: {C:\My, Documents\NetBeansProjects\JavaApplication15\dist/launch.jnlp } ================================================== Exception: ========== TooManyArgumentsException[ Too many arguments supplied: {C:\My, Documents\NetBeansProjects\JavaApplication15\dist/launch.jnlp }] at com.sun.javaws.Main.launchApp(Main.java:174) at com.sun.javaws.Main.main(Main.java:136) ==================================================
Created attachment 38387 [details] Screenshot attached...
Space in path is not handled correctly.
*** Issue 98892 has been marked as a duplicate of this issue. ***
This bug is probably because webstart assumes the URL will be properly encoded as it would if the URL was a live link on a webserver. We should probably encode the URL the same way within NetBeans.
Yes, that's probably the problem, I hope it can be fixed using ant processing.
Fixed. The problem actually wasn't encoding of the codebase attribute in jnlp file (which is correct), but not using " around exec arguments in ant script. Checking in jnlp-impl.xml_; /cvs/javawebstart/src/org/netbeans/modules/javawebstart/resources/jnlp-impl.xml_,v <-- jnlp-impl.xml_ new revision: 1.3; previous revision: 1.2 done
Better fix is to use <arg file=""> Checking in jnlp-impl.xml_; /cvs/javawebstart/src/org/netbeans/modules/javawebstart/resources/jnlp-impl.xml_,v <-- jnlp-impl.xml_ new revision: 1.4; previous revision: 1.3 done