Login | Register   
LinkedIn
Google+
Twitter
RSS Feed
Download our iPhone app
TODAY'S HEADLINES  |   ARTICLE ARCHIVE  |   FORUMS  |   TIP BANK
Browse DevX
Sign up for e-mail newsletters from DevX


Tip of the Day
Language: Java
Expertise: Intermediate
May 24, 1999

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

Brett Spell
 
Comment and Contribute

 

 

 

 

 


(Maximum characters: 1200). You have 1200 characters left.

 

 

Sitemap
Thanks for your registration, follow us on our social networks to keep up-to-date