Windows easy to have to run the jar file

  New text document, the file extension ".bat", then enter the following contents:

@echo off
java -jar %1
pause

  After the jar file by dragging it onto the bat file on the line.

Guess you like

Origin www.cnblogs.com/bigbigbigo/p/11448631.html