Skip to Main Content

Java Database Connectivity (JDBC)

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

junit in eclipse please help!!!

843859Mar 17 2006 — edited Jun 19 2007
Hi,

I am a real newbie with eclipse, java etc etc and am trying to install junit for eclipse I have downloaded junit4.0.zip and pasted the extracted folder to my plugins folder in eclipse. I then set the class path as per instructions in dos:
"set CLASSPATH=C:\Program Files\junit4.0\junit-4.0.jar;C:\Progra
m Files\junit4.0\;f:\data\proj\"

then run the test:
"java org.junit.runner.JUnitCore org.junit.tests.AllTests"
and gives output: "OK(257 tests)"

so after restarting eclipse I am expecting that junit variables will not be underlined in red anymore and I can run junit tests. But all I get is a pop up error dialog box saying:

"Cannot find class 'junit.framework.TestCase' on project build path"

Can anyone please help I really need to get this working

much appreciated
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jul 17 2007
Added on Mar 17 2006
5 comments
4,667 views