> Task :compileJava FAILED

Hi ! I made the mistake of ctrl+c’ing on gradle while it was at :compileJava:
Now i get this error:
> Task :compileJava FAILED C:\Users\Cristian Mihai\Desktop\Team-Snake-main\src\main\java\me\polymarsdev\teamsnake\me.polymarsdev.teamsnake.Bot.java:30: error: class Bot is public, should be declared in a file named Bot.java public class Bot extends ListenerAdapter { ^ 1 error 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 7.0. Use '--warning-mode all' to show the individual deprecation warnings. See https://docs.gradle.org/6.1/userguide/command_line_interface.html#sec:command_line_warnings BUILD FAILED in 11s 2 actionable tasks: 2 executed

Can i fix it ?

It’s as if the file name of your Bot.java class has been mangled. If you change the name from “me.polymarsdev.teamsnake.Bot,java” to “Bot.java” does that fix it? I don’t know why that would happen on a ctrl-c though.

Someone told me that the bot won’t work if the name is not me.polymarsdev.teamsnake.Bot,java.
But i got a build succesfull after i changed it…the bot doesn’t work but at least the build didnt fail.

I think that is the fully qualified name of the class, which you can see in the package name at the top of the Bot.java file as well as in the directory structure, i.e. <source_root>\me\polymarsdev\teamsnake\Bot.java However, it does not make sense to me for it to be in the file name itself. Can’t help with the Bot code not running but I do hope you are able to figure it out!