Suddenly, [javac] java.lang.OutOfMemoryErrorduring compile

I have been building an application using ant on jdk 1.4.2 for about 2.5 years. No problem. Today I'm getting the error during compilation

[javac] java.lang.OutOfMemoryError

I compiled just yesterday afternoon and did not get this error. Here's what I did differently.

1. The application requires several jar files that it takes from a repository.

2. Two of the jar files it needs, however, go into a lib directory of the web app I'm trying to build.

3. I modified a properties file so that the application would get the two jars from the same repository as everything else. Then, I'm simply doing

ant clean compile war

This shows me messages that jar files, including the two problem jar files, are fetched. However, the jar file that has the first problem duirng compilation is 47K in the repository but only about 900 bytes in the lib directory of the application.

Examining the memory of the Linux server that the compile is running on, there appears to be nothing singificant using memory, and as I said, I've been able to do the same compilation for over two years without a problem. What might be going on? It's not just an issue of using compiler flags for more mremory (and exactly how to pass those to the ant command I haven't figured out). Any suggestions? We're all stuck on this. Thanks.

[1367 byte] By [klitwaka] at [2007-10-3 11:49:22]
# 1
Try [url= http://java.sun.com/j2se/1.4.2/docs/tooldocs/solaris/javac.html#J]javac -J-Xmx128m[/url].
tschodta at 2007-7-15 14:22:52 > top of Java-index,Developer Tools,Java Compiler...
# 2
Changing the heap size doesn't ke any difference. I undid the script file chagnes I made and hat deosn't make any diference either. It's like wahtever is now wrong is outside of what I'm doing. THe system has plenty of file spze too.
klitwaka at 2007-7-15 14:22:52 > top of Java-index,Developer Tools,Java Compiler...
# 3
Well, try teasing some information out of javac, egjavac -J-XX:+PrintGCDetails
tschodta at 2007-7-15 14:22:52 > top of Java-index,Developer Tools,Java Compiler...
# 4
Hi,Even I have got this problem, but the difference is I am using JDK 1.3. I have tried using memoryMaximumSize attribute of ant javac but without any success. Did you manage resolve this problem?Regards,Rakhi
rakhi007a at 2007-7-15 14:22:52 > top of Java-index,Developer Tools,Java Compiler...