Thủ Thuật

Fixes to the “could not create the java virtual machine” error

  • Linkedin
  • Reddit

Summary :

could not create the Java virtual machine

You may encounter the “could not create the Java virtual machine” error when you try to start an application that uses Java. This post from MiniTool tells you the reasons for the annoying issue. Besides, you can find some feasible methods to fix it in this post.

Could Not Create the Java Virtual Machine

It’s annoying to encounter the “could not create the Java virtual machine” issue. There are some main reasons for the error: could not create the Java virtual machine.

1. Wrong parameters or options call Java.

2. Java global maximum heap memory is not high enough.

3. Java executable files and/or applications require administrative permissions.

Now, let’s see how to fix the annoying issue.

Also see: What Version of Java Do I Have? Complete Guide to Check It

How to Fix Could Not Create the Java Virtual Machine

Set up a New System Variable for Java

First, you can try to set up a new system variable for Java to fix the “could not create the Java virtual machine” error. Here is how to do that:

Xem Thêm :  Biệt danh hay theo tên thú vị bựa cho nam nữ, bạn bè, người yêu, facebook

Step 1: Press the Windows + R keys at the same time to open the Run dialogue box. Type sysdm.cpl and press Enter to open the System Properties screen.

Step 2: Navigate to the Advanced tab and click the Environment Variables…. option.

click the Environment Variables.... option

Step 3: Under the System Variables part, you need to click New….

Step 4: Set the Variable name to _JAVA_OPTIONS and the Variable value to –Xmx512M and click OK to save the changes.

After that, restart your PC to check if the “could not create the Java virtual machine” error has gone. If not, try the next solution.

Open Java.exe with Admin Rights

Then, you can also try to open Java.exe with admin rights to fix the “could not create Java virtual machine” issue. Follow the steps below to fix that:

Step 1: Type Java in the Search box. Then right-click it and select Open file location to open the Java’s folder in File Explorer.

Step 2: Now you can right-click the java.exe and select Properties.

Step 3: Select the Compatibility tab. Select the Run this program as an administrator option.

Step 4: Select the Apply option and click OK to close the window.

Reinstall Java

The last method for you to fix the “could not create the Java virtual machine” error is to reinstall Java. You can follow the instructions below.

Step 1: Press Win + S to open Search. Then search for Control Panel and launch it.

Step 2: In Control Panel, select View by: Category on the upper right corner. Then click Uninstall a program.

Xem Thêm :  Cách căn lề trong word 2013, 2016, 2010, 2007 dễ dàng

click Uninstall a program

Step 3: Select each Java-related program from the list and then click Uninstall. Follow the on-screen instructions to finish the process.

Step 4: When all the Java programs are uninstalled, restart your computer. Visit the Java official website to reinstall the Java environment.

Then you can check if “could not create the Java virtual machine” error is removed.

Also see: A Quick Fix Guide to Application Blocked by Java Security Issue

Final Words

After reading this post, you should know how to get rid of the “could not create the Java virtual machine” error. If you have any confusion about the methods, leave a comment below and we’ll reply to you as soon.

  • Linkedin
  • Reddit


Xem thêm bài viết thuộc chuyên mục: Thủ Thuật
Xem thêm bài viết thuộc chuyên mục: Thủ Thuật

Related Articles

Back to top button