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.
[built on 040415 sources; Sun JDK 1.4.2_04] I'm not able to create the simplest J2SE project. When I try to create a project with a default main class, I get java.lang.AssertionError: No such dir on disk: C:\Documents and Settings\honza\My Documents\NBProjects\myProject [full stack trace attached] It seems that the spaces in the path are causing problems. No error occurs when I try to create a J2SE app project in a directory without spaces in name.
Created attachment 14420 [details] Exception stack trace
Well J2SEProjectGenerator just calls FileUtil.fromFile(File) and it is getting an empty array back. (Yes I know the method is deprecated but it should still work nonetheless.) Probably a result of some mistakes Radek made in recent commits in masterfs such as using new File(url.getPath()) which is not safe for all characters.
URI, URL, File conversions is simply nightmare. I'm going to review committed conversions and I'll simplify it if possible. /cvs/openide/masterfs/src/org/netbeans/modules/masterfs/MasterURLMapper.java,v new revision: 1.3; previous revision: 1.2 /cvs/openide/src/org/openide/filesystems/FileUtil.java,v <-- FileUtil.java new revision: 1.84; previous revision: 1.83
Please remember to update the target milestone.
Verified in custom build of 040416 sources.