JVM Failed to start while installing java

0

I installed java, and then realized that it was the wrong version, so I tried reinstall Java, but mid installation it said "JVM Failed to start". I tried to install JDK 1.8.0_221. Any help would be great.

big papa

Posted 2019-09-29T16:56:56.490

Reputation: 1

What version of Java were you installing? And where did you get it from? – Peter – 2019-09-29T18:00:28.443

Please edit the question to limit it to a specific problem with enough detail to identify an adequate answer. Avoid asking multiple distinct questions at once. See the How to Ask page for help clarifying this question. – Ramhound – 2019-09-29T18:11:26.700

I edited the question so it would be more clear. I had jdk12.0.something and I tried to install jdk1.8.0_221. Also, any other java application wouldn't work and throw out this error. Edit: I just installed java 1.8.0_221 again. The folders in C:/Program Files/Java are just as I remember they were, and I found jvm.dll. – big papa – 2019-09-30T05:39:40.673

Answers

0

I found a solution. I installed java, and it gave an error. Then, I changed _JAVA_HOME to -Xmx2g. That worked. Thanks for the help!

big papa

Posted 2019-09-29T16:56:56.490

Reputation: 1