Eclipse can't find Java Virtual Machine?

Am
6

Hey I'm developing a Minecraft client right now and I want to test it in Eclipse, it always pops up a window saying "Error: Could not create the Java Virtual Machine." Error: A fatal execption has occurred. If I then click on "OK" a second window will open saying "'Launching Client has encountered a problem. Can't connect to VM". And in the console is "Unrecognized option: -Xincgc". Ask for help on how to fix this

Ba

Which Java version do you use? I think Minecraft only supports Java 8. Uninstall Java completely and then install Java SE 8.

Am

Have Java 9

he

You need Java SDK 8: https://github.com/...x86_64.msi This is the open source version and 100% compatible with Oracle.

Uninstall all other Java versions.

Am

I have already found the error it was due to the debug configurations but thank you very much!

Ba

But Minecraft uses Java 8. If you use Java 9 instead, there's a risk that your Minecraft client will not work properly.

Am

Ne it was not the error already found