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 62325 - junit.jar not in module classpath
Summary: junit.jar not in module classpath
Alias: None
Product: apisupport
Classification: Unclassified
Component: Project (show other bugs)
Version: 5.x
Hardware: All All
: P2 blocker (vote)
Assignee: Jesse Glick
Depends on:
Blocks: 77907
  Show dependency tree
Reported: 2005-08-15 17:19 UTC by Geertjan Wielenga
Modified: 2006-06-14 14:56 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Note You need to log in before you can comment on or make changes to this bug.
Description Geertjan Wielenga 2005-08-15 17:19:06 UTC
I used a continuous dev build from today, but also tried this with a continuous
dev build from end of last week sometime.

1. Create module project.
2. Create empty JUnit test.
3. Compile it. The build fails and the Output window shows this:

Created dir: C:\mymodules\module7\build\test\unit\classes
Compiling 1 source file to C:\mymodules\module7\build\test\unit\classes
C:\mymodules\module7\test\unit\src\a\ package
junit.framework does not exist
import junit.framework.*;
C:\mymodules\module7\test\unit\src\a\ cannot find symbol
symbol: class TestCase
public class NewEmptyJUnitTest extends TestCase {
2 errors
E:\nbdev\netbeans\harness\common.xml:268: Compile failed; see the compiler error
output for details.
BUILD FAILED (total time: 1 second)
Comment 1 Jesse Glick 2005-08-15 18:42:05 UTC
Reproducible only if neither your build nor your target platform are

Checking in build.xml;
/cvs/apisupport/harness/release/build.xml,v  <--  build.xml
new revision: 1.3; previous revision: 1.2
Comment 2 pzajac 2005-11-22 10:05:24 UTC
Comment 3 Geertjan Wielenga 2006-06-14 09:13:18 UTC
Using NetBeans IDE 5.5 Beta (as well as daily builds etc afterwards), I'm 
finding that JUnit is not on the classpath (same steps and error messages as in 
original issue).
Comment 4 Geertjan Wielenga 2006-06-14 09:14:02 UTC
Changed version from 5.0 to 5.5.
Comment 5 Jesse Glick 2006-06-14 14:53:56 UTC
The bug in 5.0 was fixed, do not reopen. Need a fresh bug.