Oleksandr Savchenko Oleksandr Savchenko - 4 years ago 309
Java Question

Could not find class Java JUnit

I'm begginer in Java. Can you help me to find error?
I run this using command line in Windows from the root folder of project.

java -classpath lib/junit.jar;classes/ua/edu/sumdu/j2se/savchenko/pr2/Task.class
org.junit.runner.JUnitCore ua.edu.sumdu.j2se.savchenko.pr2.tests.TaskTest


My files location:

classes/ua/edu/sumdu/j2se/savchenko/pr2/Task.class
classes/ua/edu/sumdu/j2se/savchenko/pr2/tests/TaskTest.class
lib/junit.jar

Answer Source
java -classpath lib/junit.jar;classes 
org.junit.runner.JUnitCore ua.edu.sumdu.j2se.savchenko.pr2.tests.TaskTest
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download