title: package org.apache.commons does not exist
body: <p>I'd love to use <code>EnumeratedIntegerDistribution()</code> from <code>org.apache.commons.math3.distribution</code>, to get discrete probabilities distribution</p>
  
  <pre><code>int[] nums_to_generate          = new int[]    { -1,   1,    0  };
  double[] discrete_probabilities = new double[] { 0.4, 0.4, 0.2  };
  </code></pre>
  
  <p>I'm working wiht jdk7 , on windows Xp, running from Command Line </p>
  
  <p>I do: </p>
  
  <ul>
  <li><p>add to my source file</p>
  
  <pre><code>import org.apache.commons.math3; 
  </code></pre></li>
  <li>download commons-math3-3.2 and unpackage it to my current folder</li>
  <li><p>compile my source with the classpath: (either)</p>
  
  <pre><code>javac -cp ./commons-math3-3.2/commons-math3-3.2.jar:. ConflictsAnimation.java
  javac -cp   commons-math3-3.2/commons-math3-3.2.jar   ConflictsAnimation.java
  </code></pre></li>
  </ul>
  
  <p>Still I've got a mysterious </p>
  
  <pre><code>    "error: package org.apache.commons does not exist"
  </code></pre>
  
  <p>Who knows what happens ? I really need a help.</p>
  
  <p>Note:</p>
  
  <blockquote>
    <p>compilation (and run) is OK without the classpath and without the
    import of "apache" and call to numeratedIntegerDistribution().</p>
    
    <p>compilation with the classpath and without the "appache"s give
    nonsense errors.</p>
  </blockquote>
  
  <p>Thanks a lot in advance for your great skills, the programmers!</p>
  
  <hr>
  
  <h2>Here is short demonstration:</h2>
  
  <pre><code>import java.lang.Math.*;
  import org.apache.commons.math3;
  
  public class CheckMe {
  
      public CheckMe() {
  
          System.out.println("let us check it out"); 
          System.out.println(generate_rand_distribution (10));
      }
  
      private static int[] generate_rand_distribution (int count){
      int[] nums_to_generate          = new int[]    { -1,   1,    0  };
          double[] discrete_probabilities = new double[] { 0.4, 0.4, 0.2  };
      int[] samples = null;
  
          EnumeratedIntegerDistribution distribution = 
          new EnumeratedIntegerDistribution(nums_to_generate, discrete_probabilities);
  
          samples = distribution.sample (count);
  
      return (samples);
      }   
  
      public static void main (String args[]) { 
          System.out.println("Main: ");
          CheckMe  animation = new CheckMe();  
      } 
  }
  </code></pre>