So i have my project
Which i can build an artifact and run it's jar file using command in cmd (i can't by just right click)
So recently i add maven with two dependencies for apache poi to deal with excel files
The problem is
The program run perfectly in IDE's terminal
But when i build artifact
Cmd just open and close and same time with no output
What is the solution ?
I searched and found the you have to change the execution command
To" java -cp filename.jar package.name.mainClassName
" From "java -jar file name"
-So what is the primary solution for this problem with maven.
-Also why normal jar file can't execute with just right click