In this chapter, we will build a distributable zip of the application so that we can share it to end-users. We will make use of the "distZip" task in Gradle to build the zip. The zip will be containing two folders. One folder named 'lib' will contain both the Main JAR file as well as all the dependencies we added. The second folder named 'bin' will contain a bat file for Windows and a .sh file for Linux.
By default, starting the application with .bat file in windows will keep the cmd open until the program exit. This is not ideal since we are building a widget and having a CMD window opened is very distracting. So we will find a way to close the CMD immediately after the Java program starts.
The issue in Github related to "Error: JavaFX runtime components are missing, and are required to run this application": https://github.com/javafxports/openjd...
Github project: https://github.com/afsalashyana/Covid...
--
Genuine coder
#JavaFX
#GenuineCoder
#Widget