Can't connect to VM Socket closed Error Minecraft Client Eclipse?

Re
4

I'm currently programming a Minecraft client, when I didn't have a PC I did that on my father's PC, but now I have my own and when I start the client I get this error message in the console:

Picked up _JAVA_OPTIONS: -Xmx1024m

Unrecognized option: -Xincgc

What should I do or do I have to install something other than Java SE Development and OpenJDK?

Sh

Has something to do with the Java version. The parameter no longer exists in the latest.
See here

Re

Now when I want to open Eclipse it says: "Version 1.8.0_281 of the JVM is not suitable for this product. Version: 11 or greater is required."

Sh

You need Java 11 for current Eclipse versions. You can choose a different JDK for the project itself.

Re

I now get the error message in Eclipse "Can't connect to VM

Socket operation on nonsocket: configureBlocking "