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 262832

Summary: [82cat] Importing previous NetBeans IDE settings keeps old Java DB Installation
Product: db Reporter: brettryan <brettryan>
Component: DerbyAssignee: Libor Fischmeistr <lfischmeistr>
Status: NEW ---    
Severity: normal    
Priority: P3    
Version: 8.2   
Hardware: PC   
OS: Mac OS X   
Issue Type: DEFECT Exception Reporter:

Description brettryan 2016-07-16 13:50:17 UTC
Often a practice employed when upgrading NetBeans IDE is to uninstall the prior installation including Glassfish, then reinstalling the new version and importing settings on starting the for the first time.

As the Java DB driver is referenced from the Glassfish installation of the prior instance, the settings will keep the prior installations driver.


Steps to Reproduce
------------------

1. Move away all prior userdirs for all versions of NetBeans IDE.
2. Install NetBeans IDE 8.0.2.
3. Start the IDE to initialise settings.
4. Shut down the IDE.
5. Uninstall NetBeans IDE and Glassfish.
6. Install NetBeans IDE 8.1
7. Start the IDE
8. Open Services (CMD+5), expand Databases and right click Java DB and attempt to Start DB.


Expected Behaviour
------------------

Java DB Database Process output tab opens with Apache Derby Network Server starting message.


Actual Behaviour
----------------

Items in the menu greyed out preventing me from starting the server.


Notes
-----

What I would suggest is that the import settings should do one of the following:

1. Ignore the Derby installation setting if the Java EE or full version has been installed.
2. Verify the path exists after importing settings.
3. On startup verify the path exists, if it does not exist default back to the original installations path.