I'm a Java beginner.
Reporting: InstallShield Wizard not allowing installation This post has been flagged and will be reviewed by our staff. Thank you for helping us maintain CNET's great community. Setup Factory. Trusted since 1991, Setup Factory is a rock-solid, reliable install creator for Windows applications. Over Flexera InstallShield, Wise Installer. Customize the Wizard interface, it.
I already created a simple GUI application that display will 'hello world' label.
But, how can I create an installer from .java or .jar for windows.Let's say that I have created a useful application and want to share it with my friends to install it in their PC without they need to know what is JRE, or how to download JRE.
Hafizul AmriHafizul Amri1,32877 gold badges2222 silver badges2828 bronze badges
migrated from programmers.stackexchange.comMar 22 '11 at 19:33
This question came from our site for professionals, academics, and students working within the systems development life cycle.
9 Answers
Deploy the app. from a web site using Java Web Start. Ensure the user has the minimum Java using
deployJava.js
(linked from the JWS info page). Community♦
Andrew ThompsonAndrew Thompson154k2929 gold badges169169 silver badges357357 bronze badges
From here:
IzPack
IzPack is an installers generator for the Java platform. It produces lightweight installers that can be run on any operating system where a Java virtual machine is available. Depending on the operating system, it can be launched by a double-click or a simple 'java -jar installer.jar' on a shell. The most common use is to distribute applications for the Java platform, but you can also use it for other kinds of projects. The main benefit of IzPack is that it provides a clean and unique way of distributing a project to users using different operating systems.
VAInstall
VAInstall is a multi-platform installer written in Java. It is distributed under the GNU GPL License 2. Through a simple config file, it allows the packager to pick files and directories from various places on disk, and not only one root dir like other installers. The packager can completely reorganize the files and dirs on the destination host. He can choose the install mode for the destination host (graphic, xtra, text or ansi).
![Wizard Wizard](/uploads/1/2/5/6/125619018/453119649.png)
Packlet
Packlet is a simple installer tool for Java. A packlet is similar to a zip or tgz file: it packages an application into a single compressed file that can be distributed. Packlet files are Java class files that can be executed on any machine with Java 2 Runtime Environment installed. Executing a packlet brings up an installer gui to configure and unpack the application.
Lift Off Java Installer
Lift Off Java Installer is an installer for Java applications. Highlights are self-extracting class files, minimal requirements for the Java installation on the target system, and cross platform installation.
Mini Installer
A simple package to build self installating programs in Java. The process is script driven, the result is a unique JAR file that the user can double click to execute a wizard-like installation process.
JSmooth
JSmooth is a Java Executable Wrapper that makes a standard Windows executable binary (.exe) from a jar file. It makes java deployment much smoother and user-friendly, as it is able to find a Java VM by itself. When no VM is available, it provides feed-back to the users, and can launch the default web browser to an URL that explains how to download a Java VM. Note: NOT COMPLETELY WRITTEN IN JAVA
Launch4J
Windows native executable (.exe) java application wrapper. Offers native splash screen, application icon, search for JRE or use bundled one, feedback on startup failure, passes command line arguments.
AntInstaller
AntInstaller is an installer framework which uses a simple XML file to define the UI, and Apache Ant as a back end. The installers can therefore do anything Ant can, and are compatible with Ant's extension mechanism. Installers can be packaged as a selfextracting Jar and can run from the command line or a Swing GUI. AntInstall can also be used as a GUI front end for existing Ant builds.
Antigen
Antigen (Ant Installer Generator) is a tool to take an Ant build script, combine it with a GUI and wrap it up as an executable jar file. Its primary purpose is to create powerful graphical installers from Ant scripts.
![Windows installer wizard wrapper tool Windows installer wizard wrapper tool](/uploads/1/2/5/6/125619018/755797990.png)
Java Service Wrapper
The Wrapper makes it possible to install a Java Application as a Windows NT Service. The scripts provided with the Wrapper also make it very easy to install those same Java Applications as daemon processes on UNIX systems. The Wrapper correctly handles user log outs under Windows, service dependencies, and the ability to run services which interact with the desktop.
Matthias Braun15.1k1111 gold badges8484 silver badges120120 bronze badges
SorantisSorantis11.7k33 gold badges2626 silver badges3636 bronze badges
You can use WiX to create Windows Installer package. The package will include the JRE binaries and your compiled application (jar file). Upon installation, the installer unpacks your files to user's computer, creates shortcut that starts your application (
app-pathjrebinjavaw.exe -jar app-pathyour-app.jar
).See notes on Redistributing the JRE and in README.
Alexey IvanovAlexey Ivanov10.1k44 gold badges3333 silver badges5454 bronze badges
Mahmoud HossamMahmoud Hossam3,5871010 gold badges3838 silver badges5656 bronze badges
I use a program called JSmooth. This turns java .jar files into executables. I then take those executable and create a installer using InstallShield. InstallShield allows you to create highly customizable installers. There is a free 'Light Edition' that you can use. Very easy to do and very easy to add to build scripts.
user489041user48904117.2k4444 gold badges115115 silver badges188188 bronze badges
You can use Ant task tool with InnoSetup and Launch4j under Eclipse IDE to create a professional-looking Windows-based EXE installer for Java-based program: How to create an exe file in java
Community♦
eeeeee
You can use the install4j for the create exe file for jar file of java project and use the Inno Setup Compiler file for create the installer for the project. this ts Youtube vedio for the how to create the exe and installer
Keval TrivediKeval Trivedi92411 gold badge1010 silver badges2626 bronze badges
Basically, you have to save your project in jar and then convert to exe, you can use jar4exe or other software. When you have the exe file, use an installer software like Inno Setup Compile or other. After all those stpes Your project will be ready to be install in windows, mac or linux platform. Good Luck.
Stefano CastagninoStefano Castagnino
- Install exe4j
- This you will use to create a .exe file from a jar file
- Install inno setup compiler
- This is used to create installer
An outdated but relevant video to guide you throughhttps://www.youtube.com/watch?v=kSmhIunxVW4
Norman PilusaNorman Pilusa