Am making a Discord bot and I want the bot file in "jar" format so I can run it effectively, but every time I try to build a jar file out of it throws some sort of error, Such as
Error: Could not find or load main class com.Sahil.Main Caused by:java.lang.ClassNotFoundException: com.Sahil.Main
or
Error: Could not find or load main class com.Sahil.Main
First, it used to show the second error but after spending some time on youtube I made some changes and I think it got worse. I've never tried maven so completely blind.
pom file
<groupId>org.example</groupId>
<artifactId>Bot</artifactId>
<version>1.0-SNAPSHOT</version>
<properties>
<maven.compiler.source>15</maven.compiler.source>
<maven.compiler.target>15</maven.compiler.target>
</properties>
<dependencies>
</dependencies>
I removed my dependencies as I believe they won't be necessary for this, please do let me know if I need to provide them will do so.