We will build a simple class to test (Demo) and a testing environment based on JUnit (TestDemo).
To compile from command line (on linux) use
javac -classpath './:junit.jar' TestDemo.javajunit.jar file and the present directory are on the classpath.
To run from command line (linux)
java -classpath './:junit.jar' TestDemo