title: Run JUnit from makefile (java.lang.NoClassDefFoundError)
body: <p>I've got a JUnit project that I want to add in a Toolchain. This toolchain using Makefile.
  The Makefile is not in my prject directory.
  So I tryied to put a "test" rules in this makefile as following :</p>
  
  <pre><code>PROJPATH=TestJUnit/Test/
  
  PACKAGE=com/project/package/name/
  
  LIB=$(PROJPATH)lib/
  SRC=$(PROJPATH)src/$(PACKAGE)
  BIN=$(PROJPATH)bin/$(PACKAGE)
  
  ---------  All the acces to lib.jar and .class used during the test ------
  CLASSPATH=.:$(LIB)junit.jar:$(LIB)opal-library.jar:$(SRC):$(BIN)
  
  --------- Name of test in order of wanted excecution -------------  
  JAVASRC=    Test1\
              Test2\
              Test3\
  
  test:
          java -classpath $(JUNITPATH) org.junit.runner.JUnitCore $(JAVASRC)
  </code></pre>
  
  <p>When I try to launch 'make test'</p>
  
  <p>I've got the following message:</p>
  
  <pre><code>JUnit version 4.11
  Exception in thread "main" java.lang.NoClassDefFoundError: Test1 (wrong name: com/project/name/Test1)
  </code></pre>
  
  <p>I try everything possible even to launch the java command in my project directory but nothing work.
  All the .class and .java are respectivly in the bin and src directorys.</p>