Programming Forge Mods with Eclipse (error)?

La
- in Mods
1

I have been trying to program a Forge modification for Minecraft with Eclipse for a few days. I entered the following command in the Windows Powershell:. \ Gradlew setupDecompWorkspace

Then I entered. \ Gradlew eclipse, but there was an error in both and it said BUILD FAILED. The following error was there:

* What went wrong:

Execution failed for task ': makeStart'.

> Unable to find a javac compiler;

com.sun.tools.javac.Main is not on the classpath.

Perhaps JAVA_HOME does not point to the JDK.

It is currently set to "D: \ java"

I need an explanation of the error, please

ru

You have to copy the path where you installed the Java JDK. Then enter "environment variables" in the Windows search bar and press ENTER. The "System Properties" window should pop up and at the bottom you should see environment variables. Click on it. Hopefully you will now see a window with "User variables for DEINWINDOWSNAME" and below system variables.

For the system variables, click on New and write in the name of the variable JAVA_HOME

and the value of the path of your Java JDK