• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

OutOfMemoryError

 
Suka Hati
Ranch Hand
Posts: 56
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 1272
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
David Harkness
Ranch Hand
Posts: 1646
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 56
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
sorry.....i got the error when i try to run the program....nothings happen when compiling
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic