Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
    Bookmark Topic Watch Topic
  • New Topic

how outofMemoryError canbe avoided

 
Giri dhar
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Report post to moderator
Hi,
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


Util.java:52: warning: getYear() in java.util.Date has been deprecated
[javac] year.add(currMonth + " " + (cal.getTime().getYear()+19
00));
[javac] ^
[javac]
[javac]
[javac] The system is out of resources.
[javac] Consult the following stack trace for details.
[javac]
[javac] java.lang.OutOfMemoryError
[javac] <<no stack trace available>>

BUILD FAILED..


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
Bartender
Posts: 9279
10
Linux Mac OS X Windows
  • Mark post as helpful
  • send pies
  • Report post to moderator
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.
 
    Bookmark Topic Watch Topic
  • New Topic