Reputation: 4608
We have a netbeans-platform application, that creates a custom runnable .exe
with the default NetBeans icon - as you can guess, when customers install it, they are not happy.
This NetBeans Wiki article and this NetBeans Bug (closed as wontfix) indicate that the platform can't do it natively, and suggest the use of a third-party executable to do it.
However, having a binary executable in our svn repo being called by maven during build time leaves me (and my boss) quite unhappy.
Is there a library in Java, preferably available in maven, that can change the icon an .exe
file uses?
EDIT: Upon further research, I found this SO question... that wasn't answered either.
EDIT2: We are also not looking for another packager that can create an .exe
for us. We are happy with the default NetBeans' Platform one, and it's already quite well integrated with our dev/release cycle.
Upvotes: 3
Views: 1352
Reputation: 12776
Is there a reason you're not simply calling Window.setIconImages() on startup, and loading some images, possibly stored right within the JAR?
Upvotes: 0
Reputation: 72399
It's not a library that accomplishes what you want, but the closest I could find was this - it'll read PE files and it's open source and Java. You may be able to look through the source to find the code that you need.
Upvotes: 1
Reputation: 1238
If you are already using maven you might use launch4j for creating an .exe. There is a maven plugin available. You also might take a look at this netbeans plugin.
Upvotes: 1