title: Compiling java app in terminal
body: <p>I'm on linux, created a <code>testjavaapp</code> folder in <code>/home/Downloads</code> directory, then added three files <code>MyApp.java</code>, <code>MyLib.java</code> and <code>hppc-0.4.1.jar</code> files into that folder.</p>
  
  <p><code>MyLib.java</code> starts with:</p>
  
  <pre><code>import java.util.ArrayList;
  import com.carrotsearch.hppc.IntArrayList;
  
  public final class MyLib {
  ...
  </code></pre>
  
  <p>while <code>MyApp.java</code> starts with:</p>
  
  <pre><code>import static MyLib.*;
  import com.carrotsearch.hppc.IntArrayList;
  import java.util.Date;
  
  public class MyApp {
  
      public static void main(String[] args) {
  ...
  </code></pre>
  
  <p>When I execute:</p>
  
  <pre><code>[myself@laptop ~]$ cd Downloads/testjavaapp/
  [myself@laptop testjavaapp]$ javac -cp '.:/home/myself/Downloads/testjavaapp/hppc-0.4.1.jar' MyLib.java
  </code></pre>
  
  <p>the java compiler creates <code>MyLib.class</code> without any problem. But when I execute:</p>
  
  <pre><code>[myself@laptop testjavaapp]$ javac -cp '.:/home/myself/Downloads/testjavaapp/hppc-0.4.1.jar' MyApp.java
  </code></pre>
  
  <p>it barks:</p>
  
  <pre><code>MyApp.java:1: error: cannot find symbol
  import static MyLib.*;
                ^
    symbol: class MyLib
  </code></pre>
  
  <p>It looks like I properly add the <code>.jar</code> library but improperly the local static library. </p>
  
  <p>Could you please help me to fix it?</p>