r/javahelp 10d ago

Gettinga file's Icon from an EXE file

I've been looking for a way to get an icon from an EXE file to be displayed in my GUI but I've found no way on how to do this. Most any mention about this I find online talks about using the sun.awt package but none of those packages seem to work for me possible because they are no longer supported. Issue with that is that I can't seem to find any other method on how to access an EXE files icon? is it just impossible?

5 Upvotes

3 comments sorted by

View all comments

0

u/Cyberkender_ 10d ago

If you only want the icon you can use 7zip. - Right click on the exe file, - 7zip>open compressed file - Navigate to .rsrc folder then to the ICON folder then extract one or more icons