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 192872 - getting error message package org junit does not exit - do not know why
Summary: getting error message package org junit does not exit - do not know why
Status: RESOLVED INVALID
Alias: None
Product: java
Classification: Unclassified
Component: JUnit (show other bugs)
Version: 6.x
Hardware: PC Windows XP
: P3 normal (vote)
Assignee: Yulia Novozhilova
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-12-04 15:41 UTC by beverley
Modified: 2011-11-16 16:41 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description beverley 2010-12-04 15:41:45 UTC
Product Version = NetBeans IDE 6.9.1 (Build 201011082200)
Operating System = Windows XP version 5.1 running on x86
Java; VM; Vendor = 1.6.0_22
Runtime = Java HotSpot(TM) Client VM 17.1-b03

Can not do Junit testing of my code. or build projects
Comment 1 beverley 2010-12-04 15:42:56 UTC
Because of this error can not do testing or build projects.

Full error message is as follows.

C:\Documents and Settings\Beverley Hartland\.netbeans\6.9\var\cache\executor-snippets\junit.xml:80: The following error occurred while executing this line:
C:\Documents and Settings\Beverley Hartland\.netbeans\6.9\var\cache\executor-snippets\junit.xml:63: The <classpath> for <junit> must include junit.jar if not in Ant's own classpath
BUILD FAILED (total time: 0 seconds)
Comment 2 Yulia Novozhilova 2010-12-13 15:50:57 UTC
It looks like junit library was somehow removed from your NetBeans project. It is easy to add it again. Please right-click the Test Libraries node, choose Add Library and add the JUnit 3.*/4 libraries to the project. 

You can find more info here: http://netbeans.org/kb/docs/java/junit-intro.html#Exercise_30

I downgrade the issue to P3 and close it as soon as you manage to resolve your issue.
Comment 3 Yulia Novozhilova 2011-02-15 15:00:20 UTC
Hope the advice helped. Closing the issue.