PaulsCode Forum

Developers Corner => Programming => Topic started by: Zewett on September 24, 2012, 10:04:21 PM

Title: Can someone help me with this?
Post by: Zewett on September 24, 2012, 10:04:21 PM
I keep getting an error from java

it says

"Error: Could not create the java virtual machine."
"Error: A fatal exception has occured. Program will exit."

any help guys? please
Title: Re: Can someone help me with this?
Post by: Paul on September 24, 2012, 10:37:14 PM
This is a common error, and unfortunately it has a lot of causes.  The most common reason for this is that Java is not properly installed on the host computer.  It could be an incomplete update, multiple versions conflicting with each other, or an out dated version.  The best first step is to completely remove everything related to Java from the host computer.  In Windows, this is done from the control panel "add or remove programs".  Then download and install the full JDK from Oracle's website.

If that doesn't fix the problem, another thing to check (if this is a program you wrote yourself) is the settings for the heap space.  You may need to increase it if your program uses a lot of memory, or decrease it if your host computer is low on memory.

Let us know a little more background information if you don't mind.  What OS and architecture are you running, computer specs, Java version, and details of the application(s) which have the problem.  If its something you wrote yourself, could you post the launch script/ options?  Could you post any console output as well?