Compiling a Large Number of Files With JDK 1.1

Compiling a Large Number of Files With JDK 1.1

Using the javac utility provided with the Java Development Kit (JDK) 1.1.x to compile a large number of source files often fails with an OutOfMemoryError. To avoid this error, you need to increase the amount of memory available for the compiler, but there is no apparent option supported by javac that will allow you to do so.

To address the problem, you must first understand that javac uses the java interpreter, which is also supplied with the JDK. In other words, the javac compiler calls the java interpreter, and it is the interpreter that generates the OutOfMemoryError. To avoid the problem, you need to have the interpreter allocate more memory than the default amount. This can be accomplished by using the javac’s

See also  How HealthStream Learning Center Supports Healthcare Education and Compliance

About Our Editorial Process

At DevX, we’re dedicated to tech entrepreneurship. Our team closely follows industry shifts, new products, AI breakthroughs, technology trends, and funding announcements. Articles undergo thorough editing to ensure accuracy and clarity, reflecting DevX’s style and supporting entrepreneurs in the tech sphere.

See our full editorial policy.

About Our Journalist