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 200397 - Unable to run JUnit on Suite
Summary: Unable to run JUnit on Suite
Status: RESOLVED DUPLICATE of bug 196500
Alias: None
Product: java
Classification: Unclassified
Component: JUnit (show other bugs)
Version: 7.0
Hardware: All All
: P3 normal (vote)
Assignee: Yulia Novozhilova
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-07-26 18:27 UTC by javydreamercsw
Modified: 2011-08-26 12:56 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Prompt 1 (9.68 KB, image/png)
2011-07-26 18:30 UTC, javydreamercsw
Details
Prompt 2 (9.60 KB, image/png)
2011-07-26 18:30 UTC, javydreamercsw
Details

Note You need to log in before you can comment on or make changes to this bug.
Description javydreamercsw 2011-07-26 18:27:56 UTC
Product Version = NetBeans IDE 7.0 (Build 201104080000)
Operating System = Windows 7 version 6.1 running on x86
Java; VM; Vendor = 1.6.0_26
Runtime = Java HotSpot(TM) Client VM 20.1-b02

The Unit Test Libraries folder of the modules have an exclamation mark. So I right click and select add missing dependencies. Then IDE says that JUnit needs to be installed when it already is. I'll attach pictures in a bit.
Comment 1 javydreamercsw 2011-07-26 18:30:01 UTC
Created attachment 109623 [details]
Prompt 1
Comment 2 javydreamercsw 2011-07-26 18:30:16 UTC
Created attachment 109624 [details]
Prompt 2
Comment 3 javydreamercsw 2011-08-01 20:21:47 UTC
Any update/additional information I can provide?
Comment 4 Yulia Novozhilova 2011-08-04 15:56:58 UTC
It looks the same issue as http://netbeans.org/bugzilla/show_bug.cgi?id=199953.
Please follow the instructions from http://netbeans.org/bugzilla/show_bug.cgi?id=199953#c3 and let me know if that helps.
Comment 5 javydreamercsw 2011-08-05 13:20:08 UTC
No, it doesn't help. From the files in the nbm it expects it on the modules folder with the junit jar files in the modules/ext folder. What I don't see a reference for is the org-netbeans-libs-junit4.jar file which only contains a Bundle file.
Comment 6 Yulia Novozhilova 2011-08-10 11:28:26 UTC
Please try the following: 

1) reinstall/install JUnit module via Update Center (Menu Tools-> Plugins->Available Plugins/Installed Plugins)

2) start NetBeans with clean userdir (http://wiki.netbeans.org/FaqWhatIsUserdir) and see if that helps
Comment 7 javydreamercsw 2011-08-10 12:49:53 UTC
Tried that yesterday, for another issue I reported, but the same issue is still present.
Comment 8 Yulia Novozhilova 2011-08-10 15:08:09 UTC
Have you checked your target platform? Does it have JUnit module installed?
Please go to the Project Properties menu and make sure the NetBeans Platform that is used as target platform for your module contains org-netbeans-libs-junit4 and junit4 jars. If not, please install it or change the platform.
Comment 9 javydreamercsw 2011-08-10 16:08:17 UTC
The custom platform does. Even if I switch to default platform the issue is there.
Comment 10 javydreamercsw 2011-08-15 15:46:19 UTC
I found this when I accepted the IDE prompt to download and install JUnit:

INFO [org.netbeans.core.startup.NbEvents]: Turning on modules:
	org.netbeans.libs.junit4 [1.13 201107282000]
	org.netbeans.modules.junitlib [1.0 201107282000]
WARNING [org.netbeans.modules.project.libraries.LibrariesStorage]: Cannot load library from file org-netbeans-api-project-libraries/Libraries/junit-4.8.2.xml in Default System, reason: LibraryDeclarationHandlerImpl: Cannot create library: junit_4 of unknown type: j2se
WARNING [org.netbeans.modules.project.libraries.LibrariesStorage]: Cannot load library from file org-netbeans-api-project-libraries/Libraries/junit-3.8.2.xml in Default System, reason: LibraryDeclarationHandlerImpl: Cannot create library: junit of unknown type: j2se
Comment 11 Yulia Novozhilova 2011-08-16 11:10:58 UTC
Please attach the full log here. Thanks.
Comment 12 eduramiba 2011-08-26 12:39:04 UTC
Hi,
I had this problem and I think it may be related to windows file permissions problems (under program files) when Netbeans tries to copy jars when installing/updating them. I remember having a similar problem with Netbeans 6.9 after installing an update and the jar not being copied.

First time I could solve it by manually copying jars from C:\Users\Eduardo\.netbeans but it is tricky, so I ended up using Netbeans zip distributions and this problem dose not happen again.

This problem is happening very often to our netbeans application users.

This bug is also the same as bug 196500
Comment 13 javydreamercsw 2011-08-26 12:56:00 UTC

*** This bug has been marked as a duplicate of bug 196500 ***