I am using Eclipse and when I use gradle's command runclient Minecraft opens for a moment and then closes.
* What went wrong:
Execution failed for task ':runClient'.
> Process 'command 'C:\Users\AMD-PC\.p2\pool\plugins\org.eclipse.justj.openjdk.hotspot.jre.full.win32.x86_64_15.0.2.v20210201-0955\jre\bin\java.exe'' finished with non-zero exit value 1
How to fix it?