# Program not running when exported

**URL:** https://discourse.processing.org/t/program-not-running-when-exported/2515
**Category:** Processing
**Created:** [August 9, 2018, 4:05pm UTC](https://discourse.processing.org/t/program-not-running-when-exported/2515 "2018-08-09T16:05:59Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![DogeMastr](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/dogemastr/32/689_2.png) [@DogeMastr](https://discourse.processing.org/u/DogeMastr)
#### Post date: [August 9, 2018, 4:05pm UTC](https://discourse.processing.org/t/program-not-running-when-exported/2515/1 "2018-08-09T16:05:59Z")

</div>

[Heres my code](https://www.dropbox.com/s/tz0olgcx4yfahiz/The_Loop%28code%29.zip?dl=0)

When I open the files in processing the program works as intended everything is good, but when I export it the program, it doesn’t work at all  
I don’t know if this is just for me but if I were to guess it probably is to do with the .txt file not loading properly when exported

If anyone knows how to fix this that would be great!

* * *

Doge

---

<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 9, 2018, 4:18pm UTC](https://discourse.processing.org/t/program-not-running-when-exported/2515/2 "2018-08-09T16:18:08Z")

</div>

Can you check the txt file in the exported folder? It is likely the file was not copied during the export process…

Kf

---

<div class="post-metadata">

### Author: ![DogeMastr](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/dogemastr/32/689_2.png) [@DogeMastr](https://discourse.processing.org/u/DogeMastr)
#### Post date: [August 9, 2018, 4:20pm UTC](https://discourse.processing.org/t/program-not-running-when-exported/2515/3 "2018-08-09T16:20:04Z")

</div>

I Copyed the txt file into the source folder and nothing changed where should I look for 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 9, 2018, 4:32pm UTC](https://discourse.processing.org/t/program-not-running-when-exported/2515/4 "2018-08-09T16:32:42Z")

</div>

Unfortunatelly I cannot open your link… some restriction on my network. Anyways, if you are reading your file from the data folder when running from the PDE, then when you export your app, you should have the same folder layout in the exported folder. If you open the exported folder, you will have an executable and you should have the `data` folder and inside this folder you should have your text file. If it is not there, move the file manually and see if that solves the problem.

I did this test using one of the provided basic examples: `LoadDisplayImage.pde`

Kf

---

<div class="post-metadata">

### Author: ![DogeMastr](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/dogemastr/32/689_2.png) [@DogeMastr](https://discourse.processing.org/u/DogeMastr)
#### Post date: [August 9, 2018, 4:41pm UTC](https://discourse.processing.org/t/program-not-running-when-exported/2515/5 "2018-08-09T16:41:52Z")

</div>

Thanks!  
I put the txt file next to the .exe and it worked!  
Its weird that it didnt export with the rest of the program

heres another link anyway if you want to have a look  
[https://mega.nz/#!B3hVULJL!Wkz8guVnlGnlSxjPlGCnrcZthQbNDIzupcv9R3OfGpk](https://mega.nz/#!B3hVULJL!Wkz8guVnlGnlSxjPlGCnrcZthQbNDIzupcv9R3OfGpk)

Thanks again!

* * *

Doge
