This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
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 Murach's Java Servlets and JSP this week in the Servlets 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
 
It is sorta covered in the JavaRanch Style Guide.
 
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