Installer/packager for a Java application for Ubuntu and SuSE

Asked
Active3 hr before
Viewed126 times

8 Answers

application
90%

Distributing a deb and rpm for each platform would provide IMO the best user experience and system integration (checking the JRE dependency, registering file association, etc). For debian based distro, have a look at Packaging Java Apps for Ubuntu (slides are available here). To build a rpm, have a look at the RPM Howto or Development and Packaging Java Software for openSUSE.,Making statements based on opinion; back them up with references or personal experience.,I had the same need for packaging a Java app as a Debian/Ubuntu deb archive but didn't find a proper guide, so when I succeeded in creating a deb archive, I wrote a guide of my own.,Take a look at InstallJammer if you're looking for a GUI installer. Otherwise, you might consider building a separate, native installer for each platform. RPM in the case of SuSE and DEB for Ubuntu. InstallJammer can give you a GUI and also register with the native package manager on each of those systems if you wish.

Try with this. This installer works with most Linux Distributions.

Insert into a .tar.gz archive your jars. if you want Create a menu entry on Programs menu create a "YOUR PROGRAM.desktop" file and put this script into that

[Desktop Entry]
Comment = YOUR COMMENT
Name = YOUR PROGRAM
#(Must same as.desktop file 's name)
      Exec = java - jar "(Path to Extracted folder)/myapp.jar"
      Terminal = false Type = Application Icon = (Path to Extracted folder) / myapp.png Categories = Development
load more v
88%

Platform(s): Oracle Enterprise Linux, Oracle Linux, Red Hat Linux, SLES, SUSE Linux ,Uninstall any earlier installations of the Java packages. rpm -e package_name , This procedure installs the Java Runtime Environment (JRE) for 64-bit RPM-based Linux platforms, such as Red Hat and SuSE, using an RPM binary file (.rpm) in the system location. You must be root to perform this installation. , See supported System Configurations for information about supported platforms, operating systems, desktop managers, and browsers.

load more v
72%

Associate .jar files with Java applications,Windows MSI installer packages,Linux RPM and DEB installer packages,macOS PKG installer packages

The following example silently installs AdoptOpenJDK, updates the PATH, associates .jar files with Java applications and defines JAVA_HOME:

msiexec /i <package>.msi ADDLOCAL=FeatureMain,FeatureEnvironment,FeatureJarFileRunWith,FeatureJavaHome INSTALLDIR="c:\Program Files\AdoptOpenJDK\" /quiet

The following example silently installs all the features for INSTALLLEVEL=1:

msiexec /i <package>.msi INSTALLLEVEL=1 /quiet

If you want to launch an interactive installation in another language you can use the Windows installer TRANSFORMS option to set your language choice. For example, to set the UI language to German, use code 1031, which must be preceded by a :.

msiexec /i <package>.msi INSTALLLEVEL=1 TRANSFORMS=:1031

To reinstall AdoptOpenJDK in silent mode with default features, run the following command:

msiexec /i <package>.msi REINSTALL=ALL /quiet

If you want to upgrade AdoptOpenJDK in silent mode, run the following command:

msiexec /i <package>.msi REINSTALL=ALL REINSTALLMODE=amus /quiet
load more v
65%

To install or remove packages, use the following commands: , A list of all new installable packages can be obtained with the command: , For example, to install a package without knowing its name, capabilities come in handy. The following command will install the package MozillaFirefox: , Some options also require a single argument. The following command will list all known patterns:

zypper[--global - options] COMMAND[--command - options][arguments]
load more v
75%

You can install the Java Development Kit (JDK) on a Linux platform from archive binary files or from Red Hat Package Manager (RPM) packages.,You can install the Java Runtime Environment (JRE) on a Linux platform from archive binary files or from RPM packages.,You can install JRE 9 on a 64-bit Linux platform from an archive binary file (.tar.gz).,You can install the JDK for 64-bit Linux, from an archive binary file (.tar.gz).

jdk - 9.1 .1 .1 - linux - x64_bin.tar.gz
load more v
40%

Home » Security » How to Install RPM Packages on Ubuntu,Follow the steps in this tutorial to learn how to install .rpm packages on Ubuntu.,How to Install .rpm Package Directly on Ubuntu,Install the converted .rpm package on Ubuntu

1. Check the status of the Universe distribution component:

sudo add - apt - repository universe
load more v
22%

In this section, you will get SQL Server 2017 on SUSE Linux Enterprise Server (SLES). After that you will install the necessary dependencies to create Java apps with SQL Server.,Maven can be used to help manage dependencies, build, test and run your Java project.,You now have SQL Server running locally on your SLES machine! Check out the next section to continue installing prerequisites.,Check that you have Maven properly installed by running the following command.

     sudo zypper addrepo - fc https: //packages.microsoft.com/config/sles/12/mssql-server-2017.repo
        sudo zypper--gpg - auto -
        import -keys refresh
load more v
60%

Compress the man files involved in your installation:,3.1 Obtaining and installing the rpm package,Agree to remove the package. Once it is complete, copy and paste the following: ,or, if you downloaded the 64-bit RPM:

In this case you may create a link

ln - s / usr / sbin / update - alternatives / usr / sbin / alternatives

and run rpm with the --nodeps option as follows:

rpm - ivh--nodeps jre - 8 u251 - linux - i586.rpm

or, if you downloaded the 64-bit RPM:

rpm - ivh--nodeps jre - 8 u251 - linux - x64.rpm
load more v

Other "application-undefined" queries related to "Installer/packager for a Java application for Ubuntu and SuSE"