Started by
dkrdjdi
on
Topic category: Troubleshooting, bugs, and solutions
java.exe finished with non-zero exit value -1
This error occurs when you run the client after the update.
[Solution]
1) Run the CMD(Command Prompt, cmd.exe)
2) Enter the following command.
netstat -ano | findstr :1099
Remember the port number located at the end.
3) Enter the following command.
taskkill /PID (ID) /F
4) It will now build normally.
If you have a program that is using the same port, that error occurs.
In my case, java.exe and MCreator used the same port (1099), so the error occurred.
Picked up JAVA_TOOL_OPTIONS: -Dcom.sun.management.jmxremote.port=1099
The port contents of the message may differ above the build error message.
You can enter the command according to the port value.
It could also be due to firewall preventing MCreator from accessing the port
Related: https://github.com/MCreator/MCreator/issues/5218
My method has a high probability of recurrence
I'll try the method you told me.
:)