Summary: | JUnit import fails | ||
---|---|---|---|
Product: | [Eclipse Project] JDT | Reporter: | William Davis <wdavis01> |
Component: | Core | Assignee: | Philipe Mulet <philippe_mulet> |
Status: | RESOLVED WONTFIX | QA Contact: | |
Severity: | normal | ||
Priority: | P3 | ||
Version: | 2.0.2 | ||
Target Milestone: | 2.1 M4 | ||
Hardware: | Sun | ||
OS: | Solaris | ||
Whiteboard: |
Description
William Davis
2002-12-05 09:14:17 EST
You need to refer the JUnit project as a prerequisite of your project. Do so in the Java build path dialog, otherwise junit packages are not seen from your project. Could you please specify which build you used in order to reproduce the weird message you got? Thanks. Eclipse has indeed some built-in JUnit facility, but it is not added to your classpath by default. Only java.lang.* is a free import in Java. This is the law. Closing Although java.lang.* may be the only default Java import, there are javax.* and other items found depending on the compiler installation. I can see an advantage forcing the user to include something in CLASSPATH to specify which version of JUnit is being used because a normal compile would already do that. I have a version of JUnit that is used during compile outside of Eclipse, but my concern was for interactions with a JUnit that already seems to be in Eclipse. As a side note, maybe a bugzilla issue, I received an email from Philippe's reply but not for the earlier one. According to Help/About: Version 2.0.2 Build ID 200211071448 It was the latest official release for Solaris when I downloaded it earlier this week. |