Posted March 26, 20232 yr 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!
March 27, 20232 yr Run gradle with the --info and --debug flags and provide the output in a gist or pastebin.
March 31, 20232 yr Author Here is my output: https://gist.github.com/JPermSolves/ea420040e83f427b3b1909e565cfa77c 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!
April 3, 20232 yr 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.
April 17, 20232 yr Author 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!
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.