Tutorials-By-Kaupenjoe / Forge-Tutorial-1.20.X

Repository for my Forge 1.20.X Tutorial Series on YouTube. Playlist link below!
https://www.youtube.com/playlist?list=PLKGarocXCE1H9Y21-pxjt5Pt8bW14twa-
MIT License
113 stars 30 forks source link

RunClient build failed #6

Open KreepyKreeper5000 opened 6 months ago

KreepyKreeper5000 commented 6 months ago

I follow the tutorial in ep. 1 exactly as in the video, just with a different modID and mod name, but when I try to launch RunClient, I get this error: Execution failed for task ':runClient'.

Process 'command 'C:\Program Files\Eclipse Adoptium\jdk-17.0.7.7-hotspot\bin\java.exe'' finished with non-zero exit value 1

I have gone into my files and tried to manually launch java.exe, but it doesn't launch. Is jdk-17.0.7+1 by any chance the wrong version? If so, please tell me the right version and how to proceed.

Thank you!

Unknown303YT commented 5 months ago

@KreepyKreeper5000 Could you give either the source code or a zip including the following folders and files:

This would help give a better understanding of the issue

TabbyCatface commented 3 months ago

@Unknown303YT I seem to have troubles launching the runClient task at all too, only following the first tutorial ep. Maybe you can help me to diagnose why am I failing at this? MC mod 1.20.X Forge.zip

image

Unknown303YT commented 1 month ago

Hi @TabbyCatface,

Sorry it took so long for me to get back to you, but since you sent the source code, I have hopefully found what the error was.

All you should need to do is delete Config.java, and then change your example.java file so it looks something kind of like this (I took it straight from the tutorial class):

https://drive.google.com/file/d/1iJZrn7QO8zXZkNgXRnpjgAWBh4ePF-8c/view?usp=sharing