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.

