用于Ubuntu和SuSE的Java应用程序的安装程序/打包程序 [英] Installer/packager for a Java application for Ubuntu and SuSE

查看:249
本文介绍了用于Ubuntu和SuSE的Java应用程序的安装程序/打包程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个Java应用程序,符合我想在Ubuntu和SuSE上安装的jar集合。我希望安装程序能够检查JRE,注册文件关联并能够在卸载时加载网站。

I have a Java application complied to a collection of jars that I want to make installable on Ubuntu and SuSE. I Want the installer to be able to check for the JRE, register a file association and be able to load a website on un-install.

我理解Ubuntu和SuSE是基于不同的架构,有没有一致的方法来做到这一点?

I understand Ubuntu and SuSE are based on different architectures, so is there a consistent way to do this?

有没有人建议使用实用程序或指导阅读以帮助我实现我的目标我试图这样做。

Does anyone have an advice on utilities to use or guides to read to help me achieve what I'm trying to do.

推荐答案

分发 deb 和<$ c每个平台的$ c> rpm 将为IMO提供最佳的用户体验和系统集成(检查JRE依赖关系,注册文件关联等)。对于基于debian的发行版,请查看为Ubuntu打包Java应用程序(幻灯片可用< a href =http://foss.in/2007/register/slides/Packaging_Java_Applications_for_Ubuntu_Platform_478.pdf =noreferrer>这里)。要构建 rpm ,请查看 RPM HOWTO 发展和openSUSE的包装Java软件。

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.

如果您不想为每个平台构建软件包,我建议分发一个安装程序,例如的IzPack 。此工具允许生成一个独特的跨平台安装程序,提供原生集成,高度可自定义,涵盖卸载部分,可轻松生成安装程序的生成在自动构建中(基于Ant或Maven)。这真是一个不错的工具。它有严肃的参考( Sun Microsystems,JBoss / RedHat,Scala语言项目,一些ObjectWeb / OW2项目,XWiki等。

If you don't want to build packages for each platform, I'd suggest to distribute an installer, for example with IzPack. This tool allows to generate a unique cross-platform installer, provides native integration, is highly customizable, covers the uninstall part and the generation of the installer can be easily included in an automated build (Ant or Maven based). It's really a nice tool. And it has serious references (Sun Microsystems, JBoss/RedHat, the Scala language project, some ObjectWeb/OW2 projects, XWiki, etc).

这篇关于用于Ubuntu和SuSE的Java应用程序的安装程序/打包程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆