Please use the Apache issue tracking system for new NetBeans issues ( !!
Bug 200562 - Reload in target platform doesn't allow spaces in module jar paths on Windows
Reload in target platform doesn't allow spaces in module jar paths on Windows
Product: apisupport
Classification: Unclassified
Component: Maven
PC Windows 7
: P3 (vote)
: 7.1
Assigned To: Jesse Glick
Depends on:
  Show dependency treegraph
Reported: 2011-08-01 09:28 UTC by gregersen
Modified: 2011-08-02 13:43 UTC (History)
0 users

See Also:
Issue Type: DEFECT


Note You need to log in before you can comment on or make changes to this bug.
Description gregersen 2011-08-01 09:28:48 UTC
When trying to reload a module in Maven-based netbeans platform development the following exception occurs:

Executing: cmd.exe /X /C ""D:\Maven Test\mavenproject2\application\target\mavenproject2\bin\mavenproject2.exe" --console suppress --userdir "D:\Maven Test\mavenproject2\application\target\userdir" -J-Dnetbeans.logger.console=true -J-ea --branding mavenproject2 --jdkhome "C:\Program Files (x86)\Java\jdk1.6.0_24" --reload D:\Maven Test\mavenproject2\mavenproject2-sample\target\mavenproject2-sample-1.0-SNAPSHOT.jar" D:\Maven (Den angivne fil blev ikke fundet)
	at Method)
	at org.netbeans.Util.makeTempJar(
	at org.netbeans.StandardModule.ensurePhysicalJar(
	at org.netbeans.StandardModule.loadManifest(
	at org.netbeans.StandardModule.<init>(
	at org.netbeans.ModuleFactory.create(
	at org.netbeans.ModuleManager.create(
	at org.netbeans.core.startup.ModuleSystem.deployTestModule(
	at org.netbeans.core.startup.TestModuleDeployer.deployTestModule(
	at org.netbeans.core.startup.CLITestModuleReload.cli(
	at org.netbeans.CLIHandler.notifyHandlers(
	at org.netbeans.CLIHandler$Server$

Steps to reproduce:

1. create a folder containing a 'Space' character
2. create a Maven-based platform app using the create project wizard with a sample module
3. build the app
4. run
5. reload sample module

Adding '"' around the path in the '--reload' argument would solve this issue.

It can be a show-stopper for developing with Javeleon on Windows
Comment 1 Jesse Glick 2011-08-01 15:02:20 UTC
Reproducible and easily fixed on Linux using quotes in platformActionMappings.xml, but this seems to fail on Windows. is related; you cannot even get to reproduce this bug on Linux without the fix for that issue.

Not a P3 when there is a trivial workaround - use safer directory paths.

(BTW you need not add yourself on CC to issues you reported.)
Comment 2 Jesse Glick 2011-08-01 15:17:21 UTC
core-main #3be90368cd7c
Comment 3 Quality Engineering 2011-08-02 13:43:27 UTC
Integrated into 'main-golden'
User: Jesse Glick <>
Log: #200562: Reload in target platform doesn't allow spaces in module jar paths on Windows

By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2014, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo