java.lang.OutOfMemoryError: Java heap space

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Solutions on the web

via Coderanch by saikrishna cinux, 1 year ago
via gmane.org by Unknown author, 2 years ago
via Google Groups by lbr...@gemale.com, 2 years ago
java.lang.OutOfMemoryError: Java heap space
at java.nio.HeapCharBuffer.(HeapCharBuffer.java:39)
at java.nio.CharBuffer.allocate(CharBuffer.java:312)
at com.sun.tools.javac.util.DefaultFileManager.decode(DefaultFileManager.java:582)
at com.sun.tools.javac.util.DefaultFileManager.access$300(DefaultFileManager.java:54)
at com.sun.tools.javac.util.DefaultFileManager$RegularFileObject.getCharContent(DefaultFileManager.java:744)
at com.sun.tools.javac.util.DefaultFileManager$RegularFileObject.getCharContent(DefaultFileManager.java:637)
at com.sun.tools.javac.main.JavaCompiler.readSource(JavaCompiler.java:416)
at com.sun.tools.javac.main.JavaCompiler.parse(JavaCompiler.java:480)
at com.sun.tools.javac.main.JavaCompiler.parseFiles(JavaCompiler.java:697)
at com.sun.tools.javac.main.JavaCompiler.compile(JavaCompiler.java:629)
at com.sun.tools.javac.main.Main.compile(Main.java:761)
at com.sun.tools.javac.main.Main.compile(Main.java:686)
at com.sun.tools.javac.main.Main.compile(Main.java:675)
at com.sun.tools.javac.Main.compile(Main.java:70)

Users with the same issue

Once, 4 months ago
Samebug visitor profile picture
Unknown user
Once, 3 months ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago

Write tip

Know the solutions? Share your knowledge to help other developers to debug faster.