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...
Type: Posts; User: JavaPF
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...
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...
OK, in the command prompt, navigate to the location of your Editor class, then try the command:
java -Xmx128m Editor
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...
1GB of RAM is more than enough.
What happens when you type java -Xms32m -Xmx128m into a command prompt?
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?
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...
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
...