There are several ways to get an MSI of the JRE installer. Run the Offline installer. This is what you did. Jre-6u11-windows-i586-p.exe Install it. When the last page of the install appears, DO NOT click Finish yet. Go go Application Data Sun Java and find a folder named jre1.6.011 This contains two files: an MSI and a CAB. MSI Enterprise JRE Installer. The Java Uninstall Tool is integrated with the installer to provide an option to remove older versions of Java from the system. The change is applicable to 32 bit and 64 bit Windows platforms. See Uninstalling the JRE for more information.
Project: a simple swing application using Java 7.
Objective: Distribute as a .exe or MSI so that i can release patch & updates to the application.
I am aware of the fact there many utilities to convert a jar file to executable .exe my questions are :
- I have used Java 7 for the project & the target systems don't havejava 7 - so i have to include jre 7 with my package ? Hope the 3party lib i used gets compiled along with the jar.
- I am going to remote depoly the package to the target system is itpossible ?
- I have to update the installed application remotely by deploying theupdate packages can this be done ?
1 Answer
First, distributing it as an .EXE or .MSI file won't provide you with the ability of releasing patches/updates and to process them remotely. For that you will need to implement your own Update Manager for that specific application, connected to your remote repository. There are several questions in SO discussing that matter:
If you dig a bit more in that subject you will find sooner or later than, even when 'auto-updates' is a requirement, you don't need an .EXE or .MSI file for that, just think about Eclipse IDE, it is distributed as a .ZIP file and it has its own Update Manager.
However, I think that when you say 'distribute as .exe or MSI' you really mean distribute it as an auto-installer (which is not the same as an auto-updater). For that you have several options:
- If you just want to distribute to Windows platforms (which is a shame, since Java can run in a lot of platforms) then try with the famous NSIS or the WiX Toolset.
- If you want it to be cross-platform (as I would recommend), then in this question you'll find a list with several tools to get that.
How To Get Java Minecraft For Free
Alonso DominguezAlonso DominguezHow To Get Java Msi From Exe
Not the answer you're looking for? Browse other questions tagged javadeploymentjar or ask your own question.
Java Silent Install
DEBIAN AND DEBIAN BASED DISTRIBUTIONS
If you use a Debian based distribution (like Ubuntu), download the .deb package and install it. This should install all the required dependencies for you. If your environment doesn't have a graphical package installer, you can install the package from the terminal, like this:
apt-get install Minecraft.deb
ARCH AND ARCH BASED DISTRIBUTIONS
How To Get Java Minecraft
On Arch and Arch based distributions, the package is available as minecraft-launcher from the AUR. AUR is a repository of packages maintained by the community. You can read more about how to use it on the Arch wiki.
How To Get Java Msi File
OTHER LINUX DISTRIBUTIONS
On other distributions, you can download just the raw launcher files as an archive, extract them somewhere and run them in any way that is convenient (from a terminal, creating a shortcut, etc.). You will need Java, and some dependencies, most of which should already be present on common linux desktops. This is definitely the 'some assembly required' option though.
You'll need an internet connection the first time you launch the game, but after that you can play offline without any issues.