I used IntelliJ to make a project and now I need an executable jar from it. I put a MANIFEST.MF file in src/main/resources/META-INF/MANIFEST.MF and it reads as follows:
Manifest-Version: 1.0
Main-Class: clientCommunication.Main
My 'Main' class is called 'Main' and is in the 'clientCommunication' package.
I use the artifacts system in IntelliJ to build the jar. When I edit the artifact corresponding to my jar file, it correctly points to my main class. So I'm not sure what could be causing this issue, does anyone have nay ideas?
Incase it makes any difference, I execute the jar as follows:
java -jar MyProgram.jar