title: How do I email java files to someone and have javac compile correctly?
body: <p>I have several class files in a project (residing in the default package).  My teacher needs me to email him the java files only, and these files need to compile on his computer without errors.  To test this out, I copied my class files to another folder and ran javac myself.  I get errors when I try to compile that say <code>package org.junit does not exist import static or.junit.Assert.*;</code>  There are other errors as well but I'm assuming they're probably related to that first one.</p>
  
  <p>Most of the class files in my directory are indeed test classes that I'm using to test methods with JUNIT.  What files do I need to include or what changes do I need to make so that anyone could simply use <code>javac</code> and compile my <code>java</code> files?</p>
  
  <p>Here's a sample of one of my classes:</p>
  
  <pre><code>import static org.junit.Assert.*;
  
  import org.junit.Test;
  
  public class SetRadiusTest {
  
      @Test
      public void test() {
          Circle test = new Circle(200, 0, 0);
          test.setRadius(200);
          assertEquals(100, test.getRadius(), 1);
  
          test.setRadius(50);
          assertEquals(50, test.getRadius(), 1);
      }
  
  }
  </code></pre>