Can't find symbol error

Started by zacster129 on Mon, 12/29/2014 - 20:36
Last seen on 16:19, 20. May 2016
Joined Dec 2014
User points:

Statistics:

  • Comments:
  • Forum topics:
  • Modifications:
  • Wiki pages:
Can't find symbol error
Thu, 04/20/2017 - 18:56 (edited)

I'm trying to make a demon boss. I made a skin, and a model, but I keep getting this error:

>C:\Pylo\MCreator154\forge\build\sources\java\mod\mcreator\mcreator_demonsHead.java:110: error: cannot find symbol
>        RenderingRegistry.registerEntityRenderingHandler(mcreator_demonsHead.EntitydemonsHead.class, new RenderLiving(new mcreator_demonsHead.ModelDemon(), 0){protected ResourceLocation getEntityTexture(Entity par1Entity){return new ResourceLocation("Skin.png");}
>                                                                                                                                             ^
>  symbol:   class ModelDemon
>  location: class mcreator_demonsHead
>1 error
>:compileJava FAILED
>FAILURE: Build failed with an exception.
>* What went wrong:
>BUILD FAILED
>Execution failed for task ':>> Compilation>Total time: 29.214 secs
 failed; see the compiler error output fo>* Try:
r details.
compileJava'.
>Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
>C:\Pylo\MCreator154\forge>
>Task completed with return code 0 in 29740 milliseconds

 

Can anyone help?

Thanks :)

Edited by Klemen on Thu, 04/20/2017 - 18:56
Last seen on 05:24, 26. Jan 2017
Joined Nov 2014
User points:

Statistics:

  • Comments:
  • Forum topics:
  • Modifications:
  • Wiki pages:
cant help but i have the same
Tue, 12/30/2014 - 03:57

cant help but i have the same error

>BOOTING UP GRADLE...
>Data loaded, MCreator gradle console ready [ver 1.007]! [boot took 0 milliseconds]
>RIGHT click once to copy log to the clipboard or twice to clear the log.
>===================================================================================================================
>Executing gradle command: build
>Microsoft Windows [Version 6.1.7601]
>Copyright (c) 2009 Microsoft Corporation. All rights reserved.
>C:\Users\jayjay\Desktop>cd forge
>C:\Users\jayjay\Desktop\forge>SET "JAVA_HOME=C:\Users\jayjay\Desktop\jdk\"
>C:\Users\jayjay\Desktop\forge>SET JAVA_EXE=%JAVA_HOME%\bin\java.exe
>C:\Users\jayjay\Desktop\forge>SET PATH=%JAVA_HOME%\bin\;%PATH%
>C:\Users\jayjay\Desktop\forge>gradlew build
>****************************
> Powered By MCP:
> http://mcp.ocean-labs.de/
> Searge, ProfMobius, Fesh0r,
> R4wk, ZeuX, IngisKahn, bspkrs
> MCP Data version : unknown
>****************************
>:compileApiJava UP-TO-DATE
>:processApiResources UP-TO-DATE
>:apiClasses UP-TO-DATE
>:sourceMainJava
>C:\Users\jayjay\Desktop\forge\build\sources\java\mod\mcreator\ModName.java:109: error: cannot find symbol
>mcreator_wonderFulForestDimension mcreator_1 = new mcreator_wonderFulForestDimension();
>^
> symbol: class mcreator_wonderFulForestDimension
> location: class ModName
>C:\Users\jayjay\Desktop\forge\build\sources\java\mod\mcreator\ModName.java:110: error: cannot find symbol
>mcreator_tropicalPinaple mcreator_2 = new mcreator_tropicalPinaple();
>^
> symbol: class mcreator_tropicalPinaple
> location: class ModName
>C:\Users\jayjay\Desktop\forge\build\sources\java\mod\mcreator\ModName.java:111: error: cannot find symbol
>mcreator_log mcreator_3 = new mcreator_log();
>^
> symbol: class mcreator_log
> location: class ModName
>C:\Users\jayjay\Desktop\forge\build\sources\java\mod\mcreator\ModName.java:112: error: cannot find symbol
>mcreator_tropical mcreator_4 = new mcreator_tropical();
>^
> symbol: class mcreator_tropical
> location: class ModName
>C:\Users\jayjay\Desktop\forge\build\sources\java\mod\mcreator\ModName.java:109: error: cannot find symbol
>mcreator_wonderFulForestDimension mcreator_1 = new mcreator_wonderFulForestDimension();
> ^
> symbol: class mcreator_wonderFulForestDimension
> location: class ModName
>C:\Users\jayjay\Desktop\forge\build\sources\java\mod\mcreator\ModName.java:110: error: cannot find symbol
>mcreator_tropicalPinaple mcreator_2 = new mcreator_tropicalPinaple();
> ^
> symbol: class mcreator_tropicalPinaple
> location: class ModName
>C:\Users\jayjay\Desktop\forge\build\sources\java\mod\mcreator\ModName.java:111: error: cannot find symbol
>mcreator_log mcreator_3 = new mcreator_log();
> ^
> symbol: class mcreator_log
> location: class ModName
>C:\Users\jayjay\Desktop\forge\build\sources\java\mod\mcreator\ModName.java:112: error: cannot find symbol
>mcreator_tropical mcreator_4 = new mcreator_tropical();
> ^
> symbol: class mcreator_tropical
> location: class ModName
>8 errors
>:compileJava FAILED
>FAILURE: Build failed with an exception.
>* What went wrong:
>Execution failed for task ':compileJava'.
>BUILD FAILED
>> 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.
>Total time: 7.785 secs
>C:\Users\jayjay\Desktop\forge>
>Task completed with return code 0 in 8377 milliseconds

Last seen on 05:24, 26. Jan 2017
Joined Nov 2014
User points:

Statistics:

  • Comments:
  • Forum topics:
  • Modifications:
  • Wiki pages:
i have to reinstall this mod
Tue, 12/30/2014 - 03:58

i have to reinstall this mod maker over again ive already done it about 5 times.
*about 1 hour later*
nope 6 times

Last seen on 01:17, 27. Jan 2015
Joined Aug 2014
User points:

Statistics:

  • Comments:
  • Forum topics:
  • Modifications:
  • Wiki pages:
Make sure the name for the
Tue, 01/27/2015 - 01:13

Make sure the name for the custom model is 100% same as in Techne.That fixed it for me.

Last seen on 13:19, 14. Apr 2018
Joined May 2016
User points:

Statistics:

  • Comments:
  • Forum topics:
  • Modifications:
  • Wiki pages:
I made a mod and when I
Sun, 06/05/2016 - 17:24

I made a mod and when I compile it there is no problem but when I change of workspace MCretor can't find a symbol and there are many errors. I don't use Techne. How can I fix that ?

PS: I'm French so my English can be difficult to understand

Last seen on 13:19, 14. Apr 2018
Joined May 2016
User points:

Statistics:

  • Comments:
  • Forum topics:
  • Modifications:
  • Wiki pages:
I find how to fix the problem
Sun, 06/05/2016 - 17:49

I find how to fix the problem !

Go in the MCreator file and search the folder : forge\buil\sources\java\mod\mcreator\

If the symbol isn't here, reload the workspace with the symbol copy it and paste it in the workspace wich tell that there is a problem.

Last seen on 10:59, 15. Jul 2017
Joined Feb 2016
User points:

Statistics:

  • Comments:
  • Forum topics:
  • Modifications:
  • Wiki pages:
RE:I find how to fix the problem
Fri, 12/23/2016 - 16:01

@#5 What?

Last seen on 10:59, 15. Jul 2017
Joined Feb 2016
User points:

Statistics:

  • Comments:
  • Forum topics:
  • Modifications:
  • Wiki pages:
RE:I find how to fix the problem
Fri, 12/23/2016 - 16:01

@#5 What?

Last seen on 10:59, 15. Jul 2017
Joined Feb 2016
User points:

Statistics:

  • Comments:
  • Forum topics:
  • Modifications:
  • Wiki pages:
RE:I find how to fix the problem
Fri, 12/23/2016 - 16:02

@#5 What is a symbol?

Last seen on 02:46, 3. May 2018
Joined Dec 2016
User points:

Statistics:

  • Comments:
  • Forum topics:
  • Modifications:
  • Wiki pages:
the only way ive found to fix
Fri, 12/30/2016 - 20:08

the only way ive found to fix the problem is to delete all the problem elements manualy and remake them, this fixes it and its not too hard to redo them beccause you already had everything done, you just need to copy it 

Last seen on 04:46, 20. Apr 2017
Joined Apr 2017
User points:

Statistics:

  • Comments:
  • Forum topics:
  • Modifications:
  • Wiki pages:
What does this error mean?
Thu, 04/20/2017 - 04:49

What does this error mean?

The "Cannot find symbol" errors generally occur when you try to reference an undeclared variable in your code. A "Cannot find symbol" error means that the compiler cannot do this. Your code appears to be referring to something that the compiler doesn't understand.

What things can cause this error?

The general causes for a Cannot find symbol error are things like:

  • Incorrect spelling.

  • Wrong case. Halo is different from halo.

  • Improper use of acceptable identifier values (letters, numbers, underscore, dollar sign), my-class is not the same as myclass.

  • No variable declaration or variable is outside of the scope you are referencing it in.

More about...cannot find symbol Error

Clint