The program isn't crashing, but probably throwing and OutOfMemoryError. You can increase the JVM memory, but for files that size might not do much good. You will probably have to read the file...