如何在.jar文件上获取图标? [英] How do I get an Icon on a .jar file?

查看:184
本文介绍了如何在.jar文件上获取图标?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我用java编写了一个程序,我可以将它作为jar文件执行。我想知道两件事。一,如何使.jar文件具有除标准java图标之外的桌面图标。两个,我使用netbeans,我如何创建.exe文件而不是.jar文件?

I have written a program in java, and I am able to execute it as a jar file. I was wondering two things. one, how would I make the .jar file have a desktop icon other than the standard java icon. and two, I am using netbeans, how would I create a .exe file instead of a .jar file?

推荐答案

像Kitsune说,你可以制作一个可执行文件。我最熟悉的Java打包程序是 Launch4J 。它具有高度可配置性,可以从Ant脚本调用,因此可以轻松集成到现有的基于Ant的构建过程中。

Like Kitsune said, you can make an executable file. The Java packager I'm most familiar with is Launch4J. It's highly configurable and can be called from Ant scripts, so it can easily integrate into an existing Ant-based build process.

这篇关于如何在.jar文件上获取图标?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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