New to java. Now I am trying to open, read and search a file, but Eclipse is giving me an error. Here is my code:
import java.io.*;
class Test2 {
public static void main(String[] args) {
try {
BufferedReader doc = new BufferedReader(new FileReader("E:\\Grad\\Project\\test.csv"));
/* String userInput; */
String docCont = new String();
while ((docCont = doc.readLine()) != null) {
System.out.println(docCont);
doc.close();
}
} catch(IOException ie) {
ie.printStackTrace();
}
}
}
The code compiles, but when I try to run it I get this:
A fatal error has been detected by the Java Runtime Environment: Internal Error (javaClasses.cpp:136), pid=5036, tid=4704 fatal error: Invalid layout of preloaded class JRE version: (7.0_67-b01) (build ) Java VM: Java HotSpot(TM) Client VM (24.65-b04 mixed mode windows-x86 ) Failed to write core dump. Minidumps are not enabled by default on client versions of Windows An error report file with more information is saved as: C:\Users\ximinmi\workspace\OldImageReveal\hs_err_pid5036.log If you would like to submit a bug report, please visit: http://bugreport.sun.com/bugreport/crash.jsp
Any idea what this is about? Thanks.