A stand-alone application (JAR file) is throwing the following error in our Production environment and the same application is working fine in our Development environment. Both environments are having Java 1.2.
The usage of application is to prepare some text files. The size of text file is in KBs. The application is configured with log4j.

Exception in thread "main" java.lang.OutOfMemoryError <<no stack trace available>>

In Production environment, we have executed the same application temporarily with Java5 classpath, then, the application is working fine.

Please let me know the reason (heap related or version related) for this error.........

If the error is heap related, how come the application works with high-end application. If the error is version related, we have prepared the application JAR file with java 1.2 version.

Thanks in Advance......!

<!-- / message -->