:compileJava FAILED error. cannot find symbol

Started by TheShrugg on

Topic category: Troubleshooting, bugs, and solutions

Joined Nov 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
:compileJava FAILED error. cannot find symbol

So I have been playing around with Mcreator for a couple of days now and decided that I wanted to try to add a mob. So I made a model for my mob and gave it a texture and filled in all the boxes, but when I try to save it it gives me this:

 Executing Gradle task: build
Build info: MCreator 2021.2.36710, forge-1.16.5, 64-bit, 12279 MB, Windows 10, JVM 11.0.11, JAVA_HOME: D:\Program Files (x86)\Pylo\MCreator\jdk
> Task :compileJava
C:\Users\manfr\MCreatorWorkspaces\mod_test\src\main\java\net\mcreator\modtest\entity\renderer\CavetrollRenderer.java:41: error: net.mcreator.modtest.entity.renderer.CavetrollRenderer.ModelCavetroll is not abstract and does not override abstract method render(com.mojang.blaze3d.matrix.MatrixStack,com.mojang.blaze3d.vertex.IVertexBuilder,int,int,float,float,float,float) in net.minecraft.client.renderer.model.Model public static class ModelCavetroll extends EntityModel<Entity> {
^
C:\Users\manfr\MCreatorWorkspaces\mod_test\src\main\java\net\mcreator\modtest\entity\renderer\CavetrollRenderer.java:50: error: cannot find symbol texWidth = 128;
^
symbol: variable texWidth
location: class net.mcreator.modtest.entity.renderer.CavetrollRenderer.ModelCavetroll
C:\Users\manfr\MCreatorWorkspaces\mod_test\src\main\java\net\mcreator\modtest\entity\renderer\CavetrollRenderer.java:51: error: cannot find symbol texHeight = 128;
^
symbol: variable texHeight
location: class net.mcreator.modtest.entity.renderer.CavetrollRenderer.ModelCavetroll
C:\Users\manfr\MCreatorWorkspaces\mod_test\src\main\java\net\mcreator\modtest\entity\renderer\CavetrollRenderer.java:53: error: cannot find symbol Head.setPos(0.5F, -6.0F, -4.0F);
^
symbol: method setPos(float,float,float)
location: variable Head of type net.minecraft.client.renderer.model.ModelRenderer
C:\Users\manfr\MCreatorWorkspaces\mod_test\src\main\java\net\mcreator\modtest\entity\renderer\CavetrollRenderer.java:54: error: cannot find symbol Head.texOffs(53, 24).addBox(-5.0F, -11.0F, -4.0F, 9.0F, 11.0F, 8.0F, 0.0F, false);
^
symbol: method texOffs(int,int)
location: variable Head of type net.minecraft.client.renderer.model.ModelRenderer
C:\Users\manfr\MCreatorWorkspaces\mod_test\src\main\java\net\mcreator\modtest\entity\renderer\CavetrollRenderer.java:55: error: cannot find symbol Head.texOffs(0, 0).addBox(-2.0F, -4.0F, -6.0F, 3.0F, 5.0F, 2.0F, 0.0F, false);
^
symbol: method texOffs(int,int)
location: variable Head of type net.minecraft.client.renderer.model.ModelRenderer
C:\Users\manfr\MCreatorWorkspaces\mod_test\src\main\java\net\mcreator\modtest\entity\renderer\CavetrollRenderer.java:57: error: cannot find symbol Body.setPos(0.0F, 15.0F, 0.0F);
^
symbol: method setPos(float,float,float)
location: variable Body of type net.minecraft.client.renderer.model.ModelRenderer
C:\Users\manfr\MCreatorWorkspaces\mod_test\src\main\java\net\mcreator\modtest\entity\renderer\CavetrollRenderer.java:59: error: cannot find symbol Body.texOffs(0, 24).addBox(-8.0F, -21.6084F, -2.0257F, 16.0F, 22.0F, 10.0F, 0.0F, false);
^
symbol: method texOffs(int,int)
location: variable Body of type net.minecraft.client.renderer.model.ModelRenderer
C:\Users\manfr\MCreatorWorkspaces\mod_test\src\main\java\net\mcreator\modtest\entity\renderer\CavetrollRenderer.java:61: error: cannot find symbol cube_r1.setPos(0.0F, -16.0F, 0.0F);
^
symbol: method setPos(float,float,float)
location: variable cube_r1 of type net.minecraft.client.renderer.model.ModelRenderer
C:\Users\manfr\MCreatorWorkspaces\mod_test\src\main\java\net\mcreator\modtest\entity\renderer\CavetrollRenderer.java:64: error: cannot find symbol cube_r1.texOffs(0, 0).addBox(-9.0F, -6.6148F, -4.339F, 18.0F, 9.0F, 14.0F, 0.0F, false);
^
symbol: method texOffs(int,int)
location: variable cube_r1 of type net.minecraft.client.renderer.model.ModelRenderer
C:\Users\manfr\MCreatorWorkspaces\mod_test\src\main\java\net\mcreator\modtest\entity\renderer\CavetrollRenderer.java:66: error: cannot find symbol Rightarm.setPos(-9.0F, -4.0F, -5.5F);
^
symbol: method setPos(float,float,float)
location: variable Rightarm of type net.minecraft.client.renderer.model.ModelRenderer
C:\Users\manfr\MCreatorWorkspaces\mod_test\src\main\java\net\mcreator\modtest\entity\renderer\CavetrollRenderer.java:67: error: cannot find symbol Rightarm.texOffs(0, 57).addBox(-6.0F, -3.0F, -0.5F, 6.0F, 29.0F, 7.0F, 0.0F, false);
^
symbol: method texOffs(int,int)
location: variable Rightarm of type net.minecraft.client.renderer.model.ModelRenderer
C:\Users\manfr\MCreatorWorkspaces\mod_test\src\main\java\net\mcreator\modtest\entity\renderer\CavetrollRenderer.java:69: error: cannot find symbol Leftarm.setPos(9.0F, -4.0F, -5.5F);
^
symbol: method setPos(float,float,float)
location: variable Leftarm of type net.minecraft.client.renderer.model.ModelRenderer
C:\Users\manfr\MCreatorWorkspaces\mod_test\src\main\java\net\mcreator\modtest\entity\renderer\CavetrollRenderer.java:70: error: cannot find symbol Leftarm.texOffs(46, 50).addBox(0.0F, -3.0F, -0.5F, 6.0F, 29.0F, 7.0F, 0.0F, false);
^
symbol: method texOffs(int,int)
location: variable Leftarm of type net.minecraft.client.renderer.model.ModelRenderer
C:\Users\manfr\MCreatorWorkspaces\mod_test\src\main\java\net\mcreator\modtest\entity\renderer\CavetrollRenderer.java:72: error: cannot find symbol Rightleg.setPos(-5.55F, 15.0F, -0.5F);
^
symbol: method setPos(float,float,float)
location: variable Rightleg of type net.minecraft.client.renderer.model.ModelRenderer
C:\Users\manfr\MCreatorWorkspaces\mod_test\src\main\java\net\mcreator\modtest\entity\renderer\CavetrollRenderer.java:73: error: cannot find symbol Rightleg.texOffs(73, 44).addBox(-2.45F, 0.0F, 0.5F, 5.0F, 9.0F, 5.0F, 0.0F, false);
^
symbol: method texOffs(int,int)
location: variable Rightleg of type net.minecraft.client.renderer.model.ModelRenderer
C:\Users\manfr\MCreatorWorkspaces\mod_test\src\main\java\net\mcreator\modtest\entity\renderer\CavetrollRenderer.java:75: error: cannot find symbol Leftleg.setPos(5.5F, 15.0F, -0.5F);
^
symbol: method setPos(float,float,float)
location: variable Leftleg of type net.minecraft.client.renderer.model.ModelRenderer
C:\Users\manfr\MCreatorWorkspaces\mod_test\src\main\java\net\mcreator\modtest\entity\renderer\CavetrollRenderer.java:76: error: cannot find symbol Leftleg.texOffs(65, 0).addBox(-2.5F, 0.0F, 0.5F, 5.0F, 9.0F, 5.0F, 0.0F, false);
^
symbol: method texOffs(int,int)
location: variable Leftleg of type net.minecraft.client.renderer.model.ModelRenderer
C:\Users\manfr\MCreatorWorkspaces\mod_test\src\main\java\net\mcreator\modtest\entity\renderer\CavetrollRenderer.java:79: error: method does not override or implement a method from a supertype @Override
^
C:\Users\manfr\MCreatorWorkspaces\mod_test\src\main\java\net\mcreator\modtest\entity\renderer\CavetrollRenderer.java:84: error: method does not override or implement a method from a supertype @Override
^
C:\Users\manfr\MCreatorWorkspaces\mod_test\src\main\java\net\mcreator\modtest\entity\renderer\CavetrollRenderer.java:96: error: cannot find symbol modelRenderer.xRot = x;
^
symbol: variable xRot
location: variable modelRenderer of type net.minecraft.client.renderer.model.ModelRenderer
C:\Users\manfr\MCreatorWorkspaces\mod_test\src\main\java\net\mcreator\modtest\entity\renderer\CavetrollRenderer.java:97: error: cannot find symbol modelRenderer.yRot = y;
^
symbol: variable yRot
location: variable modelRenderer of type net.minecraft.client.renderer.model.ModelRenderer
C:\Users\manfr\MCreatorWorkspaces\mod_test\src\main\java\net\mcreator\modtest\entity\renderer\CavetrollRenderer.java:98: error: cannot find symbol modelRenderer.zRot = z;
^
symbol: variable zRot
location: variable modelRenderer of type net.minecraft.client.renderer.model.ModelRenderer
23 errors
> Task :compileJava FAILED
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':compileJava'.
> Compilation failed; see the compiler error output for details.
* 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
Deprecated Gradle features were used in this build, making it incompatible with Gradle 8.0.
You can use '--warning-mode all' to show the individual deprecation warnings and determine if they come from your own scripts or plugins.
See https://docs.gradle.org/7.1.1/userguide/command_line_interface.html#sec…
BUILD FAILED in 5s
1 actionable task: 1 executed
BUILD FAILED
Task completed in 8 seconds

 

I tried deleting the cache folder and restarting Mcreator like it told me to do but i still go the same error.
Any help would be very appreciated, thanks.

Joined Oct 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I have had this same error…
Mon, 10/25/2021 - 23:47

I have had this same error as well

Joined Oct 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Mine gives me the same error…
Tue, 10/26/2021 - 00:56

Mine gives me the same error but I am adding armour, i have looked everywhere for a fix.

Joined Oct 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Perhaps the problem itself…
Tue, 10/26/2021 - 08:32

Perhaps the problem itself is in version 2021.2? I have not seen such a gap after October.

Joined Oct 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I tried that now but it…
Tue, 10/26/2021 - 21:14

I tried that now but it still didn't work. 

Joined Oct 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Ok, so I think I found the…
Tue, 10/26/2021 - 22:02

Ok, so I think I found the problem. I now tried to install it thru a zip file instead of .exe and that fixed it for me. Hope this helps!

Joined Oct 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
What do you mean "install…
Tue, 11/02/2021 - 14:54

What do you mean "install through .zip"? I'm new to the stuff so I don't know how to do some things

Joined Oct 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I'm having the "compilejava"…
Wed, 11/03/2021 - 00:31

I'm having the "compilejava" error but I don't why, that's why I'm asking

Joined Oct 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
*And I'm having a similar…
Wed, 11/03/2021 - 13:14

*And I'm having a similar problem. When I try to save my mob, I have the "compilejava" error and I don't know why. So if someone could help me, I would be very grateful.

Joined Oct 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Hello, I solved that problem…
Thu, 03/10/2022 - 05:24

Hello, I solved that problem! Maybe you need to save your model as MCP, not Mojomaps and it works!