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 197542 - unable to create new desktop application with option "Use dedicated folder for libs"
Summary: unable to create new desktop application with option "Use dedicated folder fo...
Status: VERIFIED FIXED
Alias: None
Product: guibuilder
Classification: Unclassified
Component: App Framework (show other bugs)
Version: 7.0
Hardware: All All
: P2 normal (vote)
Assignee: issues@guibuilder
URL:
Keywords: REGRESSION
: 198989 (view as bug list)
Depends on:
Blocks:
 
Reported: 2011-04-07 15:50 UTC by sgag
Modified: 2011-07-25 08:36 UTC (History)
3 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
attachment-NPE (6.30 KB, text/plain)
2011-04-07 16:18 UTC, Marian Mirilovic
Details

Note You need to log in before you can comment on or make changes to this bug.
Description sgag 2011-04-07 15:50:30 UTC
While trying to create new project "Java desktop application" have found following.
If option "Use dedicated folder for libraries" is ON, the IDE can't finish the task. The project folder with application structure is created but just without LIB subfolder.
During open such "unfinished" project the references fault arises. The reason is - lost Swing Framework Library.

All worked fine in 6.9.1, 7 beta and 7 beta 2. This only happens in 7 RC1.

Would You be so kind to take a look, please...
Comment 1 Marian Mirilovic 2011-04-07 16:06:34 UTC
You are right, I am able to reproduce it also with RC2 - this is bad, could somebody from projects do a quick evaluation ? Thanks in advance. 

We have still couple hours for integration additional fixes into release70 branch, before FCS build.
Comment 2 Marian Mirilovic 2011-04-07 16:17:21 UTC
There are two problems :
1. once you will use 'Use dedicated folder for Storing Libraries' ... the wizard will never finish (silent exception is thrown see attachment-NPE) and project is not opened (it's created but never opened) and New Project Wizard stays opened with disabled Finish button)

2. if you open such project after closing the dialog (by Cancel) - it contains broken references, the workaround is :
- select project node in Projects view and push 'Properties' from popup menu
- select 'Libraries' on the left
- select 'Missing library ....' and push 'Remove' button
- push 'Add Library' button
- push 'Import...' button
- choose 'Swing Application Framework' and push 'Add Library' button
- push 'Ok' on Project Properties dialog
Comment 3 Marian Mirilovic 2011-04-07 16:18:29 UTC
Created attachment 107589 [details]
attachment-NPE
Comment 4 Jesse Glick 2011-04-07 16:22:56 UTC
I get

java.lang.NullPointerException
	at org.netbeans.modules.swingapp.templates.NewAppWizardIterator.copyRequiredLibraries(NewAppWizardIterator.java:386)
	at org.netbeans.modules.swingapp.templates.NewAppWizardIterator.enableShareableLibraries(NewAppWizardIterator.java:365)
	at org.netbeans.modules.swingapp.templates.NewAppWizardIterator.instantiate(NewAppWizardIterator.java:339)

when clicking Finish. But I can still switch it to sharable later; create the project without this checkbox, then File > Project Properties > Libraries > Browse... and follow the instructions.

Anyway the swingapp module is effectively deprecated since org.jdesktop.application is no longer developed. I do not think bugs in this area should be considered high priorities.
Comment 5 Jesse Glick 2011-04-07 16:30:40 UTC
core-main #fe8b109d8bef
Comment 6 Jesse Glick 2011-04-07 16:34:45 UTC
(In reply to comment #4)
> I do not think bugs in this area should be considered high priorities.

In fact the module should be moved to AU, not left in the java cluster.
Comment 7 Quality Engineering 2011-04-08 08:52:27 UTC
Integrated into 'main-golden', will be available in build *201104080400* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/fe8b109d8bef
User: Jesse Glick <jglick@netbeans.org>
Log: #197542: unable to create new desktop application with option "Use dedicated folder for libs"
Test dir no longer exists in these projects after 3d2b19c7bcad.
Comment 8 Jan Stola 2011-05-31 15:02:19 UTC
*** Bug 198989 has been marked as a duplicate of this bug. ***