Cannot find symbol

Started by Mat_Master on

Topic category: Troubleshooting, bugs, and solutions

Joined Aug 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Cannot find symbol

It always saying cannot find symbol. Thats very strange because gameofthrones is the mod name. Also when i rewrite it it will not appear like the other names like lannistershield.

 

Executing Gradle task: runClient
Build info: MCreator 2020.2.14217, 1.12.2, 64-bit, 8033 MB, Windows 10, JVM 1.8.0_232, JAVA_HOME: C:\Program Files\Pylo\MCreator\jdk
This mapping 'snapshot_20171003' was designed for MC 1.12! Use at your own peril.
:deobfCompileDummyTask
:deobfProvidedDummyTask
:sourceApiJava UP-TO-DATE
:compileApiJava NO-SOURCE
:processApiResources NO-SOURCE
:apiClasses UP-TO-DATE
:sourceMainJava UP-TO-DATE
C:\Users\gebruiker\MCreatorWorkspaces\gameofthrones\build\sources\main\java\gameofthrones\item\ItemLannisterShield.java:32: error: class MCreatorlannistershield is public, should be declared in a file named MCreatorlannistershield.java public class MCreatorlannistershield extends gameofthrones.ModElement {
       ^
C:\Users\gebruiker\MCreatorWorkspaces\gameofthrones\build\sources\main\java\gameofthrones\item\ItemLannisterShield.java:32: error: cannot find symbol public class MCreatorlannistershield extends gameofthrones.ModElement {
                                                                                               ^
  symbol:   class ModElement
  location: package gameofthrones
C:\Users\gebruiker\MCreatorWorkspaces\gameofthrones\build\sources\main\java\gameofthrones\item\ItemLannisterShield.java:36: error: cannot find symbol     public MCreatorlannistershield(gameofthrones instance) {
                                                     ^
  symbol:   class gameofthrones
  location: class MCreatorlannistershield
3 errors
: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
BUILD FAILED in 1s
5 actionable tasks: 3 executed, 2 up-to-date
BUILD FAILED
Task completed in 3413 milliseconds

 

Thanks!

Joined Aug 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
srry this is the right one  …
Fri, 08/14/2020 - 21:49

srry this is the right one

 

Executing Gradle task: runClient
Build info: MCreator 2020.2.14217, 1.12.2, 64-bit, 8033 MB, Windows 10, JVM 1.8.0_232, JAVA_HOME: C:\Program Files\Pylo\MCreator\jdk
This mapping 'snapshot_20171003' was designed for MC 1.12! Use at your own peril.
:deobfCompileDummyTask
:deobfProvidedDummyTask
:sourceApiJava UP-TO-DATE
:compileApiJava NO-SOURCE
:processApiResources NO-SOURCE
:apiClasses UP-TO-DATE
:sourceMainJava UP-TO-DATE
C:\Users\gebruiker\MCreatorWorkspaces\gameofthrones\build\sources\main\java\gameofthrones\item\ItemLannisterShield.java:32: error: class MCreatorlannistershield is public, should be declared in a file named MCreatorlannistershield.java public class MCreatorlannistershield extends gameofthrones.ModElement {
       ^
C:\Users\gebruiker\MCreatorWorkspaces\gameofthrones\build\sources\main\java\gameofthrones\item\ItemLannisterShield.java:32: error: cannot find symbol public class MCreatorlannistershield extends gameofthrones.ModElement {
                                                          ^
  symbol:   class ModElement
  location: package gameofthrones
C:\Users\gebruiker\MCreatorWorkspaces\gameofthrones\build\sources\main\java\gameofthrones\item\ItemLannisterShield.java:36: error: cannot find symbol     public MCreatorlannistershield(gameofthrones instance) {
                                   ^
  symbol:   class gameofthrones
  location: class MCreatorlannistershield
3 errors
: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
BUILD FAILED in 1s
5 actionable tasks: 3 executed, 2 up-to-date
BUILD FAILED
Task completed in 2920 milliseconds