A "Could not initialize native services" build error on creating a new workspace

Started by MargoxaTheGamer on

Topic category: Troubleshooting, bugs, and solutions

Joined Jan 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
A "Could not initialize native services" build error on creating a new workspace

So I decided to return to MCreator after a while(it worked a year ago) and installed the new version 2025.2 and tried to create a new NeoForge 1.21.4 workspace and it gave me a build error, here is the log:

https://pastebin.pl/view/7796d294

I already tried deleting the caches folder, the whole gradle folder and even reinstalling MCreator multiple times, erasing the .mcreator folder and rebuilding the workspace multiple times and get the same error. And my internet connection is good and I don't have an antivirus. What should I do?

Seems like some sort of…
Mon, 06/30/2025 - 20:04

Seems like some sort of Gradle error.

Try googling

ServiceCreationException: Could not initialize native services.

to see if anyone had a similar problem with Gradle before

Joined Jan 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I already tried searching it…
Mon, 07/07/2025 - 14:35

I already tried searching it up, all I found were solutions I already tried and really outdated posts with different context with solutions I couldn't understand and I don't know where else to ask.

I have Windows 8 and 4-6 GB of RAM, which should be enough to work and it worked a year ago. When I look into the gradlew file of the created workspace it says "JAVA_HOME is not set and no 'java' command could be found in your PATH", even though I haven't changed any of the enviromental variables since the last time it worked, and reinstalling java, jdk and changing Path, PATH and JAVA_HOME variables didn't work. (I tried changing them to "C:\Users\margoxa\Desktop\Programs\Java", "C:\Users\margoxa\Desktop\Programs\Java\bin", "C:\Users\margoxa\Desktop\Programs\JDK", "C:\Users\margoxa\Desktop\Programs\JDK\bin", that's where my Java and JDK are, and I deleted the gradle folder each time just in case, still the same error)