Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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 2 months 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.
- Host: GitHub
- URL: https://github.com/afa-farkhod/installation-wizard-app
- Owner: afa-farkhod
- License: mit
- Created: 2023-06-08T01:08:42.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-09-07T02:27:10.000Z (over 1 year ago)
- Last Synced: 2024-11-19T21:12:07.346Z (about 2 months ago)
- Topics: installation-wizard, java, javafx, javafx-application, javafx-desktop-apps
- Language: Java
- Homepage:
- Size: 7.96 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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
```
----------------------------
- `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
- `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.InstalWizarjava --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.