You seem to be running on Windows, not Linux / UNIX. Windows path separator is ; , not : In addition, you did not put the JAR file in the classpath. So what do you want:
java -cp aJar.jar;junit-4.10.jar org.junit.runner.JUnitCore TestOne
This, of course, assumes that both jars are in the current directory. You should also always avoid putting classes in the default package.
source share