title: Cannot import weka in IntelliJ
body: <p>I want to write a code with Weka using IntelliJ.
  I downloaded the Weka.JAR file from their website and extracted it in the src folder of my main class.
  So, after creating my project, inside the src folder is something like this :
  <a href="https://i.stack.imgur.com/IV4hw.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/IV4hw.png" alt="Inside src folder" /></a></p>
  <p>and inside the weka folder above is this (downloaded and extracted from their site ) :
  <a href="https://i.stack.imgur.com/uHCez.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/uHCez.png" alt="Inside weka folder" /></a></p>
  <p>and my code does these imports : (This is a template file that I must complete. I'm new to weka)</p>
  <pre><code>import weka.associations.AssociationRule;
  import weka.associations.AssociationRules;
  import weka.associations.BinaryItem;
  import weka.associations.FPGrowth;
  import weka.core.Instances;
  import weka.core.converters.ConverterUtils.DataSource;
  </code></pre>
  <p>Each of these imports leads to a file with <code>.class</code> ending, not <code>.java</code> and I haven't seen any of these kinds of imports. for example, inside the <code>associations</code> directory where I want to import two files with names <code>AssociationRule</code> and <code>AssociationRules</code> is something like this :
  <a href="https://i.stack.imgur.com/9mVHI.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/9mVHI.png" alt="Inside associations folder" /></a></p>
  <p>and of course, IntelliJ marks the last filenames red. It finds packages and folders but not the files. Maybe because they have the <code>.class</code> suffix instead of the <code>.java</code> suffix? I tried to change their suffix to <code>.java</code> but they crashed and their characters were no longer valid. Also, IntelliJ issue didn't resolve.</p>
  <p>by the way, I downloaded the weka.JAR file from <a href="https://waikato.github.io/weka-wiki/downloading_weka/" rel="nofollow noreferrer">here</a> under the other platforms
  <a href="https://i.stack.imgur.com/3JWjq.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/3JWjq.png" alt="IntelliJ cannot find specified files although their names exist" /></a></p>