Jump to content

Recommended Posts

Posted

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!

Posted
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.

  • 2 weeks later...
Posted

I ended up figuring it out. I hadn't imported the correct packages. Thank you for all the help you have given.

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!

  • TheElementGuy changed the title to [Resolved] gradlew runClient Failing

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Announcements



×
×
  • Create New...

Important Information

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