How do I increase the maximum Java heap size when compiling?

Question ID : 94
Created on 2009-09-02 at 2:19 PM
Author : Veryant Support []

Online URL :


When compiling a large program I got the following error:

The system is out of resources.
java.lang.OutOfMemoryError: Java heap space 

How do I increase the maximum heap size?


Use the Java -Xmx option. -Xmx128m increases the maximum heap size to 128 MB. 

You can compile with "java -Xmx128m com.iscobol.compiler.Pcc LARGEPROG.CBL", or with "iscc -J-Xmx128m LARGEPROG.CBL"

Back to Original Question