Failed to create the Java VM Reason: not enough memory.

hello, I am using jalbum to organized some pictures, while in the middle of my task, I meet an error, the error message said that JNI exception: failed to create the Java VM, the Reason is not enough memory.
JNI exception: failed to create the Java VM
Reason: not enough memory.
When I read the error message above, it said that I don't have enough memory, so I checked on my RAM that might be defective, all my RAM is running at a total of 4GB, that is why its impossible to not to have enough memory, I already restarted my computer to refresh the memory, but same thing happens, same error encountered, please share some ideas on my problem, thanks in advance.
