I'm developing a Java-based app using Java8, JavaFX, and some other third-party libraries in IntelliJ. My project directory looks like this
Everything is working fine until the execution of JAR file. When I'm trying to run same using command java -jar myJarFile.jar it's giving this error "Could not find or load main class packageName.mainClassName". I checked the manifest file by unzipping the jar, that too is correct. Tried various solution available on StackOverflow and blogs but none worked. Please help, spent so much time on this.