I'm developing a macOS app written in Swift which will not be distributed via the App Store.
I'm looking to create an installer which will install some prerequisites, more exactly install Java on the machine.
Are there any tools available that can create such an installer for an app?
You could get use of .pkg installator, just put java inside this package and call needed setup actions in pre-install bash script. Or even use script to install brew and call brew to install java, whatever.
There is a GUI tool to make pkg-s called Packages, it works fine and it is free. There is also some documentation on their web site.
You can also create package of any complexity using only built-in, Apple-provided console tools.
Related
I have requirement to create installer for java application. The application should serve as Native Windows Service.
I have seen following projects which can be used to execute Java Application as Windows Service.
Java Service Wrapper
YAJSW ....
Issue:
As i have to deploy the service on more than 20 systems (Can be increased with passage of time). So i think i would be good enough to create installer and distribute the installer file.
So how i can create installer file for java application which run as Windows Service ?
This is an example, using the built-in support for Java from Advanced Installer.
Advanced Installer will generate at the end an MSI that will install your application, a wrapper EXE that can also run and install as a Win32 service. Along that it contains many other options that could be handy, like an automatic updater, etc...
I am making a project that is primarily in java and meant for java developers but there is a specific library I need to use that uses python.
Assuming the developers have python installed is there a way to automate the installation .egg files in a way that could be run with the same command I use to build the java files (I use maven)
what developer needs to run to setup entire environment:
mvn clean install
And this will download the egg files needed and keep them updated.
I have a question about deploying windows application with java module.
I have windows application with several modules. One of these modules is written in java and is packaged as jar-archive. And if there's need for using this module, the application ask jre to start execute this jar.
For this time during application installation it's initialized jre installation.
I would like to understand the following.
Is it possible to install during application installation silently install jre in the application directory. So it jre copy could be used by the application.
I'm talking about structure like this:
/app
/app/jre
/app/modules/myModule.jar
So if it's needed to run myModule.jar I could do it with java from app/jre/bin ?
I saw something like that at Spark messenger (http://www.igniterealtime.org/projects/spark/). This application uses its own jre, which is installed at /Spark/jre/. But as I understand, this application is written in java and builded as a windows distributive using install4j.
I tried to find the answer to my question, but maybe I'm doing something wrong, I always find a solution of creating an exe-wrapper for jar file.
I would like to know about possibility to deploy application with installing jre locally in application folder.
You could ideally have used Java Web Start in the past.
Currently, you can use javapackager.
https://docs.oracle.com/javase/8/docs/technotes/tools/windows/javapackager.html
The javapackager command allows developers to create standalone native install bundles that do not require a separate JRE installation. The native options include: installer, image, exe, msi, dmg, rpm, and deb.
This is ideal for desktop applications, where the user may not have their own JRE installed and just wants the program to run. It may not be appropriate for server-based applications where an administrator would want full control over the environment.
https://blogs.oracle.com/java-platform-group/entry/java_web_start_in_or
In your /app/jre/bin folder there should be an executable binary called java. So in your folder /app/modules you can run
/app/jre/bin/java -jar myModule.jar
That should work.
Does Install4J has the feature of installing MySQL 5.0 and the database i have created ,for my Java Application on windows which is developed in Netbeans IDE
Utimately what i need is an .exe of my Java Application which is in Netbeans IDE and Installer that installs my Application into the clients system and the database created in MySQl .
Please Help with this
You could do this as part of a custom script to be run as part of your install but most likely you'd have to tailor it to each target environment. It would probably be a bit messy though as the installation process would vary wildly from Windows, to OSX, to Linux (and different Linux distros). Also, you'd have to deal with overwriting existing installations.
If you're code is database agnostic consider using something like http://www.h2database.com/html/main.html. It's pure Java (nothing to install besides adding JARs to your app), runs both in memory and persistent to disk, and feature rich. It would be much easier to deploy as you could have it save the database data in your apps install directory.
Add the MySQL installer on Files->Distribution Tree and run it with a "Run executable" action after the "Install Files" action has run.
Probably there's an argument for running that installer in quiet mode and to modify parameters of the MySQL installation.
How can i make up am installer for my java application (jar file) . The same as that of windows installer which proceeds by clicking next and installs the application. What i want with my java app is, the open source library xuggler to get installed if it is not already present in the system.Then i want JRE to get installed if it is not already present in the system.
If the user does not have xuggler or JRE installed , installer should automatically install the xuggler and JRE. Or it should tell the user to get that version of libraries from the given URL and then continue.
Your question is similar to this one:
how to package a java application
Advanced Installer has a separate edition especially for creating installers for Java apps, so this might be what you are looking for. I would recommend other tools but since they're scriptable, they're a hassle to work with, lots of things can go wrong.
Hope this helps
If your app. has a GUI, use deployJava.js for the JRE and then Java Web Start to install/launch the app.
An installer-desc can be specified in the JNLP file to install Xuggle. JWS can partition the download between OS.
JWS is supplied by the makers of J2SE JREs for desktop PCs (e.g. running Mac OSX, *nix or Windows).
NullSoft have a very good scriptable, opensource installer called NSIS.
http://nsis.sourceforge.net/Main_Page
I'm not aware of a cross platform way to do this. In the Windows world, you can use Wix to generate an MSI file, and in that file you can specify dependencies such as the JRE. In the Linux world you can generate a file with the dependencies read by the package manager, a deb file for Debian based releases for example. It's a bit of a faff to set things like this up separately, but once it's done you can just integrate it into your ant script and build everything automatically.