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.
Created attachment 120499 [details] message screenshot Product Version: NetBeans IDE Dev (Build 201206070001) Java: 1.7.0_04; Java HotSpot(TM) 64-Bit Server VM 23.0-b21 System: Windows 7 version 6.1 running on amd64; Cp1252; en_US (nb) After fresh IDE installation, a notification is shown that JUnit wasn't installed, because the IDE doesn't have permission to write to it's installation directory. Upon clicking Show More link in the notification, a message window is shown (see attachment). This message seems very confusing to me: 1) I'm not native english speaker, so I might just be wrong on this, but the current text sounds to me that if I want to install JUnit into IDE's installation directory (as recommended), there are two ways to do it: either a) run IDE with required permissions or b) install JUnit into userdir So if I'm reading it right, the second part obviously doesn't make sense. 2) The current message states that if I want to perform the installation, I should run the IDE with required permissions. If I exit the IDE and run it again with those permissions, nothing happens, because the automatic JUnit installation is invoked only on the first startup. If it's not feasible to invoke the automatic installation again after the restart of the IDE, it should be somehow noted in the message that I must also manually invoke the JUnit installation after restart to continue with the process. 3) The button in this dialog has label "Install anyway". Along with the current message, it's not clear whether pushing this button will lead to installation to the userdir or to some action to acquire the write permission to the IDE's installation directory and then installing there.
Fixed in changeset: core-main/rev/d006bbbd83e1 The message is not shown any more. Now it tries to install JUnit to NB installation folder. In case of failure it silently installs JUnit into userdir.
(In reply to comment #1) > Fixed in changeset: core-main/rev/d006bbbd83e1 > > The message is not shown any more. Now it tries to install JUnit to NB > installation folder. In case of failure it silently installs JUnit into > userdir. I'm a little surprised to see this. I thought this behavior was rejected...
Integrated into 'main-golden', will be available in build *201206120719* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-golden/rev/d006bbbd83e1 User: Libor Fischmeistr <lfischmeistr@netbeans.org> Log: #213753: Misleading message in automatic JUnit installation
I still see the same message in 201206140001.
(In reply to comment #1) > Fixed in changeset: core-main/rev/d006bbbd83e1 > > The message is not shown any more. Now it tries to install JUnit to NB > installation folder. In case of failure it silently installs JUnit into > userdir. That's wrong. This changeset will be rollback. If the case JUnit was installed in userdir, it will not work properly in some cases. That's the reason why prevent users to install JUnit into userdir.
(In reply to comment #0) > Created attachment 120499 [details] > message screenshot > > Product Version: NetBeans IDE Dev (Build 201206070001) > Java: 1.7.0_04; Java HotSpot(TM) 64-Bit Server VM 23.0-b21 > System: Windows 7 version 6.1 running on amd64; Cp1252; en_US (nb) > > After fresh IDE installation, a notification is shown that JUnit wasn't > installed, because the IDE doesn't have permission to write to it's > installation directory. Upon clicking Show More link in the notification, a > message window is shown (see attachment). > > This message seems very confusing to me: > > 1) I'm not native english speaker, so I might just be wrong on this, but the > current text sounds to me that if I want to install JUnit into IDE's > installation directory (as recommended), there are two ways to do it: > either a) run IDE with required permissions Wording needs another review. > or b) install JUnit into userdir > So if I'm reading it right, the second part obviously doesn't make sense. > > 2) The current message states that if I want to perform the installation, I > should run the IDE with required permissions. If I exit the IDE and run it > again with those permissions, nothing happens, because the automatic JUnit It should be fixed. > installation is invoked only on the first startup. If it's not feasible to > invoke the automatic installation again after the restart of the IDE, it should > be somehow noted in the message that I must also manually invoke the JUnit Or use Broken Library Resolver. I think it's acceptable workaround for IDE users. > installation after restart to continue with the process.
http://hg.netbeans.org/core-main/rev/b38ec52cae81
http://hg.netbeans.org/releases/rev/961bbf4412a1
Integrated into 'releases', will be available in build *201206202200* or newer. Wait for official and publicly available build. Changeset: http://hg.netbeans.org/releases/rev/961bbf4412a1 User: Jiri Rechtacek <jrechtacek@netbeans.org> Log: #213753: remove warning when JUnit was install into userdir (transplanted from b38ec52cae81c59b9630458a87bc20abacd6f3df)
Integrated into 'main-golden', will be available in build *201206220002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-golden/rev/b38ec52cae81 User: Jiri Rechtacek <jrechtacek@netbeans.org> Log: #213753: remove warning when JUnit was install into userdir
There is no message now and the JUnit plugin is being installed silently into userdir. Is this the desired result?
(In reply to comment #11) > There is no message now and the JUnit plugin is being installed silently into > userdir. Is this the desired result? Yes
verified in 7.2 RC