The exe file labeled jar package

In order to facilitate run directly on the java program windows system, which can be packaged into a jar .exe file, double-click operation can, operation is as follows:

1. Create a folder, it will lay the bag on the jar file directory

 

 

 2. In order to distinguish, now the directory to create a new folder exe

 

3.win + R cmd input into the name input window: javafxpackager -deploy -native image -appclass org.springframework.boot.loader.JarLauncher -srcdir D: \ config -outdir D: \ config \ exe -outfile eurkaApp -name eurkaServer

 

 

 Complete package

 exe directory:

 

bundles directory:

 

 

 

Under eurkeaServer directory: Double-click   eurkeaServer.exe the service is up and running

 

 

 You can find the corresponding process in Task Manager

Or win + R cmd command window netstat -aon | findstr "60810"

Guess you like

Origin www.cnblogs.com/wdzhz/p/12104079.html