Whenever I double click on my jar file, It shows a blank screen and immediately disappears. In the terminal, i type first: cd desktop Becuase my jar is there then I type: java -jar "myjar.jar" It shows perfectly and no white screen and does not disappears. How do I make my program work when I double click my jar?