Task :compileJava FAILED

Started by gvls2 on

Topic category: Help with Minecraft modding (Java Edition)

Joined Nov 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Task :compileJava FAILED

I just started to making my own mod, but when I wanted to check how it works, I got the message: 

FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':compileJava'.
> Could not resolve all files for configuration ':compileClasspath'.
> Could not find net.minecraftforge:forge:1.20.1-47.3.0_mapped_official_1.20.1.
Searched in the following locations:
- file:/C:/Users/User1/.mcreator/gradle/caches/forge_gradle/bundeled_repo/net/minecraftforge/forge/1.20.1-47.3.0_mapped_official_1.20.1/forge-1.20.1-47.3.0_mapped_official_1.20.1.pom


- file:/C:/Users/User1/.mcreator/gradle/caches/forge_gradle/bundeled_repo/net/minecraftforge/forge/1.20.1-47.3.0_mapped_official_1.20.1/forge-1.20.1-47.3.0_mapped_official_1.20.1.jar
Required by:
project :
* 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.
> Get more help at https://help.gradle.org.
BUILD FAILED in 22s


I even tryied to make this folders and add forge-1.20.1-47.3.0_mapped_official_1.20.1.jar and 1.20.1-47.3.0_mapped_official_1.20.1/forge-1.20.1-47.3.0_mapped_official_1.20.1.pom by my self, but it did not work either!
I researched many orher forums but it also did not help.
I hope that someone who know how to deal with this error will help me and others with this error.

p.s sorry for my bad english

Joined Nov 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Also I have a problems with…
Sun, 11/17/2024 - 09:03

Also I have a problems with storage on the C disk so i downloaded MCreator on my D disk

Something is preventing…
Sun, 11/17/2024 - 15:52

Something is preventing MCreator from writing to these folders.

Make sure you allow it and then clear caches as explained in our knowledge base and then try again

Joined Nov 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Can it be because I don't…
Sun, 11/17/2024 - 17:01

Can it be because I don't have enough storage on my C disk? Cause on my C disk there are less then 500MB of storage

Joined Nov 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Also I tried turn on…
Sun, 11/17/2024 - 17:04

Also I tried turn on MCreator with Admin Permision few times and that also didn't work

Joined Nov 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Maybe you can try send link…
Sun, 11/17/2024 - 18:04

Maybe you can try send link to download forge-1.20.1-47.3.0_mapped_official_1.20.1.jar and 1.20.1-47.3.0_mapped_official_1.20.1/forge-1.20.1-47.3.0_mapped_official_1.20.1.pom files from your project, and i will just try to make folders ( bundeled_repo/net/minecraftforge/forge/1.20.1-47.3.0_mapped_official_1.20.1 ) by my own and just put files in there

 

Gradle requires access to…
Tue, 11/19/2024 - 18:14

Gradle requires access to those URLs as it updates and manages those files so this will not work.

You need to figure out why MCreator is not allowed to write or access those files on your PC