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. Install or update Chrome Firefox Java 8 silently and unattended in the background. Fully automated by Ninite. A Ninite installer always gets an app's latest.
How to Install the Java Software Development Kit. Before you can create and modify Java programs, you'll need the Java Software Development Kit. After downloading the Java Software Development Kit installer, double-click the downloaded file in the Downloads window of your web browser or in Finder. Dec 13, 2018 Java is one of the most popular programming languages in the world, used to build different kinds of applications and systems. This tutorial describes how to install various versions and implementations Java on CentOS 7. Java Application Installers [closed]. What's a good installer for Java? It would be ideal if it were cross-platform capable (Linux, Mac OSX and Windows).
Oct 02, 2013 The easiest, fastest way to update or install software. Ninite downloads and installs programs automatically in the background.
I'm a Java beginner.
Offline Installer For Java
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 Amrimigrated 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).
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).
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.
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 BraunWindows Installer For Java Application
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 IvanovI 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.
user489041user489041You 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
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 TrivediBasically, 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.
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
Not the answer you're looking for? Browse other questions tagged javadeploymentdesktop-applicationinstaller or ask your own question.
This page describes how to install and uninstall JDK 8 for Windows.
The page has these topics:
See 'JDK 8 and JRE 8 Installation Start Here' for general information about installing JDK 8 and JRE 8.
System Requirements
See http://www.oracle.com/technetwork/java/javase/certconfig-2095354.html
for information about supported platforms, operating systems, and browsers.
See 'Windows System Requirements for JDK and JRE' for minimum processor, disk space, and memory requirements.
Note:
The JDK and JRE have a version string that enables you to determine the version number. See
http://www.oracle.com/technetwork/java/javase/jdk8-naming-2157130.html
for information about Java SE 8 version numbers.The JDK has the option of installing the public JRE. For more information about JRE installation, see 'JRE Installation for Microsoft Windows'.
If you have any difficulties, see 'Installation Troubleshooting' or submit a bug report at
http://bugreport.java.com/bugreport/
.
Installation Instructions Notation
For any text in this document that contains the following notation, you must substitute the appropriate update version number:
For example, if you were downloading the JDK installer for 32-bit systems for update 1.8.0_01, the file name: jdk-8
version
-windows-i586.exe becomes jdk-8u1-windows-i586.exe
.
Similarly, if you were downloading the JDK installer for 64-bit systems for update 1.8.0_01, the file name jdk-8
version
-windows-x64.exe
becomes jdk-8u1-windows-x64.exe
.
Installation Instructions
In these instructions, you run the self-installing executable file to unpack and install the JDK. As part of the JDK, this installation includes an option to include the public Java Runtime Environment. (The JDK also contains a private JRE for use only by its tools; see 'Private Versus Public JRE' for more information.)
Install the JDK by doing the following:
Downloading the Installer
If you save the self-installing executable file to disk without running it from the download page at the web site, note the file size specified on the download page. After the download has completed, verify that you have downloaded the complete file.
Running the JDK Installer
You must have administrative permissions in order to install the JDK on Microsoft Windows.
The file jdk-8
version
-windows-i586-i.exe
is the JDK installer for 32-bit systems. The file jdk-8
version
-windows-x64.exe
is the JDK installer for 64-bit systems. If you downloaded either file instead of running it directly from the web site, double-click the installer's icon. Then, follow the instructions the installer provides. When finished with the installation, you can delete the downloaded file to recover disk space.
Installers for JDK 7u6 and later install the JavaFX SDK and integrate it into the JDK installation directory. Installers for JDK 7u2 to 7u5 install the JDK first, then start the JavaFX SDK installer, which installs JavaFX SDK in the default directory C:Program FilesOracleJavaFX 2.0 SDK
or C:Program Files (x86)OracleJavaFX 2.0 SDK
on 64-bit operating systems. If you want to install the JavaFX SDK (version 2.0.2) with JDK 7u1 or earlier, see http://docs.oracle.com/javafx/2/installation/jfxpub-installation.htm
for more information.
Installing the JDK Silently
Instead of double-clicking or opening the installer, you can perform a silent, non-interactive, JDK installation by using the command-line arguments. The following table lists example installation scenarios and the commands required to perform them. The notation jdk
stands for the downloaded installer file base name, such as jdk-8u05-windows-i586
.
Installation Scenario | Command |
---|---|
Install the public JRE in silent mode | |
Install development tools and source code in silent mode but not the public JRE | |
Install development tools, source code, and the public JRE in silent mode | |
Install the public JRE in the specified directory C:test in silent mode |
Updating the PATH Environment Variable
If you do not set the PATH
variable, you need to specify the full path to the executable file every time you run it, such as:
Installer For Java Program
It is useful to set the PATH
variable permanently so it will persist after rebooting.
To set the PATH
variable permanently, add the full path of the jdk1.8.0bin
directory to the PATH
variable. Typically, this full path looks something like C:Program FilesJavajdk1.8.0bin
. Set the PATH
variable as follows on Microsoft Windows:
Click Start, then Control Panel, then System.
Click Advanced, then Environment Variables.
Add the location of the bin folder of the JDK installation to the
PATH
variable in System Variables. The following is a typical value for thePATH
variable:
Note:
The
PATH
environment variable is a series of directories separated by semicolons (;
) and is not case-sensitive. Microsoft Windows looks for programs in thePATH
directories in order, from left to right.You should only have one
bin
directory for a JDK in the path at a time. Those following the first instance are ignored.If you are not sure where to add the JDK path, append it.
The new path takes effect in each new command window you open after setting the
PATH
variable.
Starting to Use the JDK
Use the Java item in the Windows Start menu to get access to essential Java information and functions, including help, API documentation, the Java Control Panel, checking for updates, and Java Mission Control.
If you are new to developing and running programs in the Java programming language, see http://docs.oracle.com/javase/tutorial
for some guidance. Note especially the tutorial trails under the heading Trails Covering the Basics.
You can also download the JDK documentation from http://www.oracle.com/technetwork/java/javase/downloads/index-jsp-138363.html
page.
Uninstalling the JDK
To uninstall the JDK, use the 'Add/Remove Programs' utility in the Microsoft Windows Control Panel.
Installed Directory Tree
See http://docs.oracle.com/javase/8/docs/technotes/tools/windows/jdkfiles.html
for a description of the directory structure of the JDK. (Note that the file structure of the JRE is identical to that of the JDK's jre
directory.)
Installation Troubleshooting
Below are some tips for working around problems that are sometimes seen during or following an installation:
For more troubleshooting information, see http://docs.oracle.com/javase/8/docs/technotes/guides/tsgdesktop/index.html
.
Corrupt Cabinet File
If you see the error message 'corrupt cabinet file,' then the file you have downloaded is corrupted. Check the file size against the expected file size listed in these instructions. If sizes do not match, try downloading the bundle again. (A cabinet file contains compressed application, data, resource, and DLL files.)
System Error During Decompression
If you see the error message 'system error during decompression,' then you might not have enough space on the disk that contains your TEMP
directory.
Program Cannot Be Run in DOS Mode
If you see the error message 'This program cannot be run in DOS mode,' then do the following:
Open the MS-DOS shell or Command Prompt window.
Right-click the title bar.
Select Properties.
Choose the Program tab.
Click the Advanced button.
Ensure that the item 'Prevent MS-DOS-based programs from detecting Windows' is not selected.
Select OK.
Select OK again.
Exit the MS-DOS shell.
Restart your computer.
Private Versus Public JRE
Installing the JDK also installs a private JRE and optionally a public copy. The private JRE is required to run the tools included with the JDK. It has no registry settings and is contained entirely in a jre
directory (typically at C:Program Filesjdk1.8.0jre
) whose location is known only to the JDK. On the other hand, the public JRE can be used by other Java applications, is contained outside the JDK (typically at C:Program FilesJavajre1.8.0
), is registered with the Windows registry (at HKEY_LOCAL_MACHINESOFTWAREJavaSoft
), can be removed using Add/Remove Programs, might be registered with browsers, and might have the java.exe
file copied to the Windows system directory (which would make it the default system Java platform).
Source Files in Notepad
In Microsoft Windows, when you create a new file in Microsoft Notepad and then save it for the first time, Notepad usually adds the .txt
extension to the file name. Therefore, a file you name Test.java
is saved as Test.java.txt
. It is important to note that you cannot see the .txt
extension unless you turn on the viewing of file extensions (in Microsoft Windows Explorer, unselect 'Hide file extensions for known file types' under Folder Options). To prevent the .txt
extension, enclose the file name in quotation marks, such as 'Test.java'
, when typing it into the Save As dialog box.
On the other hand, Microsoft WordPad does not add the .txt
extension if you specify another extension. However, you must save the file as 'Text Document'.
Characters That Are Not Part of the System Code Page
It is possible to name directories using characters that are not part of the system locale's code page. If such a directory is part of the installation path, then generic error 1722 occurs, and installation is not completed. Error 1722 is a Windows Installer error code. It indicates that the installation process has failed. The exact reason for this error is not known at this time.
To prevent this problem, ensure that the user and system locales are identical, and that the installation path contains only characters that are part of the system locale's code page. User and system locales can be set in the Regional Options or Regional Settings control panel.
The associated bug number is 4895647.