Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » Cannot connect to VM | Socket closed
Cannot connect to VM | Socket closed [message #1849401] Mon, 17 January 2022 19:38 Go to next message
Maxim Glebov is currently offline Maxim GlebovFriend
Messages: 3
Registered: January 2022
Junior Member
Hello everyone!
I just started to learn how to use Eclipse to create mods for Minecraft 1.12.2 (please take this seriously :) I set up the workspace by downloading mcp (Minecraft Coder Pack) and installed JDK 8 Update 311.
+ all additional stuff in this tutorial:
youtu.be/_TUUWdv8OO4 (links are blocked from me)

Then when I started the "Debug Client" in Eclipse I got the error:
Cannot connect to VM.
Socket closed

Unrecognized option: -Xincgc

Is it even possible to run Eclipse without a virtual machine and how? (if i'm asking stupid questions, sorry)
And if not, how can I fix this error?

I don't know what part of the build the error is in, so ask me all the information you need.
Re: Cannot connect to VM | Socket closed [message #1849404 is a reply to message #1849401] Tue, 18 January 2022 04:53 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 32508
Registered: July 2009
Senior Member
It's like this question where the answer specifically mentions the "Minecraft launcher".

https://stackoverflow.com/questions/70105957/how-can-i-fix-the-unrecognized-option-xincgc


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: Cannot connect to VM | Socket closed [message #1849409 is a reply to message #1849404] Tue, 18 January 2022 14:08 Go to previous message
Maxim Glebov is currently offline Maxim GlebovFriend
Messages: 3
Registered: January 2022
Junior Member
Thank you!

Solution:
1. Go to
mcp940\eclipse\.metadata\.plugins\org.eclipse.debug.core\.launches
2. Open Client.launch
3. Paste
<stringAttribute key="org.eclipse.jdt.launching.VM_ARGUMENTS" value="-Xmx1024M -Xms1024M"/>
instead of
<stringAttribute key="org.eclipse.jdt.launching.VM_ARGUMENTS" value="-Xincgc -Xmx1024M -Xms1024M"/>
Previous Topic:Error while add weblogic server in eclipse 2021-12
Next Topic:Eclipse and Team :: Basic Questions
Goto Forum:
  


Current Time: Thu Oct 06 13:25:03 GMT 2022

Powered by FUDForum. Page generated in 0.02914 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top