Mod won't export (Says error found, but there is no error)

Started by ArmanGrey on

Topic category: Troubleshooting, bugs, and solutions

Last seen on 14:09, 25. Jun 2017
Joined Feb 2017
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Mod won't export (Says error found, but there is no error)

I tried to export a small mod that I have made. It includes no mechanic. Just few blocks, thats all. When I try to export it, it says that there are errors, but lists me none. When I say remove mods with errors, it wont remove any mods. So, it says error fo no reason.

warning: [options] bootstrap class path not set in conjunction with -source 1.6
/Users/armangrey/Desktop/MCreator 1/forge/build/sources/main/java/mod/mcreator/ModName.java:44: error: cannot find symbol
    mcreator_orangeBlock mcreator_5 = new mcreator_orangeBlock();
    ^
  symbol:   class mcreator_orangeBlock
  location: class ModName
/Users/armangrey/Desktop/MCreator 1/forge/build/sources/main/java/mod/mcreator/ModName.java:45: error: cannot find symbol
    mcreator_yellowBlock mcreator_6 = new mcreator_yellowBlock();
    ^
  symbol:   class mcreator_yellowBlock
  location: class ModName
/Users/armangrey/Desktop/MCreator 1/forge/build/sources/main/java/mod/mcreator/ModName.java:46: error: cannot find symbol
    mcreator_greenBlock mcreator_7 = new mcreator_greenBlock();
    ^
  symbol:   class mcreator_greenBlock
  location: class ModName
/Users/armangrey/Desktop/MCreator 1/forge/build/sources/main/java/mod/mcreator/ModName.java:47: error: cannot find symbol
    mcreator_aquaBlock mcreator_8 = new mcreator_aquaBlock();
    ^
  symbol:   class mcreator_aquaBlock
  location: class ModName
/Users/armangrey/Desktop/MCreator 1/forge/build/sources/main/java/mod/mcreator/ModName.java:48: error: cannot find symbol
    mcreator_blueBlock mcreator_9 = new mcreator_blueBlock();
    ^
  symbol:   class mcreator_blueBlock
  location: class ModName
/Users/armangrey/Desktop/MCreator 1/forge/build/sources/main/java/mod/mcreator/ModName.java:49: error: cannot find symbol
    mcreator_purpleBlock mcreator_10 = new mcreator_purpleBlock();
    ^
  symbol:   class mcreator_purpleBlock
  location: class ModName
/Users/armangrey/Desktop/MCreator 1/forge/build/sources/main/java/mod/mcreator/ModName.java:50: error: cannot find symbol
    mcreator_brownBlock mcreator_11 = new mcreator_brownBlock();
    ^
  symbol:   class mcreator_brownBlock
  location: class ModName
/Users/armangrey/Desktop/MCreator 1/forge/build/sources/main/java/mod/mcreator/ModName.java:51: error: cannot find symbol
    mcreator_whiteBlock mcreator_12 = new mcreator_whiteBlock();
    ^
  symbol:   class mcreator_whiteBlock
  location: class ModName
/Users/armangrey/Desktop/MCreator 1/forge/build/sources/main/java/mod/mcreator/ModName.java:52: error: cannot find symbol
    mcreator_greyBlock mcreator_13 = new mcreator_greyBlock();
    ^
  symbol:   class mcreator_greyBlock
  location: class ModName
/Users/armangrey/Desktop/MCreator 1/forge/build/sources/main/java/mod/mcreator/ModName.java:53: error: cannot find symbol
    mcreator_blackBlock mcreator_14 = new mcreator_blackBlock();
    ^
  symbol:   class mcreator_blackBlock
  location: class ModName
/Users/armangrey/Desktop/MCreator 1/forge/build/sources/main/java/mod/mcreator/ModName.java:54: error: cannot find symbol
    mcreator_daisy mcreator_15 = new mcreator_daisy();
    ^
  symbol:   class mcreator_daisy
  location: class ModName
/Users/armangrey/Desktop/MCreator 1/forge/build/sources/main/java/mod/mcreator/ModName.java:55: error: cannot find symbol
    mcreator_plants mcreator_16 = new mcreator_plants();
    ^
  symbol:   class mcreator_plants
  location: class ModName
/Users/armangrey/Desktop/MCreator 1/forge/build/sources/main/java/mod/mcreator/ModName.java:56: error: cannot find symbol
    mcreator_rosePlant mcreator_17 = new mcreator_rosePlant();
    ^
  symbol:   class mcreator_rosePlant
  location: class ModName
/Users/armangrey/Desktop/MCreator 1/forge/build/sources/main/java/mod/mcreator/ModName.java:57: error: cannot find symbol
    mcreator_grassPlants mcreator_18 = new mcreator_grassPlants();
    ^
  symbol:   class mcreator_grassPlants
  location: class ModName
/Users/armangrey/Desktop/MCreator 1/forge/build/sources/main/java/mod/mcreator/ModName.java:58: error: cannot find symbol
    mcreator_mushroomPlant mcreator_19 = new mcreator_mushroomPlant();
    ^
  symbol:   class mcreator_mushroomPlant
  location: class ModName
/Users/armangrey/Desktop/MCreator 1/forge/build/sources/main/java/mod/mcreator/ModName.java:44: error: cannot find symbol
    mcreator_orangeBlock mcreator_5 = new mcreator_orangeBlock();
                                          ^
  symbol:   class mcreator_orangeBlock
  location: class ModName
/Users/armangrey/Desktop/MCreator 1/forge/build/sources/main/java/mod/mcreator/ModName.java:45: error: cannot find symbol
    mcreator_yellowBlock mcreator_6 = new mcreator_yellowBlock();
                                          ^
  symbol:   class mcreator_yellowBlock
  location: class ModName
/Users/armangrey/Desktop/MCreator 1/forge/build/sources/main/java/mod/mcreator/ModName.java:46: error: cannot find symbol
    mcreator_greenBlock mcreator_7 = new mcreator_greenBlock();
                                         ^
  symbol:   class mcreator_greenBlock
  location: class ModName
/Users/armangrey/Desktop/MCreator 1/forge/build/sources/main/java/mod/mcreator/ModName.java:47: error: cannot find symbol
    mcreator_aquaBlock mcreator_8 = new mcreator_aquaBlock();
                                        ^
  symbol:   class mcreator_aquaBlock
  location: class ModName
/Users/armangrey/Desktop/MCreator 1/forge/build/sources/main/java/mod/mcreator/ModName.java:48: error: cannot find symbol
    mcreator_blueBlock mcreator_9 = new mcreator_blueBlock();
                                        ^
  symbol:   class mcreator_blueBlock
  location: class ModName
/Users/armangrey/Desktop/MCreator 1/forge/build/sources/main/java/mod/mcreator/ModName.java:49: error: cannot find symbol
    mcreator_purpleBlock mcreator_10 = new mcreator_purpleBlock();
                                           ^
  symbol:   class mcreator_purpleBlock
  location: class ModName
/Users/armangrey/Desktop/MCreator 1/forge/build/sources/main/java/mod/mcreator/ModName.java:50: error: cannot find symbol
    mcreator_brownBlock mcreator_11 = new mcreator_brownBlock();
                                          ^
  symbol:   class mcreator_brownBlock
  location: class ModName
/Users/armangrey/Desktop/MCreator 1/forge/build/sources/main/java/mod/mcreator/ModName.java:51: error: cannot find symbol
    mcreator_whiteBlock mcreator_12 = new mcreator_whiteBlock();
                                          ^
  symbol:   class mcreator_whiteBlock
  location: class ModName
/Users/armangrey/Desktop/MCreator 1/forge/build/sources/main/java/mod/mcreator/ModName.java:52: error: cannot find symbol
    mcreator_greyBlock mcreator_13 = new mcreator_greyBlock();
                                         ^
  symbol:   class mcreator_greyBlock
  location: class ModName
/Users/armangrey/Desktop/MCreator 1/forge/build/sources/main/java/mod/mcreator/ModName.java:53: error: cannot find symbol
    mcreator_blackBlock mcreator_14 = new mcreator_blackBlock();
                                          ^
  symbol:   class mcreator_blackBlock
  location: class ModName
/Users/armangrey/Desktop/MCreator 1/forge/build/sources/main/java/mod/mcreator/ModName.java:54: error: cannot find symbol
    mcreator_daisy mcreator_15 = new mcreator_daisy();
                                     ^
  symbol:   class mcreator_daisy
  location: class ModName
/Users/armangrey/Desktop/MCreator 1/forge/build/sources/main/java/mod/mcreator/ModName.java:55: error: cannot find symbol
    mcreator_plants mcreator_16 = new mcreator_plants();
                                      ^
  symbol:   class mcreator_plants
  location: class ModName
/Users/armangrey/Desktop/MCreator 1/forge/build/sources/main/java/mod/mcreator/ModName.java:56: error: cannot find symbol
    mcreator_rosePlant mcreator_17 = new mcreator_rosePlant();
                                         ^
  symbol:   class mcreator_rosePlant
  location: class ModName
/Users/armangrey/Desktop/MCreator 1/forge/build/sources/main/java/mod/mcreator/ModName.java:57: error: cannot find symbol
    mcreator_grassPlants mcreator_18 = new mcreator_grassPlants();
                                           ^
  symbol:   class mcreator_grassPlants
  location: class ModName
/Users/armangrey/Desktop/MCreator 1/forge/build/sources/main/java/mod/mcreator/ModName.java:58: error: cannot find symbol
    mcreator_mushroomPlant mcreator_19 = new mcreator_mushroomPlant();
                                             ^
  symbol:   class mcreator_mushroomPlant
  location: class ModName
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
30 errors
1 warning

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.

It also says faiure at the end of the log, but I didn't get what it means. Can anyone help?

Last seen on 22:45, 29. Jan 2020
Joined Jul 2015
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Yeah, for whatever reason,
Fri, 03/03/2017 - 22:04

Yeah, for whatever reason, there has been a bug with recent versions of MCreator, where sometimes when you make mod elements... They don't actually save other than in the workspace.

SOLUTION:

  1. [IMPORTANT!] Backup your current workspace (export as MCR file)
  2. Look at the error, and delete all listed mod elements
    • Example: [spoiler]cannot find symbol
          mcreator_mushroomPlant mcreator_19 = new mcreator_mushroomPlant();
                                                   ^[/spoiler]
  3. Try to export again
  4. If you deleted all listed mod elements ([spoiler]The example shows the specific placement of elements needed to be deleted in bold[/spoiler]) then it should succeed
  5. [UNTESTED] Try reloading the backup workspace that was giving errors before and exporting it again but without deleting anything. I would assume that because the "nonexistent" elements are saved as part of the workspace and you can still open them and their settings will all be the same, then maybe reloading the workspace will possibly fix this issue?
Last seen on 21:58, 20. Mar 2017
Joined Mar 2017
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
You, too, this happens when
Tue, 03/14/2017 - 19:22

You, too, this happens when you export?