Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/afa-farkhod/installation-wizard-app

Application is an installation wizard for the JDK (Java Development Kit). It is a JavaFX-based GUI Windows Desktop Application that guides users through the process of downloading and installing the JDK, as well as setting the path environment variable.
https://github.com/afa-farkhod/installation-wizard-app

installation-wizard java javafx javafx-application javafx-desktop-apps

Last synced: about 11 hours ago
JSON representation

Application is an installation wizard for the JDK (Java Development Kit). It is a JavaFX-based GUI Windows Desktop Application that guides users through the process of downloading and installing the JDK, as well as setting the path environment variable.

Awesome Lists containing this project

README

        

# [Installation-Wizard-App](https://github.com/af4092/Installation-Wizard-App/tree/main)
Application is an installation wizard for the JDK (Java Development Kit). It is a JavaFX-based GUI Windows Desktop Application that guides users through the process of downloading and installing the JDK, as well as setting the path environment variable.

- [Wizard](https://en.wikipedia.org/wiki/Wizard_(software)) - A software wizard or setup assistant is a user interface that leads you through a sequence of small steps, like a dialog box to configure a program for the first time. A complex, rare, or unfamiliar task may be easier with a wizard that breaks the task into simpler pieces. But a wizard may be a barrier to deeper understanding, and a substitute for clearer design.
```
+ DOWNLOAD => jdk-20 installer download is successful
+ INSTALLATION => jdk installation is successful
+ PATH => setting the environmental path is successful
```
- When running `jar` application `javafx-sdk-20.0.1` should be also installed in the local environment, after that from the terminal following command is required to start the application:
```
java --module-path "C:/Program Files/Java/javafx-sdk-20.0.1/lib" --add-modules javafx.controls,javafx.fxml -jar InstallerWizard-1.0-SNAPSHOT.jar
```


Image

----------------------------

- `launch.bat` file should be placed in the same directory as the `*.jar` file. And instead of running jar file launch file can be run


Image

- `launch.bat` script is the batch script written in the Windows command prompt sets up the necessary environment variables (JAVA_HOME, PATH, MODULE_PATH, MAIN_CLASS) and then uses the java command to run a Java application with the specified module path, classpath, and main class.
```
@echo off
set JAVA_HOME=C:\Program Files\Java\jdk-17.0.7
set PATH=%JAVA_HOME%\bin;%PATH%
set MODULE_PATH="C:\Program Files\Java\javafx-sdk-20.0.1\lib"
set MAIN_CLASS=com.example.instalwizard.InstalWizar

java --module-path %MODULE_PATH% --add-modules javafx.controls,javafx.fxml -cp InstalWizard-1.0-SNAPSHOT.jar %MAIN_CLASS%
```

## [Reference]()

- [Oracle official documentation shows the basics of taking JavaFX application from code to deployment](https://docs.oracle.com/javafx/2/deployment/deploy_quick_start.htm) - Starting from JDK 7 update 6, JavaFX applications can be packaged as a platform-specific, self-contained application. These applications include all application resources, the Java and JavaFX runtimes, and a launcher, and they provide the same install and launch experience as native applications for the operating system.
- [Package JavaFX applications in IntelliJ IDEA IDE](https://www.jetbrains.com/help/idea/packaging-javafx-applications.html) - package JavaFX application by building the corresponding artifact (a Java archive). For JavaFX applications, IntelliJ IDEA provides a dedicated artifact type: JavaFx Application.
- [JavaFX application packaging Stackoverflow](https://stackoverflow.com/questions/30145772/what-is-the-best-way-to-deploy-javafx-application-create-jar-and-self-contained/30162808#30162808) - What is the best way to deploy JavaFX application, create JAR and self-contained applications and native installers?
- [JavaFX 11 application deployment with JRE Stackoverflow](https://stackoverflow.com/questions/53453212/how-to-deploy-a-javafx-11-desktop-application-with-a-jre) - How to deploy a JavaFX 11 Desktop application with a JRE
- [Self-Contained Application Packaging](https://docs.oracle.com/javase/8/docs/technotes/guides/deploy/self-contained-packaging.html#BCGIBBCI) - This topic describes how to generate the package for a self-contained application. A self-contained application contains your Java or JavaFX application and the JRE needed to run the application.
- [Export JavaFX 11, 15 or 17 projects into an executable jar file with IntelliJ [2022]](https://youtu.be/F8ahBtXkQzU) - YouTube Video shows how to create a jar file from JavaFX 11 or above with IntelliJ IDEA.