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.

Bug 240632 - IllegalArgumentException: Parameter must be a valid folder.
Summary: IllegalArgumentException: Parameter must be a valid folder.
Alias: None
Product: projects
Classification: Unclassified
Component: Generic Infrastructure (show other bugs)
Version: 7.4
Hardware: All All
: P3 normal (vote)
Assignee: Milos Kleint
Depends on:
Reported: 2014-01-17 22:37 UTC by jdlee
Modified: 2014-01-18 12:31 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 206690

stacktrace (1.12 KB, text/plain)
2014-01-17 22:37 UTC, jdlee

Note You need to log in before you can comment on or make changes to this bug.
Description jdlee 2014-01-17 22:37:03 UTC
Build: NetBeans IDE 7.4 (Build 201310111528)
VM: Java HotSpot(TM) 64-Bit Server VM, 24.51-b03, Java(TM) SE Runtime Environment, 1.7.0_51-b13
OS: Linux

User Comments:
jdlee: Trying to create a new Gradle-based project

java.lang.IllegalArgumentException: Parameter must be a valid folder.
   at org.netbeans.gradle.project.newproject.NewProjectUtils.setDefaultProjectDir(
   at org.netbeans.gradle.project.newproject.GradleSingleProjectPropertiesPanel.getConfig(
   at org.netbeans.gradle.project.newproject.GradleSingleProjectConfigPanel.storeSettings(
   at org.netbeans.gradle.project.newproject.GradleSingleProjectConfigPanel.storeSettings(
   at org.openide.WizardDescriptor.callInstantiateOpen(
Comment 1 jdlee 2014-01-17 22:37:04 UTC
Created attachment 144092 [details]
Comment 2 Milos Kleint 2014-01-18 09:29:03 UTC
gradle project type related?
Comment 3 attila.kelemen 2014-01-18 12:31:33 UTC
(In reply to Milos Kleint from comment #2)
> gradle project type related?

Yes. Should now be fixed in master. This is most likely caused by deleting the last used "Project Location" folder. For now, the workaround is to adjust "~/NetBeans/7.4/config/Preferences/org/netbeans/gradle/": Remove the "default-project-dir" line.