jQuery in Action, 2nd edition*
The moose likes Beginning Java and the fly likes OutOfMemoryError Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "OutOfMemoryError" Watch "OutOfMemoryError" New topic
Author

OutOfMemoryError

Suka Hati
Ranch Hand

Joined: Oct 28, 2004
Posts: 56
hi there,
when i tried to compile my program, i got this error....

Exception in tread "main" java.lang.OutOfMemoryError

what are this error all about....

plzz help me
Mike Gershman
Ranch Hand

Joined: Mar 13, 2004
Posts: 1272
You probably have an uncontrolled loop that is either calling methods or creating objects over and over.

Can you post your code? If you do, please use the CODE button below to surround you code with tags that keep your indentation intact so we can read your program easily.


Mike Gershman
SCJP 1.4, SCWCD in process
David Harkness
Ranch Hand

Joined: Aug 07, 2003
Posts: 1646
Originally posted by Suka Hati:
when i tried to compile my program, i got this error....

Exception in tread "main" java.lang.OutOfMemoryError
Are you sure you got that exception while compiling (javac) and not running (java) your program (after successfully compiling it)?
Suka Hati
Ranch Hand

Joined: Oct 28, 2004
Posts: 56
sorry.....i got the error when i try to run the program....nothings happen when compiling
 
 
subject: OutOfMemoryError
 
Similar Threads
Tomcat & MS Active Directory
Encapsulation and getter&setter methods
i have a Errors in Hibernate Query
ServletContext
File not found error