title: Import custom package into project
body: <pre><code>IntelliJ IDEA 12.1.4 Community Edition
  Fedora release 18 (Spherical Cow)
  </code></pre>
  
  <p>Hello,</p>
  
  <p>I have created a package name called <code>com.insystems.gumball</code></p>
  
  <p>I have a class called Gumball with some functions.</p>
  
  <pre><code>package com.insystems.gumball;
  
  public class Gumball {
      /* functions here */
  }
  </code></pre>
  
  <p>Now I have created a new command line app project called gumball_test</p>
  
  <pre><code>package com.insystems.gumballtest;
  
  import com.insystems.gumball;
  
  public class Main {
  
      public static void main(String[] args) {
          Gumball gb = new Gumball(5);
      }
  }
  </code></pre>
  
  <p>The problem is that I get a:</p>
  
  <pre><code>unused port statement
  </code></pre>
  
  <p>and</p>
  
  <pre><code>cannot resolve symbol gumball
  </code></pre>
  
  <p>Both these projects are in different directories as I want to keep all my packages in a directory that I can import whenever I need them.</p>
  
  <p>I am new to Java and IntelliJ so I am not sure how can I set the path of my packages that can be used in my other projects?</p>
  
  <p>Many thanks for any suggestions,</p>