java.lang.OutOfMemoryError: Java heap space Posted byBrian Risk August 15, 2008 Leave a comment on 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