×

Discussion Board

Results 1 to 8 of 8
  1. #1
    Registered User
    Join Date
    Jan 2008
    Posts
    4

    java.lang.OutOfMemoryError: Java heap space

    ghetting above exception when running through net beans how to resolve it.

  2. #2
    Regular Contributor
    Join Date
    Dec 2007
    Posts
    62

    Re: java.lang.OutOfMemoryError: Java heap space

    The error usually occurs if u are storing data in a buffer more than its size . ex : byte[] b = new byte[100];
    and b has 1000 kb of data . But to actually solve your problem u need to send the part of the code where this exception is being raised

  3. #3
    Registered User
    Join Date
    Jan 2008
    Posts
    4

    Re: java.lang.OutOfMemoryError: Java heap space

    hey i just configured my netbeans to j2me polish ...............
    and i am just trying to run my sample midlet of j2me polish but i am unable to run it ????????

  4. #4
    Regular Contributor
    Join Date
    Dec 2007
    Posts
    62

    Re: java.lang.OutOfMemoryError: Java heap space

    Quote Originally Posted by abhilashm View Post
    hey i just configured my netbeans to j2me polish ...............
    and i am just trying to run my sample midlet of j2me polish but i am unable to run it ????????
    just copy the build.xml from sample folder in j2meploish to your application's build-impl.xml file and copy build-netbeans.xml to build.xml .Try this i succeded like this hope you will also suceed.

  5. #5
    Registered User
    Join Date
    May 2009
    Posts
    21

    Question Re: java.lang.OutOfMemoryError: Java heap space

    Quote Originally Posted by susrap View Post
    just copy the build.xml from sample folder in j2meploish to your application's build-impl.xml file and copy build-netbeans.xml to build.xml .Try this i succeded like this hope you will also suceed.
    Hi I also got the same error. I want to try the slution but cannot find the file build-netbeans.xml. Niether there is a folder named build which contains netbeans.xml.

    Can you please clarify.

    Thanks in advance!!!!!!
    Last edited by antas512; 2010-05-10 at 11:45. Reason: i was looking for solution in wrong place

  6. #6
    Super Contributor
    Join Date
    Apr 2007
    Posts
    2,708

    Re: java.lang.OutOfMemoryError: Java heap space

    you should have several example projects in the j2me polish directory, something like :
    C:\Program Files\J2ME-Polish2.1.2\samples

    In every sample project there is a build-netbeans.xml file...

    Also, there is a basic WIndows functionality called "Find"... It's under Start->Search...
    With that you could simply tell the search engine that he should look for the build-netbeans file in the J2ME Polish directory... It's obviously handy for other searches as well...
    So now you even learned a handy funcitonality of Windows

  7. #7
    Registered User
    Join Date
    May 2009
    Posts
    21

    Question Re: java.lang.OutOfMemoryError: Java heap space

    Quote Originally Posted by Tiger79 View Post
    you should have several example projects in the j2me polish directory, something like :
    C:\Program Files\J2ME-Polish2.1.2\samples

    In every sample project there is a build-netbeans.xml file...

    Also, there is a basic WIndows functionality called "Find"... It's under Start->Search...
    With that you could simply tell the search engine that he should look for the build-netbeans file in the J2ME Polish directory... It's obviously handy for other searches as well...
    So now you even learned a handy funcitonality of Windows
    Sorry I troubled u Tiger but I already mentioned I was looking in wrong place (only in application project folder). But thanks for your support. We have to completely replace the content of the two files or just add the new content before the end of XML file.

    Sorry troubling u once agin

  8. #8
    Registered User
    Join Date
    May 2009
    Posts
    21

    Smile Re: java.lang.OutOfMemoryError: Java heap space

    Finally after copying the files from Program Files\J2ME-Polish\samples and replacing the application project XML files the project didn't showed the OutOfMemory problem.

    Now we may get a error regarding file not found just need to give the path and name of project Midlet file and we are done.

    Thanks Tiger for your help....!!!!!!!!!!

Similar Threads

  1. Problem with eglSwapBuffers and heap corruption
    By greatape in forum Symbian Media (Closed)
    Replies: 2
    Last Post: 2007-05-24, 03:35
  2. 3rd ed emulator heap size
    By apsaarin in forum Symbian Tools & SDKs
    Replies: 7
    Last Post: 2007-03-15, 02:29
  3. info about heap size
    By gmatkar in forum Mobile Java General
    Replies: 5
    Last Post: 2006-03-10, 04:05
  4. what is considered heap?
    By dannyai in forum Mobile Java General
    Replies: 8
    Last Post: 2003-07-16, 08:02
  5. Replies: 0
    Last Post: 2003-06-13, 15:23

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×