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.
Installed RC2, agreeing to install JUnit, and started in fresh user dir. Log file after main startup sequence confirms INFO [org.netbeans.modules.autoupdate.services.InstallSupportImpl]: Trying external URL: m2:/junit:junit:3.8.2:jar:javadoc INFO [org.netbeans.modules.autoupdate.services.InstallSupportImpl]: Trying external URL: m2:/junit:junit:4.8.2:jar:javadoc INFO [org.netbeans.modules.autoupdate.services.InstallSupportImpl]: Trying external URL: m2:/junit:junit:4.8.2:jar:sources INFO [org.netbeans.modules.autoupdate.services.InstallSupportImpl]: Trying external URL: m2:/junit:junit:3.8.2:jar INFO [org.netbeans.modules.autoupdate.services.InstallSupportImpl]: Trying external URL: m2:/junit:junit:4.8.2:jar INFO [org.netbeans.updater]: File installed /space/nb/nb70rc2/java/config/Modules/org-netbeans-modules-junitlib.xml@0 INFO [org.netbeans.updater]: File installed /space/nb/nb70rc2/java/modules/org-netbeans-modules-junitlib.jar.pack.gz@0 INFO [org.netbeans.updater]: File installed /space/nb/nb70rc2/java/update_tracking/org-netbeans-modules-junitlib.xml@0 INFO [org.netbeans.updater]: File installed /space/nb/nb70rc2/platform/config/Modules/org-netbeans-libs-junit4.xml@0 INFO [org.netbeans.updater]: File installed /space/nb/nb70rc2/platform/modules/org-netbeans-libs-junit4.jar.pack.gz@0 INFO [org.netbeans.updater]: File installed /space/nb/nb70rc2/platform/update_tracking/org-netbeans-libs-junit4.xml@0 INFO [org.netbeans.core.startup.NbEvents]: Turning on modules: org.netbeans.libs.junit4 [1.13 201103280000] org.netbeans.modules.junitlib [1.0 201103280000] Yet in Plugin Manager (opened not long after startup from welcome screen link), "Installed" does not list JUnit, and "Available Plugins" does. Later when I reopen the dialog it is correct, so some kind of refresh problem.
The junit is usually installed after 10-30s delay after the first start of ide (but can be MUCH longer if some big projects are opened) - because of this the projects which need junit (even newly created ones eg. anagram game) have reference problems during this time. In case of longer delay or fast clicking it is even possible to resolve them by installing junit from plugin portal( and in the process AGAIN agreeing to the junit license). IMHO the delay is too long and should be shortened if not eliminated completely.
Solveable by downloading the JUnit directly from installer. Using following trick: nbexec -cp install-callback.jar -J-Dnetbeans.mainclass=installer.Callback the Callback class then will have as good proxy as any NetBeans application and can perform the download (via AutoUpdateTask).
Product Version: NetBeans IDE 7.0 (Build 201104080000) Java: 1.6.0_24; Java HotSpot(TM) Client VM 19.1-b02 System: Windows 7 version 6.1 running on x86; Cp1252; de_DE (nb) With first start and empty userdir I get this exception: INFO [org.netbeans.modules.autoupdate.services.InstallSupportImpl]: Trying external URL: m2:/junit:junit:3.8.2:jar:javadoc WARNING [org.netbeans.modules.autoupdate.services.InstallSupportImpl]: Cannot connect to m2:/junit:junit:3.8.2:jar:javadoc INFO [org.netbeans.modules.autoupdate.services.InstallSupportImpl]: Details java.net.MalformedURLException: unknown protocol: m2 at java.net.URL.<init>(URL.java:574) at java.net.URL.<init>(URL.java:464) at java.net.URL.<init>(URL.java:413) [catch] at org.netbeans.modules.autoupdate.services.InstallSupportImpl.externalDownload(InstallSupportImpl.java:1269) at org.netbeans.modules.autoupdate.services.InstallSupportImpl.doDownload(InstallSupportImpl.java:765) at org.netbeans.modules.autoupdate.services.InstallSupportImpl.doDownload(InstallSupportImpl.java:687) at org.netbeans.modules.autoupdate.services.InstallSupportImpl.access$600(InstallSupportImpl.java:117) at org.netbeans.modules.autoupdate.services.InstallSupportImpl$1.call(InstallSupportImpl.java:211) at org.netbeans.modules.autoupdate.services.InstallSupportImpl$1.call(InstallSupportImpl.java:158) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) at java.util.concurrent.FutureTask.run(FutureTask.java:138) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) at java.lang.Thread.run(Thread.java:662) br, josh.
(In reply to comment #3) > With first start and empty userdir I get this exception: > > java.net.MalformedURLException: unknown protocol: m2 > at java.net.URL.<init>(URL.java:574) > [catch] at org.netbeans.modules.autoupdate.services.InstallSupportImpl.externalDownload(InstallSupportImpl.java:1269) This will happen if you have an ergonomics-based build, or otherwise do not have the IDE's Java support enabled. It is harmless as the JUnit libs are then downloaded directly via HTTP.
*** Bug 211846 has been marked as a duplicate of this bug. ***
*** Bug 213910 has been marked as a duplicate of this bug. ***
Since JUnit could be installed during IDE installation so this issue is not so important => decreasing to P4