Snippet: HOWTO Create .bat file for your UI-less Java .jar programm to leave the shell open after execution (and for result output)

Simply paste this single line into a batch ("RUN.bat") or other to execute your Java .jar file in the same directory with double click and keep the Shell window open after execution to see all results and program status. I had to search a bit for that.

java -jar "YourJarFileName.jar" & pause

Don't forget to replace "YourJarFileName" by your .jar file name ;)

Happy coding!