title: intelliJ IDEA: java.lang.ClassNotFoundException
body: <p>I'm using Intellij IDEA and getting this error:</p>
  <blockquote>
  <pre><code>Exception in thread &quot;main&quot; java.lang.ClassNotFoundException: siimport.Pres
  at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
  at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
  at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:331)
  at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
  at java.lang.Class.forName0(Native Method)
  at java.lang.Class.forName(Class.java:264)
  at com.intellij.rt.execution.application.AppMain.main(AppMain.java:122)
  
  Process finished with exit code 1
  </code></pre>
  </blockquote>
  <p>My code is,</p>
  <pre><code>package si;
  import java.io.BufferedReader;
  import java.io.BufferedWriter;
  import java.io.FileReader;
  import java.io.FileWriter;
  import java.io.IOException;
  public class Pres
  {
      public static void main(String[] args) throws IOException {
          BufferedReader br = new BufferedReader(new FileReader(&quot;kk.data&quot;));
          BufferedWriter bw = new BufferedWriter(new FileWriter(&quot;samlog.csv&quot;));
          String line;
          while((line = br.readLine()) != null)
          {
              String[] values =line.split(&quot; &quot;, -1);
              bw.write(values[0] + &quot;,&quot; + values[3] + &quot;,&quot; + values[5] + &quot;\&quot;, &quot;+values[6]+ &quot;,&quot; + values[8] + &quot;\n&quot;);
          }
          br.close();
          bw.close();
      }
  }
  </code></pre>
  <p>What could be the problem which is resulting this error and how can I resolve?</p>
  <p>I also made this screenshot:
  <img src="https://i.stack.imgur.com/G2me5.png" alt="Check this Image" /></p>