Share via

Java can't install.

Anonymous
2022-11-29T05:29:16+00:00

I have been trying to fix java due to it not properly opening .jar files. I tried to uninstall and then when i reinstalled, it diddnt work and said "could not create the java virtual machine." After that it closes, puts 3 of the same error message on my screen, and then says that it was installed. I have checked and it doesnt install at all. I've tried reinstalling it 3 times and nothing has worked.

Windows for home | Windows 10 | Devices and drivers

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments

1 answer

Sort by: Most helpful
  1. Anonymous
    2022-11-29T06:32:21+00:00

    Hi, I'm Robinson, and I’m happy to help you today.

    Usually, the error "could not create the java virtual machine" indicates that Java doesn’t have enough available memory on your system to launch the VM client. You can increase the amount of system memory Java can use on your system in the System Variables.

    1-Click on Start, search for "Edit the System Environment Variables" and click on that

    2-Click on the "Environment Variables"

    3-Under the System Variables pane, select New

    4-Set the Variable name as _JAVA_OPTIONS and set the Variable value as -Xmx1024M

    5-This will adjust the allowable memory for Java to 1024Mb

    6-Then click on Ok to save the changes and try to install Java again, if the problem persists try to use the offline installer and run as Administrator

    10+ people found this answer helpful.
    0 comments No comments