How Do You Resolve A Java Language Stack Overflow Error?
A Java Language stack overflow occurs when the size of memory required by the stack of the Java program is greater than what the Java Runtime Environment has configured for the application. Stack overflows commonly occur due to deeply-nested applications or through infinite loops created in error by the programmer in the application. Graphics intensive programs commonly require larger Java stacks than the default value created by the Runtime Environment. Step 1 Open the DOS prompt on your computer by selecting the “Start” menu and type “command” in the search text field followed by the “Enter” key. Step 2 Change the directory to the program that you are going to resolve the Java Language Stack Overflow error. To do this, type “cd ” followed by the fully qualified directory path of the class files. An example of this is: “cd c:\myjavaprograms”. Step 3 Change the max Java stack size for the program to 1024 kilobytes. This will determine if your program’s stack overflow is due to a deeply