InteliJ RunClient Run Error

Asked 2 years ago, Updated 2 years ago, 119 views

I'm a beginner in programming.
While studying JAVA, I decided to make a mod for Minecraft JAVA.
I'm trying to install JDKs and others by referring to the following site.
"Start Minecraft" will cause the following error while running RunClient:

I touched C# on VisualStudio a little while ago.
I don't understand the content of the error at all because I don't understand IntelliJ of JAVA.

I would like to resolve this error so that I can launch Minecraft as described on the reference site, but what should I do?

The following error codes

:
Execution failed for task ':runClient'.
>Process 'command' C:\Users\user\.jdks\corretto-1.8.0_282\bin\java.exe' 'finished with non-zero exit value-1

* Try:
Run with --stacktrace option to get the stack trace. Run with -- info or -- debug option to get more log output. Run with -- scan to get full insights.

Reference Sites

Create Minecraft 1.12.2 Forge Mod No.1 [IntelliJ IDEA]|Create Project - Qiita

Additional 1

Below is what Kunif suggested and tried on 1.14.4.

First, create a running configuration for https://qiita.com/Hiroya_W/items/f38089724d9358d1668d as described in the Create section

PSC:\Users\user\IdeaProjects\biwako_mod>.\gradlewgenIntellijRuns

I typed in, but I got the following error.

Get-Process: Cannot find positioning parameter to accept argument '.\gradlew'. Place of origin line: 1 character: 1+PSC:\Users\user\IdeaProjects\biwako_mod>.\gradlewgenIntellijRuns+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Additional 2

https://www.tntmodders.com/tutorial/env-1144/
I tried in 1.14.4 environment as shown in .
However, "runClient" was not found in the Run Configuration Selection candidate field in Forge section 10.

"After that, I wrote ""runClient"" in the name and task fields in ""Configuration and Edit"" and ran it."
The following error occurred:

Execution failed for task ':runClient'.
>Process 'command' C:\Users\user\.jdks\corretto-1.8.0_282\bin\java.exe' 'finished with non-zero exit value-1

* Try:
Run with --stacktrace option to get the stack trace. Run with -- info or -- debug option to get more log output. Run with -- scan to get full insights.

Additional 3

Instead of opening the unzipped mdk zip file,
From the pre-extracted folder

  • build.gradle
  • gradlew.bat
  • gradlew
  • gradle folder

Take out and move it to the project folder, open it and run it, and add
in postscript 2. "The absence of ""runClient"" in the execution configuration selection field has subsided, but
If you just run it

An error occurred while running 'runClient': '1.8' is misconfigured

It fails with a simple error of

Additional 4
If you do as you answered,

[LWJGL]GLFW_API_UNAVAILABLE error
     (blank)     
Exception in thread "main"

between the error code and several lines of green logs

Process finished with exit code 1

Minecraft stopped working without starting.

java intellij-idea

2022-09-30 18:09

1 Answers

First of all, it seems to have been made by referring to the following article.
Building an Environment (1.14.4)

However, I changed the procedure a little and did the following:

  • Don't install OpenJDK from IntelliJ IDEA Community Edition, download it separately and install it first.

  • IntelliJ IDEA Community Edition uses the latest 2020.3.2 release.

  • Forge files used the latest 1.16.5 Download Latest mdk.

    • The .zip file was expanded to C:\Develop\forge-1.16.5-36.0.10-mdk
  • If you specify a folder for a project that you have deployed in IntelliJ IDEA, it will take about 20 minutes to download the configuration settings for the first time.

    • Procedures 5. through 11. of Forge in Building an Environment (1.14.4) above (except that some of the logs you are downloading appear to have textual injuries).
  • By the way, forge-1.16.4-35.1.4-mdk or forge-1.14.4-28.2.0-mdk causes runClient to display sound and display in the InteliJ IDEA log section.Caused by:java.io.IOSpause URL:40:response

Instead of installing OpenJDK from IntelliJ IDEA Community Edition, download it separately and install it first.

InteliJ IDEA Community Edition uses the latest 2020.3.2 release.

  • 64-bit launcher
  • Add launchers dir to PATH
  • Add*Open Folder as Project*
  • All four Create Associations extensions

I used the latest 1.16.5 Download Latest mdk from Forge files.

  • The .zip file was expanded to C:\Develop\forge-1.16.5-36.0.10-mdk

If you specify a folder for a project you have deployed in IntelliJ IDEA and open it, it will take about 20 minutes to download the configuration settings for the first time.

  • Procedures 5. through 11. of Forge in Building an Environment (1.14.4) above (except that some of the logs you are downloading appear to have textual injuries).

Incidentally, forge-1.16.4-35.1.4-mdk or forge-1.14.4-28.2.0-mdk causes runClient to display sound and display in the InteliJ IDEA log section.Cause by:java.io.IOException: Served URL:reverse:http://myurl.me/

Based on the above, the presence or absence of the JAVA_HOME or PATH setting of the environment variable may be affected.
Check it out or give it a try.

About postscript 4

The error message is that the OpenGL API is invalid.
It's hard to imagine that there's really no OpenGL, so I wonder if the number of editions is old or if there's a mismatch.

If you search, you'll find this area, but it's not clear if there are any hints.
[1.15.2]GLFW_API_UNAVAILABLE error(intellij)
Can't open a window in netbeans with LWJGL
some minecraft installations not working under windows 10#119
LWJGL3 does not detect OpenGL
LWJGL won't work outside NetBeans

Needless to say, check to see if you have updated your drivers and others with the following:

  • Are all OS/device drivers/applications updated in Windows Update?
  • Are all BIOS/Firmware/Device Driver Updates from PC Vendors applied
  • If the CPU is Intel, are all Intel related drivers updated with Intel® Drivers & Support Assistant
  • If the GPU is NVidia/AMD, is each device driver updated to the latest one?
  • Do you have more than one Java runtime environment installed? (If there are more than one, try uninstalling and reinstalling the runtime you want to use, leaving only one to be used this time.)


2022-09-30 18:09

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.