This diagram explains the flow of the build process for Java and JavaFX applications. JavaFX applications and preloaders are packaged into separate JAR archives, and so are represented separately in the diagram, but the flow is the same.
Main applications and JavaFX preloaders consist of source code, style sheets, and other resources. Source code must be compiled, and style sheets can optionally be converted to binary format. The source code, style sheets, and other resources are combined to create a JAR archive, which can optionally be signed and have a certificate attached. For web applications, a deployment descriptor (JNLP file) is prepared to produce the final package, consisting of one or more executable JAR files, the deployment descriptor, and a web page with the embedded application or a link to launch a Java Web Start application. To produce the web page, it is possible to use an input template with variables.