"gradle runClient" fails: Compilation failed; see the compiler error output for details. #88

Closed
opened 2021-03-02 06:57:43 +00:00 by SirEnder125 · 12 comments
SirEnder125 commented 2021-03-02 06:57:43 +00:00 (Migrated from github.com)

Hello. I was following the custom item tutorial, and I had gotten as far as the
build process. When I ran "gradle runClient" it gave me this error:

Compilation failed; see the compiler error output for details.

I can't find the error output file and I don't know what could be wrong.

JAVA_HOME: C:\Program Files\Amazon Corretto\jdk11.0.10_9

Hello. I was following the custom item tutorial, and I had gotten as far as the build process. When I ran "gradle runClient" it gave me this error: > Compilation failed; see the compiler error output for details. I can't find the error output file and I don't know what could be wrong. JAVA_HOME: C:\Program Files\Amazon Corretto\jdk11.0.10_9
SirEnder125 commented 2021-03-02 07:08:55 +00:00 (Migrated from github.com)

Hmmm. After running gradle --info runClient,
it says this:

public static final Item FABRIC_ITEM = new Item(new FabricItemSettings().group(ItemGroup.MISC));
                        ^
symbol:   class Item
location: class ExampleMod
Hmmm. After running `gradle --info runClient`, it says this: ```ExampleMod.java:8: error: cannot find symbol public static final Item FABRIC_ITEM = new Item(new FabricItemSettings().group(ItemGroup.MISC)); ^ symbol: class Item location: class ExampleMod ```
OroArmor commented 2021-03-02 07:09:42 +00:00 (Migrated from github.com)

it looks like the minecraft dependency isnt loading. make sure it is being remapped

it looks like the minecraft dependency isnt loading. make sure it is being remapped
SirEnder125 commented 2021-03-02 07:10:21 +00:00 (Migrated from github.com)

Sorry, I am a bit of a noob. Can you please simplify? Sorry.

Sorry, I am a bit of a noob. Can you please simplify? Sorry.
OroArmor commented 2021-03-02 07:12:08 +00:00 (Migrated from github.com)

delete ~/.gradle/caches/fabric-loom/ then run gradle runClient --refresh-dependencies
~ is the user home so C:\Users\MyUser\ on windows

delete `~/.gradle/caches/fabric-loom/` then run `gradle runClient --refresh-dependencies` `~` is the user home so `C:\Users\MyUser\` on windows
SirEnder125 commented 2021-03-02 07:13:11 +00:00 (Migrated from github.com)

Okay. I'll try.

EDIT: It did not work.

What I did:

  1. Deleted C:\Users*.gradle\caches\fabric-loom directory
  2. Ran command gradle runClient --refresh-dependencies

Output:

Same as before.

Okay. I'll try. EDIT: It did not work. ### What I did: 1. Deleted C:\Users\*\.gradle\caches\fabric-loom directory 2. Ran command `gradle runClient --refresh-dependencies` ### Output: Same as before.
SirEnder125 commented 2021-03-02 08:52:55 +00:00 (Migrated from github.com)

What do I import to use Item class?

What do I `import` to use `Item` class?
Technici4n commented 2021-03-02 09:10:45 +00:00 (Migrated from github.com)

You should ask on the #mod-dev channels on the official Discord server for this kind of help, it will be much more interactive.

You should ask on the #mod-dev channels on the official Discord server for this kind of help, it will be much more interactive.
SirEnder125 commented 2021-03-02 19:37:37 +00:00 (Migrated from github.com)

I do not have this "Discord" you speak of.

I do not have this "Discord" you speak of.
OroArmor commented 2021-03-02 19:39:02 +00:00 (Migrated from github.com)
https://discord.gg/v6v4pMv
SirEnder125 commented 2021-03-02 19:44:06 +00:00 (Migrated from github.com)

And I do what there?

EDIT: Oh, ask questions? Sorry.
I know what the error is now.
It says that Item class is not defined.

And I do what there? EDIT: Oh, ask questions? Sorry. I know what the error is now. It says that Item class is not defined.
OroArmor commented 2021-03-02 19:46:06 +00:00 (Migrated from github.com)

just join the discord for more focused and specific help. github issues are not for this kind of support.

just join the discord for more focused and specific help. github issues are not for this kind of support.
SirEnder125 commented 2021-03-02 19:49:00 +00:00 (Migrated from github.com)

Aight.

Aight.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Steven/fabric-example-mod#88