如何为 Ubuntu 打包 Java 程序? [英] How do I package a Java program for Ubuntu?

查看:28
本文介绍了如何为 Ubuntu 打包 Java 程序?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个当前用户下载并运行安装脚本的应用程序.我希望能够获取由 NetBeans 生成的 JAR 文件,并将其放入用户可以通过包管理器下载的包中.它还需要实现菜单(用户可以点击的 Debian 菜单中的条目).

I have an application that currently a user downloads and runs an install script. I want to be able to take the JAR file and such that is generated by NetBeans and make it into a package that a user can download through a package manager. It needs to have menus implemented as well (the entries in the Debian menu that the user can click on).

目前我正在学习本教程:http://packaging.ubuntu.com/html/packaging-new-software.html

Currently I am following through this tutorial: http://packaging.ubuntu.com/html/packaging-new-software.html

但是,我担心我会朝错误的方向进入某种兔子洞.这肯定是很常见的事情吗?

However, I am worried that I am going down some kind of rabbit hole in the wrong direction. Surely this must be something that is common?

通过包将 JAR 文件提供给其他人的标准程序是什么?

What is the standard procedure for getting your JAR file to other people through packages?

推荐答案

我需要:

  • 安装 dpkg.
  • 创建一个类似于我希望解压的目录结构.
  • 创建一个 shell 脚本,将它复制到那里.
  • 运行 dpkg.

这篇关于如何为 Ubuntu 打包 Java 程序?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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