File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Java in General and the fly likes how outofMemoryError canbe avoided Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Customer Requirements for Developers this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » Java in General
Reply locked New topic

how outofMemoryError canbe avoided

Giri dhar

Joined: Aug 31, 2007
Posts: 7
I have modified and addded certain files related to my project work.When I run bc(buildclean)I recieve the following error followed by warnings.and I could not proceed further..the error msg i recieved when i ran bc on my machine is warning: getYear() in java.util.Date has been deprecated
[javac] year.add(currMonth + " " + (cal.getTime().getYear()+19
[javac] ^
[javac] The system is out of resources.
[javac] Consult the following stack trace for details.
[javac] java.lang.OutOfMemoryError
[javac] <<no stack trace available>>


There are no errors when i run onjdk 1.4.but i reciev this on jdk 1.3.
I tried java -Xmx128m on console but i still recieve this: java -Xms128m
>Error occurred during initialization of VM
>Incompatible initial and maximum heap sizes .server is jboss2 and my machine is windows xp.
[ September 04, 2007: Message edited by: Bear Bibeault ]
Joe Ess

Joined: Oct 29, 2001
Posts: 9126

Welcome to the JavaRanch.
Please do not post the same question more than once. It causes confusion and duplication of effort as the community tries to help everyone.

[How To Ask Questions On JavaRanch]
I agree. Here's the link:
subject: how outofMemoryError canbe avoided
It's not a secret anymore!