plz let me know why i m getting java.lang.OutOfMemory Exception

Hai Friendz....

Currently i m working on mobile agents and webservices.For running a website on my system i using Netbeans.Through this site i m instantiating agent server.

But my problem when i want to compile remaining java files during this time,i m frequently facing the problem ofJava.lang.OutOfMemoryException.I will be thankful if anyone explains me why i m getting that exception.

[415 byte] By [sujathaa] at [2007-10-2 20:58:49]
# 1
If you mean that you are running javac and getting an out-of-memory exception,try passing larger heap size to the VM. I think the command would bejavac -J-Xmx256m <rest of your command line>to tell the VM to use a 256m heap.
jon999a at 2007-7-13 23:43:32 > top of Java-index,Desktop,Runtime Environment...