I'm using Intellij IDEA and getting this error:
Exception in thread "main" 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
My code is,
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("kk.data"));
BufferedWriter bw = new BufferedWriter(new FileWriter("samlog.csv"));
String line;
while((line = br.readLine()) != null)
{
String[] values =line.split(" ", -1);
bw.write(values[0] + "," + values[3] + "," + values[5] + "\", "+values[6]+ "," + values[8] + "\n");
}
br.close();
bw.close();
}
}
What could be the problem which is resulting this error and how can I resolve?
I also made this screenshot:

com.intellij.rt.execution.application.AppMain.main(AppMain.java:122)and it seems there is something wrong with your compilation or building phase and it cannot find your compiled class to run.papackage si;?papackage si;topackage si;