如何在java应用程序上放一个图标? [英] How do I put a icon on java applications?

查看:292
本文介绍了如何在java应用程序上放一个图标?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个问题。我有一个非常酷的游戏,我已经在日食。为了让人们执行它,我想把它转换成一个可执行的jar。虽然我想要的jar有一个像大多数.exe程序的图标,虽然我不知道该怎么做。大多数人将图标放在他们的java程序上的方式是什么?我已经把它转换成一个带有图标的.exe,但我想知道是否有另一种方式

解决方案

该jar是从操作系统的角度来看,并不是一个可执行文件 - 它只是编译过的类和资源的归档。但是有一种方法来完成你想要的。



这里有几个:



JSmooth: http://jsmooth.sourceforge.net/



Launch4j: http://launch4j.sourceforge.net/



JWrapper: http://www.jwrapper.com/java -to-exe-free.html


I have a question. I have a really cool game that I have made in eclipse. In order for people to execute it I want to convert it to a executable jar. Although I want the jar to have a icon like most .exe programs, although I don't know how to do that. What is the way that most people put icons on their java programs? I have converted it to a .exe with a icon before but I want to know if there is another way

解决方案

The jar is not really an executable from the OS point of view - it is just an archive of compiled classes and resources. But there is a way to accomplish what you wish for. You have to use executable wrapper.

Here are few of them:

JSmooth: http://jsmooth.sourceforge.net/

Launch4j: http://launch4j.sourceforge.net/

JWrapper: http://www.jwrapper.com/java-to-exe-free.html

这篇关于如何在java应用程序上放一个图标?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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