Package (...) does not exist. (compileJava FAILED) Please Help!

Started by Rembones38 on

Topic category: Troubleshooting, bugs, and solutions

Joined Jun 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Package (...) does not exist. (compileJava FAILED) Please Help!
Wed, 06/02/2021 - 11:24 (edited)

I have been working on this modpack for about a week now and I have a little over 100 parts in it. I tried to make a "reset button" using world variables and my world didn't seem to like that so I deleted the variable and the code I used it in but no blocks. Now I can't start my world up because I keep getting this error.

=========================================================================================================================================

Executing 
    Gradle task: build

Build 
    info: MCreator 2021.1.18117, forge-1.16.5, 64-bit, 16341 MB, Windows 10, 
    JVM 1.8.0_275, JAVA_HOME: D:\Minecraft Mod Maker\MCreator\jdk


    Task :compileJava

C:\Users\Rembo\MCreatorWorkspaces\classic_ages\src\main\java\net\mcreator\classicages\procedures\TreeSapAnimationProcedure.java:104: 
    error: package Sap2Block does not exist 
 
                  BlockState _bs = Sap2Block.block.getDefaultState();

 
                                            ^

(Repeats with different custom blocks here)

 

42 
    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

BUILD 
    FAILED in 3s


    actionable task: 1 executed

BUILD 
    FAILED

Task 
    completed in 6 seconds

=========================================================================================================================================

I shortened the code where it repeated with the different blocks that "do not exist". I have the blocks in my folders on MCreator so I don't know why it is telling me they are missing. Any help would be greatly appreciated. I would rather not start over on everything. I have already deleted my gradle folder and that didn't help. I have already regened the code and that didn't work. The error takes me to like 6 procedures that were working fine but the code says that some of my blocks are missing. I couldn't find anything wrong with the code or blocks. I'm just stuck.

Edited by Rembones38 on Wed, 06/02/2021 - 11:24
Joined Jun 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
The only thing I could think…
Thu, 06/03/2021 - 10:51

The only thing I could think of is the procedure I deleted was apart of the blocks it said were gone but when I checked in the blocks triggers, nothing was there so I couldn’t change anything about it. 
 

I just ended up deleting all the blocks/procedures with issues and remade them. It fixed the problem but took me an hour and a half to redo. No fun but I’m glad to be back. Thank you for your help and time!

Joined Jun 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I know this is really late,…
Thu, 06/15/2023 - 22:43

I know this is really late, but for anyone who also had this problem, I solved it by deleting everything in src\main\java\net\mcreator\mod and then rebuilding the project.

Joined May 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I have the same problem, and…
Wed, 07/12/2023 - 04:02

I have the same problem, and can confirm the above solution probably doesn't work. (Or at least didn't when I tried it.)

Joined Feb 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
it worked, thank you!
Thu, 02/22/2024 - 21:23

it worked, thank you!

Joined Jul 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I tried the delete…
Wed, 11/06/2024 - 15:15

I tried the delete everything method and that didn’t work so I pain stakingly opened each element and then saved it (I deleted the creative tabs they were in so my ModTabs.Java package was being referenced but did not exist)

Joined Nov 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I am having the same problem…
Fri, 11/08/2024 - 18:02

I am having the same problem with the creative tabs, I need help, I can't build or run my project.

Joined Nov 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I have over 800 elements 😭
Fri, 11/08/2024 - 18:04

I have over 800 elements 😭

I am having the same problem…
Fri, 11/08/2024 - 21:50

I am having the same problem with the creative tabs, I need help, I can't build or run my project.

Please post link to paste service with your build log