# How to export applications using Processing 3

**URL:** <https://discourse.processing.org/t/how-to-export-applications-using-processing-3/9007>\
**Category:** Processing\
**Created:** [March 6, 2019, 10:05am UTC](https://discourse.processing.org/t/how-to-export-applications-using-processing-3/9007 "2019-03-06T10:05:28Z")\
**Posts on this page:** 17\
**Page:** 1

<div class="post-metadata">

**Author:** ![kkxxbdm](https://avatars.discourse-cdn.com/v4/letter/k/b5a626/32.png) [@kkxxbdm](https://discourse.processing.org/u/kkxxbdm)\
**Post date:** [March 6, 2019, 10:05am UTC](https://discourse.processing.org/t/how-to-export-applications-using-processing-3/9007/1 "2019-03-06T10:05:28Z")

</div>

I’m reading the pdf file with title “getting started with processing”. On page 12, it talks about using the export button to bundle the code into a single folder. I tried this in my installed Processing software, using Export Application from the File menu bar. I’m using Java mode. So, I got sever folders inside the sketch folder. Yet, I’m not sure how to use them. Could you kindly let me know how to proceed to?

 ![haha](https://canada1.discourse-cdn.com/flex036/uploads/processingfoundation1/original/2X/1/139d0bb9a916be863f4486a7d4df49cb1badd5ba.png)

---

<div class="post-metadata">

**Author:** ![himself](https://avatars.discourse-cdn.com/v4/letter/h/a698b9/32.png) [@himself](https://discourse.processing.org/u/himself)\
**Post date:** [March 6, 2019, 10:55am UTC](https://discourse.processing.org/t/how-to-export-applications-using-processing-3/9007/2 "2019-03-06T10:55:20Z")

</div>

Hello,  
It seems that you are running Processing on Linux. You need to go into application.linux64 or application.linux32 folder (depends on your computer’s architecture). There you can find a bash script with the same name as your sketch. Open a terminal there (Right click -\> Open terminal here) and run the bash script by:

```auto
./<your-sketch-name>

```

This will run your sketch.

You can find more information in [Processing Wiki](https://github.com/processing/processing/wiki/Export-Info-and-Tips).

---

<div class="post-metadata">

**Author:** ![kkxxbdm](https://avatars.discourse-cdn.com/v4/letter/k/b5a626/32.png) [@kkxxbdm](https://discourse.processing.org/u/kkxxbdm)\
**Post date:** [March 6, 2019, 11:12am UTC](https://discourse.processing.org/t/how-to-export-applications-using-processing-3/9007/3 "2019-03-06T11:12:41Z")

</div>

Thank you for the quick reply. Please see the attached picture.

 ![Screenshot%20from%202019-03-06%2012-02-08](https://canada1.discourse-cdn.com/flex036/uploads/processingfoundation1/original/2X/5/5c1bce05adcbac6a00915db7b3d0a5a621261e83.png)  
I tried to run open the terminal there and run the bash script by:  
`./sketch`  
and my computer just blacked out. Sigh.

---

<div class="post-metadata">

**Author:** ![kll](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/kll/32/964_2.png) [@kll](https://discourse.processing.org/u/kll)\
**Post date:** [March 6, 2019, 1:00pm UTC](https://discourse.processing.org/t/how-to-export-applications-using-processing-3/9007/4 "2019-03-06T13:00:57Z")

</div>

can you try again pls,  
use a very simple code,  
! NOT use any files to load…  
! NOT use any library  
! NOT use fullscreen  
just as a first step.

 ![2019-03-06_19-43-57_snap](https://canada1.discourse-cdn.com/flex036/uploads/processingfoundation1/original/2X/a/a34b71280ac96ad778cecca1f8f3199950c175d9.png)  
you get  
 ![2019-03-06_19-48-07_snap](https://canada1.discourse-cdn.com/flex036/uploads/processingfoundation1/original/2X/6/6c7422448e2026e2ff57dab52e274b4e1ab68c44.png)

also double click on file manager works:

 ![snap_0047](https://canada1.discourse-cdn.com/flex036/uploads/processingfoundation1/original/2X/b/bd2b716df1d17a4ea27969441ddfeb406ef13c33.jpeg)

---

<div class="post-metadata">

**Author:** ![GoToLoop](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/gotoloop/32/86_2.png) [@GoToLoop](https://discourse.processing.org/u/GoToLoop)\
**Post date:** [March 6, 2019, 2:25pm UTC](https://discourse.processing.org/t/how-to-export-applications-using-processing-3/9007/5 "2019-03-06T14:25:42Z")

</div>

> [@kkxxbdm](#):
>
> I tried to run open the terminal there and run the bash script by: `./sketch`

We need to set the execute `x` attribute for scripts to run in Linux/Unix OSes AFAIK: 🐧

> **[Unix file types](https://en.wikipedia.org/wiki/Modes_(Unix))**
>
> The seven standard Unix file types are regular, directory, symbolic link, FIFO special, block special, character special, and socket as defined by POSIX. Different OS-specific implementations allow more types than what POSIX requires (e.g. Solaris doors). A file's type can be identified by the ls -l command, which displays the type in the first character of the file-system permissions field.
> For regular files, Unix does not impose or provide any internal file structure; therefore, their structur...

---

<div class="post-metadata">

**Author:** ![kkxxbdm](https://avatars.discourse-cdn.com/v4/letter/k/b5a626/32.png) [@kkxxbdm](https://discourse.processing.org/u/kkxxbdm)\
**Post date:** [March 6, 2019, 3:44pm UTC](https://discourse.processing.org/t/how-to-export-applications-using-processing-3/9007/6 "2019-03-06T15:44:38Z")

</div>

OK. I have the following code. I tried a simple code, and I still think the export applications part behaves strangely.

![Screenshot%20from%202019-03-06%2016-42-19](https://canada1.discourse-cdn.com/flex036/uploads/processingfoundation1/original/2X/3/35995b51a548668fe808c102bac47ceb7ad77fc9.png)

---

<div class="post-metadata">

**Author:** ![kkxxbdm](https://avatars.discourse-cdn.com/v4/letter/k/b5a626/32.png) [@kkxxbdm](https://discourse.processing.org/u/kkxxbdm)\
**Post date:** [March 6, 2019, 3:50pm UTC](https://discourse.processing.org/t/how-to-export-applications-using-processing-3/9007/7 "2019-03-06T15:50:21Z")

</div>

Could you give a simple example?  
Do you mean that I need to run the above sketch in the terminal by  
$ -x./sketch

---

<div class="post-metadata">

**Author:** ![GoToLoop](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/gotoloop/32/86_2.png) [@GoToLoop](https://discourse.processing.org/u/GoToLoop)\
**Post date:** [March 6, 2019, 6:05pm UTC](https://discourse.processing.org/t/how-to-export-applications-using-processing-3/9007/8 "2019-03-06T18:05:17Z")

</div>

> [@kkxxbdm](#):
>
> Could you give a simple example?

It’s already explained in the posted Wikipedia link: 🔗

`chmod a+x ./sketch`

---

<div class="post-metadata">

**Author:** ![kll](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/kll/32/964_2.png) [@kll](https://discourse.processing.org/u/kll)\
**Post date:** [March 7, 2019, 2:37am UTC](https://discourse.processing.org/t/how-to-export-applications-using-processing-3/9007/9 "2019-03-07T02:37:27Z")

</div>

> [@kkxxbdm](#):
>
> I tried a simple code, and I still think the export applications part behaves strangely.

-a- yes computers behaves strange  
-b- can you be more detailed about the used export settings,  
( like this time there is no JAVA subdir to see in your export )  
-c- how you end up under desktop ( if i understand you file manager picture correct )  
show your preferences settings for sketch path  
did you “save as” the “new” project first correctly  
-d- i urged you not use fullscreen,  
because then you can see the terminal window with the “console” printout.  
can you show us that one? see the start?, any errors? …

also pls. read

> **[Export Info and Tips](https://github.com/processing/processing/wiki/Export-Info-and-Tips)**
>
> Source code for the Processing Core and Development Environment (PDE) - processing/processing

---

<div class="post-metadata">

**Author:** ![kkxxbdm](https://avatars.discourse-cdn.com/v4/letter/k/b5a626/32.png) [@kkxxbdm](https://discourse.processing.org/u/kkxxbdm)\
**Post date:** [March 7, 2019, 8:26am UTC](https://discourse.processing.org/t/how-to-export-applications-using-processing-3/9007/10 "2019-03-07T08:26:56Z")

</div>

Thank you so much for your patient explanations. 😉 I tried to attach more pictures earlier, yet somehow I only have the permission to attach one per post.

 ![Screenshot%20from%202019-03-07%2009-26-07](https://canada1.discourse-cdn.com/flex036/uploads/processingfoundation1/original/2X/b/ba7b993063fd6d33304951fe019ab766cbe5af42.png)

---

<div class="post-metadata">

**Author:** ![kkxxbdm](https://avatars.discourse-cdn.com/v4/letter/k/b5a626/32.png) [@kkxxbdm](https://discourse.processing.org/u/kkxxbdm)\
**Post date:** [March 7, 2019, 8:29am UTC](https://discourse.processing.org/t/how-to-export-applications-using-processing-3/9007/11 "2019-03-07T08:29:14Z")

</div>

After the application export, inside of the sketch\_190307a folder, I see

 ![Screenshot%20from%202019-03-07%2009-28-44](https://canada1.discourse-cdn.com/flex036/uploads/processingfoundation1/original/2X/d/dda4d875b4a274c9f9a649c39af5290dd850ab13.png)

---

<div class="post-metadata">

**Author:** ![kkxxbdm](https://avatars.discourse-cdn.com/v4/letter/k/b5a626/32.png) [@kkxxbdm](https://discourse.processing.org/u/kkxxbdm)\
**Post date:** [March 7, 2019, 8:30am UTC](https://discourse.processing.org/t/how-to-export-applications-using-processing-3/9007/12 "2019-03-07T08:30:43Z")

</div>

After clicking the application.linux64 folder, I see the following

 ![Screenshot%20from%202019-03-07%2009-30-12](https://canada1.discourse-cdn.com/flex036/uploads/processingfoundation1/original/2X/1/17e40afa784e4c475281f46d87617d5c816f2ec6.png)

---

<div class="post-metadata">

**Author:** ![kkxxbdm](https://avatars.discourse-cdn.com/v4/letter/k/b5a626/32.png) [@kkxxbdm](https://discourse.processing.org/u/kkxxbdm)\
**Post date:** [March 7, 2019, 8:31am UTC](https://discourse.processing.org/t/how-to-export-applications-using-processing-3/9007/13 "2019-03-07T08:31:52Z")

</div>

the lib folder looks like this:

 ![Screenshot%20from%202019-03-07%2009-31-23](https://canada1.discourse-cdn.com/flex036/uploads/processingfoundation1/original/2X/3/3f15203d9721bba6263c1b589554cdf936d3956a.png)

---

<div class="post-metadata">

**Author:** ![kkxxbdm](https://avatars.discourse-cdn.com/v4/letter/k/b5a626/32.png) [@kkxxbdm](https://discourse.processing.org/u/kkxxbdm)\
**Post date:** [March 7, 2019, 8:33am UTC](https://discourse.processing.org/t/how-to-export-applications-using-processing-3/9007/14 "2019-03-07T08:33:52Z")

</div>

the source folder looks like this:

 ![Screenshot%20from%202019-03-07%2009-31-23](https://canada1.discourse-cdn.com/flex036/uploads/processingfoundation1/original/2X/3/3f15203d9721bba6263c1b589554cdf936d3956a.png)

---

<div class="post-metadata">

**Author:** ![kkxxbdm](https://avatars.discourse-cdn.com/v4/letter/k/b5a626/32.png) [@kkxxbdm](https://discourse.processing.org/u/kkxxbdm)\
**Post date:** [March 7, 2019, 8:35am UTC](https://discourse.processing.org/t/how-to-export-applications-using-processing-3/9007/15 "2019-03-07T08:35:50Z")

</div>

Each of the four folders inside of the sketch\_190307a has the similar structure.

---

<div class="post-metadata">

**Author:** ![kkxxbdm](https://avatars.discourse-cdn.com/v4/letter/k/b5a626/32.png) [@kkxxbdm](https://discourse.processing.org/u/kkxxbdm)\
**Post date:** [March 7, 2019, 8:56am UTC](https://discourse.processing.org/t/how-to-export-applications-using-processing-3/9007/16 "2019-03-07T08:56:16Z")

</div>

-a- HAHA, glad to know that someone feels the same way.

-b- Please see one of the attached pictures.

-c- This time, I ended up in Desktop, because I saved the file in a folder March\_7th in desktop. Earlier, I think I saved the file in Desktop, that’s why it’s ended up there.

-d- Yes. You’re right. You mean the one during which my computer black out? I will paste it in the following.

---

<div class="post-metadata">

**Author:** ![kll](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/kll/32/964_2.png) [@kll](https://discourse.processing.org/u/kll)\
**Post date:** [March 7, 2019, 10:23am UTC](https://discourse.processing.org/t/how-to-export-applications-using-processing-3/9007/17 "2019-03-07T10:23:57Z")

</div>

-a- i use the [x] Embed JAVA  
feature of the export options dialog.

-b- your file saving seems not processing style  
-b 1- pls. save the project first with processing "save as "  
what is your sketchbook path in preferences.txt?  
-b 2- then press the export button  
and that sub dir structure will be under it.

-c- i need to see the terminal window with start command and error msg  
as i show you the small one ( ok i snap it with the running application canvas for proof)
