So, I created this JDA bot, and now i want to start it on my Ubuntu 18.04.4 VPS... On IntelliJ Idea I used "gradlew build" and i created a jar file, so I put it on my VPS.
I did: "sudo apt install openjdk-11-jre-headless"
Then I created a folder called "bot" and I put the jar file in "bot" folder. So I entered the folder and I used:
"java -jar JavaBotJDA11-1.0-SNAPSHOT.jar"
But there's an error:
Error: Could not find or load main class com.company.project.MainClass
Caused by: java.lang.ClassNotFoundException: com.company.project.MainClass