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.
NB 6.5 2008070009 The Library Manager Dialog allows you to delete the pre-packaged 3rd party libraries installed. However, if you attempt to do this, you get a message indicating that the plugin already exists. Using the dojo 3rd party lib as an example -- if you look at the moduleCluster.properties file, the javascript directory path is: javascript.libraries.dojo.dir=${netbeans.dest.dir}/webcommon1 On my host, after I have gone through the JavaScript Library Manager to delete dojo, I see that the jar file still resides here: cmucci@alaska -> ls *dojo* org-netbeans-modules-javascript-libraries-dojo.jar cmucci@alaska -> pwd /scratch/netbeans-dev-200807080009/webcommon1/modules Please review these steps conducted for several pre-packaged 3rd party libs - all of which had the same results. When you try to readd them via the plugin an error message is seen. STEPS TO REPRODUCE: 1. Install the above build. 2. Remove a 3rd party lib from Netbeans using Tools->Libraries - in left frame highlight the JavaScript Library -Dojo for example - just below this frame, click Remove - click OK to dismiss dialog 3. Go to Tools->Plugins->Downloaded->Add Plugins - go to a directory that has the dojo JavaScript Library nbm built (I used an internal build from a 3rd party lib developer) - highlight the nbm and click Open. - An Informational dialog appears indicating: ' "Plugin JavaScript Library: Dojo 1.1.0" is already installed 4. Go to the NB install/webcommon1/modules directory and confirm that the jar hasn't been removed. cmucci@alaska -> ls *dojo* org-netbeans-modules-javascript-libraries-dojo.jar cmucci@alaska -> pwd /scratch/netbeans-dev-200807080009/webcommon1/modules Should this occur? If not, can someone please outline the proper steps to remove this and reinstall via the plugin?
Removing the library from the library manager is not sufficient to clean up the library plugin. The correct way to do this is to remove the plugin from Tools->Plugins (before or after removing the library from the library manager). After you do this and restart the IDE, a new nbm for that module can be installed.
The Library Manager 'Remove' button is slightly misleading in this case. We should consider an RFE perhaps letting the user know that you do not completely delete this JavaScript Library from Netbeans entirely without having to go through the additional removal steps that Quy provided here. I'll leave this bug closed, but I believe it should considered for a future enhancement to the lib mgr.
Some more testing indicates that this is probably a more serious issue. Without using a new userdir, it doesn't look like it is possible to get the library again even if the module is re-installed. In any case, it is a general library manager issue not specifically related to javascript libraries.
I have filed another issue against adding the libraries back to NB via the plugin - http://www.netbeans.org/issues/show_bug.cgi?id=139485 That bug is filed under ajax/javascript - is that the correct category? Or, should this bug be reopened?
Re-opening to change resolution.
*** This issue has been marked as a duplicate of 140189 ***