Sometimes, while trying to open an application that uses Java, users encounter the “Could not create the Java Virtual Machine” error. Once encountered, this error will not allow you to launch the application which in most cases are games. Users report that they are encountering this particular error message while trying to launch Minecraft or Triple-A which are computer games that use Java for its operation. The error message reads as:
Error: Could not create the Java Virtual Machine
Error: A fatal exception has occurred. The program will exit.
So, if you too are facing this error and want to resolve it fast, then you need to go through the fixes mentioned in this article. The solutions we have provided here, are tested and approved and has helped a number of users to get rid of the issue in no time. So, read on to know more.
There are a couple of factors that can lead to this error. They are:
If you are facing this error, then you can be sure that one of the above three factors are triggering this issue on your Windows system. So, to fix it, you need to follow the fixes as mentioned below.
Fortunately, there are some solutions that you can try to fix this error on your own. Try to follow the fixes exactly as given. Do not skip any step. You may not need to perform all the fixes. Just follow the solutions down the list and find the fix that works to resolve the issue on your system.
Java on Windows uses an initial size of 16MB and a maximum of 64MB. These sizes are set as System Variables, and if the application you are trying to open has a maximum heap memory size larger than that, then it might show you this Java Virtual Machine error.
So, to fix it, you need to increase the System memory allocated to Java. And, the steps for doing that are explained below.
Now, try opening the application for which you faced the error and check if this method resolves the issue.
This process raises the allowed memory to 512MB, and if the allocated memory was the culprit behind the error, then this method will resolve it. However, if it does not resolve the issue, then you need to follow the fix mentioned below.
Several users were able to resolve the “Could not create the Java Virtual Machine” error by simply opening the main Java executable (java.exe) and the application that is showing the error with administrative privileges. The steps to follow to do that are:
Now, try running the application to check if the issue is fixed or not.
These are the complete steps and procedure to resolve the “Could not create the Java Virtual Machine” error on your Windows PC. Hopefully, after going through the procedures as mentioned and applying them accordingly, you can fix the issue by yourself. If you have any query regarding the solutions or are finding it difficult to follow and apply them, you can leave your feedback in the comment section below.