title: Importing a class from a jar file into IntelliJ
body: <p>I'm having difficulty importing a class and method from a jar file I've created into my .java file in IntelliJ. It's a simple method to print to the console and contains the following.</p>
  
  <pre><code>public class gazutils {
      public static print(Object text){
          System.out.println(text);
      }
  }
  </code></pre>
  
  <p>Whenever I try to import this  with </p>
  
  <pre><code>import gazutils.*
  </code></pre>
  
  <p>I get <em>cannot resolve symbol 'gazutils'</em></p>
  
  <p>I am creating the .jar file and importing it into the project structure as follows:</p>
  
  <p><strong>Project Structure > Artefacts > Add > Jar > From modules with Dependencies</strong></p>
  
  <p>Then</p>
  
  <p><strong>Build > Build Artefacts</strong></p>
  
  <p>I then copy the .jar file into the project structure I want to use the .jar file in and </p>
  
  <p><strong>Right Click the jar > Add as Library</strong></p>
  
  <p>This adds it as a dependency, but I still don't seem to be able to access or import the class or method</p>