>I would like to run a jar and close the command window after starting up. Is this possible please.
why do you want to do that? jar files are executable files so when you double click it, it will execute without having to run it from the command prompt. So, you don't have to even open the cmd prompt to run .jar files.