java.lang.OutOfMemoryError: Java heap space Getting that error? Try allocating more heap space when executing your Java application. Use this command from your command line: java -Xmx512m YourApplication