Search:

Type: Posts; User: JavaPF

Search: Search took 0.19 seconds.

  1. [SOLVED] Re: OutOfMemoryError: Java heap space

    RESULT!!! :D Knew we would get there in the end...

    With the program that removes white space, you should make it skip all the lines that are irrelevant and only start to remove the white space...
  2. [SOLVED] Re: OutOfMemoryError: Java heap space

    Did you try:

    I'm interested to know if that works?!

    I think maybe there is too much junk in the .wmdb file. Have you tried saving a .txt file in your application of a similar size?

    Yes...
  3. [SOLVED] Re: OutOfMemoryError: Java heap space

    OK, in the command prompt, navigate to the location of your Editor class, then try the command:

    java -Xmx128m Editor
  4. [SOLVED] Re: OutOfMemoryError: Java heap space

    Do you use the Eclipse IDE John?

    To set java heap size in Eclipse you have 2 options:

    1. Edit eclipse-home/eclipse.ini to be something like the following and restart Eclipse.

    -vmargs...
  5. [SOLVED] Re: OutOfMemoryError: Java heap space

    1GB of RAM is more than enough.

    What happens when you type java -Xms32m -Xmx128m into a command prompt?
  6. [SOLVED] Re: OutOfMemoryError: Java heap space

    Hmm.. That does actually all look OK to me.

    I think we need to try to get your head space increased. Do you know how much memory your computer has?
  7. [SOLVED] Re: OutOfMemoryError: Java heap space

    I've never heard of you being able to hard code the heap space but I may be wrong.

    I suggest you look at how the program is coded.. It could be poor coding that is causing this. A 10mb file...
  8. [SOLVED] Re: OutOfMemoryError: Java heap space

    Good evening John,

    You need to increase your Java heap space.

    If Java runs out of memory, the following error occurs:

    Exception in thread "main" java.lang.OutOfMemoryError: Java heap space
    ...
Results 1 to 8 of 8