File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Beginning Java and the fly likes java.lang.OutOfMemoryError Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "java.lang.OutOfMemoryError" Watch "java.lang.OutOfMemoryError" New topic


Pete Low

Joined: May 25, 2005
Posts: 10
Hi guys,

I was doing a compilation and the following msg appears :

The system is out of resources.
Consult the following stack trace for details.

Any ideas how I can solve this?
Arjun K
Ranch Hand

Joined: Mar 09, 2005
Posts: 39

OOME during compile time comes only when JVM doesn't have enough Virtual Memory to do compilation.

Try increasing the heap and stack sizes with -J-Xms, -J-Xmx, -J-XX:NewSize,
-J-XX:MaxNewSize VM options.

Arjun K.
I agree. Here's the link:
subject: java.lang.OutOfMemoryError
jQuery in Action, 3rd edition