# Changing Icon of pre-exported file

**URL:** <https://discourse.processing.org/t/changing-icon-of-pre-exported-file/2532>\
**Category:** Coding Questions\
**Created:** [August 10, 2018, 3:01pm UTC](https://discourse.processing.org/t/changing-icon-of-pre-exported-file/2532 "2018-08-10T15:01:21Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![KittyCatGamer123](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/kittycatgamer123/32/1042_2.png) [@KittyCatGamer123](https://discourse.processing.org/u/KittyCatGamer123)\
**Post date:** [August 10, 2018, 3:01pm UTC](https://discourse.processing.org/t/changing-icon-of-pre-exported-file/2532/1 "2018-08-10T15:01:21Z")

</div>

Hello. I was wondering how to change the icon of your file.

**MUST BE IN CODE**!!  
**MUST BE FOR PROCESSING 3**!!  
Thanks guys

KittyCatGamer123 😉

---

<div class="post-metadata">

**Author:** ![Kevin](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/kevin/32/2297_2.png) [@Kevin](https://discourse.processing.org/u/Kevin)\
**Post date:** [August 10, 2018, 7:59pm UTC](https://discourse.processing.org/t/changing-icon-of-pre-exported-file/2532/2 "2018-08-10T19:59:34Z")

</div>

You can’t do this with code, as it’s an OS-specific setting.

You might want to look into programs like [Launch4J](http://launch4j.sourceforge.net/docs.html) which bundle Java applications up as executables, which can have customized icons.

Note that this is not exactly trivial, especially if you’re looking for a pure-Processing solution.

---

<div class="post-metadata">

**Author:** ![kfrajer](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/kfrajer/32/196_2.png) [@kfrajer](https://discourse.processing.org/u/kfrajer)\
**Post date:** [August 10, 2018, 9:06pm UTC](https://discourse.processing.org/t/changing-icon-of-pre-exported-file/2532/3 "2018-08-10T21:06:17Z")

</div>

Check this post: [https://forum.processing.org/two/discussion/20443/please-help-me-urgent-p2d-or-p3d-change-icon#latest](https://forum.processing.org/two/discussion/20443/please-help-me-urgent-p2d-or-p3d-change-icon#latest)

Kf

---

<div class="post-metadata">

**Author:** ![Kevin](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/kevin/32/2297_2.png) [@Kevin](https://discourse.processing.org/u/Kevin)\
**Post date:** [August 10, 2018, 9:07pm UTC](https://discourse.processing.org/t/changing-icon-of-pre-exported-file/2532/4 "2018-08-10T21:07:15Z")

</div>

> [@kfrajer](#):
>
> Check this post:

Note that this is the icon for the window, not the file.

---

<div class="post-metadata">

**Author:** ![kfrajer](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/kfrajer/32/196_2.png) [@kfrajer](https://discourse.processing.org/u/kfrajer)\
**Post date:** [August 10, 2018, 9:08pm UTC](https://discourse.processing.org/t/changing-icon-of-pre-exported-file/2532/5 "2018-08-10T21:08:37Z")

</div>

Never seen this one before… What OS?

Kf

---

<div class="post-metadata">

**Author:** ![kfrajer](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/kfrajer/32/196_2.png) [@kfrajer](https://discourse.processing.org/u/kfrajer)\
**Post date:** [August 10, 2018, 9:10pm UTC](https://discourse.processing.org/t/changing-icon-of-pre-exported-file/2532/6 "2018-08-10T21:10:48Z")

</div>

Do you know where is this in the source code? I mean, where are they calling Launch4J. I dont think they use that sw to generate the linux version. I need to dbl check that…

Kf

---

<div class="post-metadata">

**Author:** ![Kevin](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/kevin/32/2297_2.png) [@Kevin](https://discourse.processing.org/u/Kevin)\
**Post date:** [August 10, 2018, 9:19pm UTC](https://discourse.processing.org/t/changing-icon-of-pre-exported-file/2532/7 "2018-08-10T21:19:14Z")

</div>

Launch4J is only for Windows. You’d have to find similar programs for different platforms. This would happen outside of Processing, as a way of bundling the exported Java program into a platform-specific executable file.

I’ve used [JWrapper](https://jwrapper.com/) for this with moderate success in the past, but in my experience this type of thing is much more complicated than it should be.
