Doscommand line Input javafx parameter _ javafxpackager Command Parameter Details,
Enter the javafx parameter _ javafxpackager command parameters in the doscommand line. Now, assume that the project directory to be packaged into exe is Test. This project contains a package named testpackage and a main class named TestMainClass, if the output root directory is MyOutDir, the Command Format of javafxpackager is as follows:
Javafxpackager-deploy-appclass testpackage. TestMainClass-native image-srcdir Test-outdir MyOutDir-outfile TestOut
After the command is successfully executed, you can find a MyOutDir directory under the directory where the cmd command is currently run. The directory contains a bundles Directory, which contains the project directory Test to be converted, this directory contains the converted exe file. You can double-click it to run it.
The last-outfile TestOut of the command will only affect the two files generated in the MyOutDir Directory: TestOut.html and TestOut. jnlp.