Installer/packager for a Java application for Ubuntu and SuSE
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
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.
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
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]
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
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
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
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
Other "application-undefined" queries related to "Installer/packager for a Java application for Ubuntu and SuSE"
- Deployment Symfony 4 with React js application on Heroku
- A request to test the responsiveness of the React application [closed]
- React-Native: Application has not been registered error
- Why not use the react native more to make cross-mobile applications? [closed]
- React Weather Application not fetching the data when it is online [duplicate]
- Using Twain in Electron desktop application
- Why is my React form being seen as application/json when I set it to multipart/form-data? The file I upload is being seen as undefined
- Hello, I wanted to implement different css fonts in Windows and Mac for same page in web application. Can anyone provide me how can we achieve this
- Can we modify create react app to create build of application on save
- What can I do in my React.js application to reduce user-side delays?
- Can't deploy smart contract application to Heroku
- How to remove text between tags in php?
- /tmp vs. /dev/shm for temp file storage on Linux?
- How to debug gettext not working in PHP?
- How to make strtotime parse dates in Australian (i.e. UK) format: dd/mm/yyyy?
- Get filesystem path of installed composer package
- PHP Manager - Downloaded file failed signature verification
- What methods exist for setting up a large email notification system?
- PHP Cut String At specific character
- How to implement authorization using a Telegram API?
- Faceted Search (solr) vs Good old filtering via PHP?
- What is meant by whereRaw in PHP Laravel framework
- WordPress and Call to undefined function add_menu_page()
- How to override trait function and call it from the overridden function?
- How to use multiple databases in Laravel
- How can I check if mysql table column even exists?
- Zend Framework cookie management
- How secure are PHP sessions?
- How can we open a link in private browsing mode
- Using zipArchive addFile() will not add image to zip
- How do I tell DOMDocument->load() what encoding I want it to use?