eclipse - How to update icon in forked Java program - Stack Overflow

admin2025-04-17  2

Eclipse Version: 2024-12 (4.34.0) / Build id: 20241128-0757

I'm working on a fork of an existing project. The app is usually distributed as a .jar with a .ico in the root folder.

I've searched throughout the codebase using Eclipse's search function and Notepad++'s Find in Files for ".ico" and the only thing it brings up is the index file in the .git folder, which obviously shouldn't (and doesn't need to) be changed.

I have no idea how this program sets its icon. Removing the .ico from the source folder doesn't have any effect. Nor does placing in a different one and giving it the same name as the original.

(EDIT: In the distributed version, removing/replacing the .ico file there also has no effect. So, it must be baked in somehow. Question is, where??)

My question, then, is:

How is the program icon set in a typical Java program compiled in Eclipse?

转载请注明原文地址:http://anycun.com/QandA/1744844769a88415.html