JavaFX 8 Tutorial 53 - JavaFX Application Deployment
Steps
for JavaFX Application Deployment:
for JavaFX Application Deployment:
1.
Install Inno Setup (for exe installer)
Install Inno Setup (for exe installer)
Link: http://www.jrsoftware.org/download.php/is.exe
2.
Install WIX Setup (for msi installer)
Install WIX Setup (for msi installer)
Link: http://wixtoolset.org/releases/v3.10/stable
3.
Set Environment variables for Inno setup
Set Environment variables for Inno setup
Path: C:\Program Files (x86)\Inno Setup 5
4.
Set Environment variables for WIX setup
Set Environment variables for WIX setup
Path: C:\Program Files (x86)\WiX Toolset v3.10\bin
5.
Add Icon to application
Add Icon to application
primaryStage.setTitle("User Info App ");
primaryStage.getIcons().add(new Image("file:user-icon.png"));
6.
Open build.xml and Add Following code in
it at last
Open build.xml and Add Following code in
it at last
<target
name="-post-jfx-deploy">
name="-post-jfx-deploy">
<fx:deploy verbose="true" nativeBundles="exe"
outdir="${basedir}/${dist.dir}"
outfile="${application.title}">
<fx:application name="${application.title}"
mainClass="${javafx.main.class}"/>
<fx:resources>
<fx:fileset dir="${basedir}/${dist.dir}"
includes="*.jar"/>
includes="*.jar"/>
<fx:fileset
dir="${basedir}/${dist.dir}" includes="lib/*.jar"/>
dir="${basedir}/${dist.dir}" includes="lib/*.jar"/>
</fx:resources>
<fx:info title="${application.title}"
vendor="${application.vendor}"/>
<fx:info>
<fx:icon href="${basedir}/user-icon.ico"></fx:icon>
</fx:info>
<fx:preferences shortcut="true"/>
</fx:deploy>
</target>
7.
Right click on project open properties and set
Right click on project open properties and set
8.
New package as added in panel
New package as added in panel
9.
Click on EXE installer
Click on EXE installer
10. Open installation path and add SQLite
database or replace with existing
database or replace with existing
Comments
Post a Comment