Jump to content

[Resolved] gradlew runClient Failing


Recommended Posts

I am making a mod in VSCode and everything was working properly. Now, for some reason, whenever I try to execute gradlew runClient it fails and says "Execution failed for task :compileJava". If someone could tell me what was wrong I would appreciate it.

Please don't put anything from 1.16.5, 1.12.2, 1.14, 1.15, 1.0, or anything not 1.18.x or 1.19.x!

Link to comment
Share on other sites

2023-03-30T18:03:48.346-0700 [ERROR] [system.err] C:\Users\judea\OneDrive\Desktop\Greek Myths Mod\src\main\java\net\theelementguy\greekmyths\GreekMythsMod.java:27: error: package net.theelementguy.greekmyths.items does not exist
2023-03-30T18:03:48.346-0700 [ERROR] [system.err] import net.theelementguy.greekmyths.items.ModItems;
2023-03-30T18:03:48.347-0700 [ERROR] [system.err]                                          ^
2023-03-30T18:03:48.409-0700 [ERROR] [system.err] C:\Users\judea\OneDrive\Desktop\Greek Myths Mod\src\main\java\net\theelementguy\greekmyths\items\ModItems.java:3: error: package com.example.examplemod does not exist
2023-03-30T18:03:48.410-0700 [ERROR] [system.err] import com.example.examplemod.GreekMythsMod;
2023-03-30T18:03:48.410-0700 [ERROR] [system.err]                              ^
2023-03-30T18:03:48.417-0700 [ERROR] [system.err] C:\Users\judea\OneDrive\Desktop\Greek Myths Mod\src\main\java\net\theelementguy\greekmyths\items\ModItems.java:20: error: cannot find symbol
2023-03-30T18:03:48.418-0700 [ERROR] [system.err]     public static void register(IEventBus eventbus) {
2023-03-30T18:03:48.418-0700 [ERROR] [system.err]                                 ^
2023-03-30T18:03:48.418-0700 [ERROR] [system.err]   symbol:   class IEventBus
2023-03-30T18:03:48.419-0700 [ERROR] [system.err]   location: class ModItems
2023-03-30T18:03:48.471-0700 [ERROR] [system.err] C:\Users\judea\OneDrive\Desktop\Greek Myths Mod\src\main\java\net\theelementguy\greekmyths\GreekMythsMod.java:40: error: cannot find symbol
2023-03-30T18:03:48.471-0700 [ERROR] [system.err]         ModItems.register(modEventBus);
2023-03-30T18:03:48.472-0700 [ERROR] [system.err]         ^
2023-03-30T18:03:48.472-0700 [ERROR] [system.err]   symbol:   variable ModItems
2023-03-30T18:03:48.472-0700 [ERROR] [system.err]   location: class GreekMythsMod
2023-03-30T18:03:48.574-0700 [ERROR] [system.err] C:\Users\judea\OneDrive\Desktop\Greek Myths Mod\src\main\java\net\theelementguy\greekmyths\items\ModItems.java:12: error: cannot find symbol
2023-03-30T18:03:48.574-0700 [ERROR] [system.err]     public static final DeferredRegister<Item> ITEMS = DeferredRegister.create(ForgeRegistries.ITEMS, GreekMythsMod.MOD_ID);
2023-03-30T18:03:48.574-0700 [ERROR] [system.err]                                                                                          
2023-03-30T18:03:48.574-0700 [ERROR] [system.err]   symbol:   variable GreekMythsMod
2023-03-30T18:03:48.574-0700 [ERROR] [system.err]   location: class ModItems
2023-03-30T18:03:48.647-0700 [ERROR] [system.err] 5 errors

Seems to be a bunch of issues with your mod. Assuming that this information is correctly linked, I would guess there's something wrong within your build.gradle, if you would so kindly provide it.

Link to comment
Share on other sites

  • 2 weeks later...
  • TheElementGuy changed the title to [Resolved] gradlew runClient Failing

Please sign in to comment

You will be able to leave a comment after signing in

Sign In Now

  • Create New...

Important Information

By using this site, you agree to our Terms of Use.