title: Why can't I call a function from my custom library?
body: <p>I made a library in java to make calling maps from google maps easier and faster but I can't seem to import the jar file correctly. I followed the answer I found on this page <a href="https://stackoverflow.com/questions/3612567/how-to-create-my-own-java-libraryapi">How to create my own java library(API)?</a> but it seems I am still doing something wrong. </p>
  
  <p>I named the package in the library com.googleMaps and then I exported the .jar file and then added that .jar file into my build path of another project. I then made a class, imported <code>com.googleMaps.StaticMap;</code> Which gave me an unused library warning. Finally inside my main method I called <code>DisplayMaps("string");</code> which is a method inside of <code>StaticMap;</code> But it gives me an error saying the Method does not exist but the unused warning on the import went away. </p>
  
  <p>Error is: The method DisplayMap(String) is undefined for the type MapTest1</p>
  
  <p>Code: </p>
  
  <pre><code>import com.googleMap.StaticMap;
  
  public class MapTest1
  {
      public static void main(String[] args)
      {
          DisplayMap("A Url Goes here"); // This is where im getting the error
      }
  }
  </code></pre>