You need to run your jar file from CLI (command line). Like:
java -jar yourJar.jar
pause
If you want to force this, there are different ways to do this:
- a shortcut file to CMD and your jar as an argument
- a batch file running your jar using code like mine above
- calling it from a batch file manually (as I did above)