Wrapping an executable jar file with an icon

為{幸葍}努か 提交于 2019-12-06 09:36:27
Andrew Thompson

I created a simple GUI .. Is there a way to make some sort of "wrapper icon" for the.. (GUI)

Sure. Launch the app. using Java Web Start. It can install desktop icons and menu shortcuts with icons on supported platforms. For further branding, add a splash.

Windows: Launch4J creates an EXE from you JAR and lets you choose its icon. If you want to keep whatever tool you are currently using for building the EXE and then go and change the icon of that EXE, try Resource Hacker: http://download.cnet.com/Resource-Hacker/3000-2352_4-10178587.html

Mac:
For changing the Mac app bundle icon, add the following in your info.plist

<key>CFBundleIconFile</key>
<string>maciconfile</string>

having put a maciconfile.icns file in your Resources directory.

Xcode Developer Tools which you can get for free if you own a Mac have the tools you need. If you do not have a Mac, there are tools on other platfroms that allow you to build bundles for Mac (such as the OS X Application Bundle Plugin for Maven).

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!