# Problems Exporting a Sketch on Mac

**URL:** <https://discourse.processing.org/t/problems-exporting-a-sketch-on-mac/1329>\
**Category:** Development\
**Created:** [June 28, 2018, 3:25am UTC](https://discourse.processing.org/t/problems-exporting-a-sketch-on-mac/1329 "2018-06-28T03:25:21Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![JavaWax](https://avatars.discourse-cdn.com/v4/letter/j/0ea827/32.png) [@JavaWax](https://discourse.processing.org/u/JavaWax)\
**Post date:** [June 28, 2018, 3:25am UTC](https://discourse.processing.org/t/problems-exporting-a-sketch-on-mac/1329/1 "2018-06-28T03:25:21Z")

</div>

Hi there!

I have written a program which utilises multiple libraries to control a particle system using a kinect. All data is stored within the data folder. It runs fine within the processing environment. My problem is that when I export the application as an app for MAC or a .exe file for windows (I have tried running the exported files on both OSs) the program does not run and only displays a white screen. I have tried exporting with/ without embedded java and in/ out of presentation mode and these factors make no difference.

I have a feeling that it is something to do with processing export of the libraries as when I export a simple application with no libraries I do not encounter this problem.

I am running MAC OS sierra 0.12.6 and my Processing version is 3.3.7.

Below are the libraries I am using

import org.openkinect.freenect._;  
import org.openkinect.processing._;  
import org.openkinect.tests._;  
import shiffman.box2d._;  
import org.jbox2d.common._;  
import org.jbox2d.dynamics.joints._;  
import org.jbox2d.collision.shapes._;  
import org.jbox2d.collision.shapes.Shape;  
import org.jbox2d.common._;  
import org.jbox2d.dynamics._;  
import org.jbox2d.dynamics.contacts._;

---

<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:** [June 28, 2018, 12:29pm UTC](https://discourse.processing.org/t/problems-exporting-a-sketch-on-mac/1329/2 "2018-06-28T12:29:03Z")

</div>

Can you copy your source code to your mac an run it from there? This will allow you to see if the libraries are compatible, for starters. If the sketch works from the PDE, then you can export it and the _generated export folder_ should be compatible with any Mac.

Kf

---

<div class="post-metadata">

**Author:** ![JavaWax](https://avatars.discourse-cdn.com/v4/letter/j/0ea827/32.png) [@JavaWax](https://discourse.processing.org/u/JavaWax)\
**Post date:** [June 29, 2018, 3:28pm UTC](https://discourse.processing.org/t/problems-exporting-a-sketch-on-mac/1329/3 "2018-06-29T15:28:16Z")

</div>

Hey, I’ve actually run it on my MAC and on a PC, both work fine in the processing environment, but both the exported versions both have the same problem unfortunately.

---

<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:** [June 29, 2018, 3:53pm UTC](https://discourse.processing.org/t/problems-exporting-a-sketch-on-mac/1329/4 "2018-06-29T15:53:43Z")

</div>

Sorry, I misread your post. Having library and external resources makes it a bit more complex. What external resources are you using as in images,sound, ascii files, own config files, etc.? The first thing is to make sure that the data folder is placed properly in the exported folder. When you export the folder, go into the export folder and make sure your resources were also moved. An easier way is to create a mcve only targeting this operation.

If this is not the problem, then it could be your libraries. I can only guess but what you could do is to build a small program with the library in question and exported and make sure it works. As an alternative, instead of writing your own mcve, you could run an example provided by the library and export it and see if it behaves properly.

Also, stick to one OS for now.

Kf

---

<div class="post-metadata">

**Author:** ![JavaWax](https://avatars.discourse-cdn.com/v4/letter/j/0ea827/32.png) [@JavaWax](https://discourse.processing.org/u/JavaWax)\
**Post date:** [July 2, 2018, 3:21am UTC](https://discourse.processing.org/t/problems-exporting-a-sketch-on-mac/1329/5 "2018-07-02T03:21:35Z")

</div>

No sweat! I am only using image files. However, I am using many image files to create animations within the program. Could this present a problem with memory?

That’s a good idea, I will try exporting the library examples to see if they work.

What exactly is mcve? I’m not familiar with this term.

Thanks man!

---

<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:** [July 2, 2018, 3:27am UTC](https://discourse.processing.org/t/problems-exporting-a-sketch-on-mac/1329/6 "2018-07-02T03:27:58Z")

</div>

[MCVE](https://stackoverflow.com/help/mcve) explained.

> [@JavaWax](#):
>
> However, I am using many image files to create animations within the program. Could this present a problem with memory?

If your program works in the PDE, it should work as an exported application. In short, there shouldn’t be any difference running your code in either scenario.

Kf

---

<div class="post-metadata">

**Author:** ![JavaWax](https://avatars.discourse-cdn.com/v4/letter/j/0ea827/32.png) [@JavaWax](https://discourse.processing.org/u/JavaWax)\
**Post date:** [July 5, 2018, 2:29am UTC](https://discourse.processing.org/t/problems-exporting-a-sketch-on-mac/1329/7 "2018-07-05T02:29:58Z")

</div>

Hey,

So I exported a few examples from the libraries I am using. The Open Kinect library examples had similar issues regarding the export, (The application did not run and presents only a blank screen). Is it reasonable to assume a problem arises with this library during the exporting process?

EDIT: I have actually manage to export a program using this library so it is in fact not the problem. I will create a MCEV and post here when I get a chance.

---

<div class="post-metadata">

**Author:** ![Phospheros](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/phospheros/32/284_2.png) [@Phospheros](https://discourse.processing.org/u/Phospheros)\
**Post date:** [December 14, 2018, 11:29pm UTC](https://discourse.processing.org/t/problems-exporting-a-sketch-on-mac/1329/8 "2018-12-14T23:29:21Z")

</div>

Can I get a bump on this?

I’m having the same problem: OSX High Sierra, P5v3, Open Kinect for Processing Kinect\_v1.

I’ve tried exporting with 13 known working sketches, including the supplied examples. All fail with the above described behavior… blank window opens. (No crash, quits fine, but no action.)

Thanks!

---

<div class="post-metadata">

**Author:** ![Chaos](https://avatars.discourse-cdn.com/v4/letter/c/9d8465/32.png) [@Chaos](https://discourse.processing.org/u/Chaos)\
**Post date:** [January 24, 2019, 10:29am UTC](https://discourse.processing.org/t/problems-exporting-a-sketch-on-mac/1329/9 "2019-01-24T10:29:18Z")

</div>

Has anyone found a solution to this problem?

I’m having the same issue (on MacOS 10.12.6, Processing 3.4) . Perfectly working sketch (simple, no libraries) inside Processing environment but won’t run when exported (animation window opens blank with no crash or error messages).

Thanks for your help!!

---

<div class="post-metadata">

**Author:** ![Chaos](https://avatars.discourse-cdn.com/v4/letter/c/9d8465/32.png) [@Chaos](https://discourse.processing.org/u/Chaos)\
**Post date:** [January 24, 2019, 10:47am UTC](https://discourse.processing.org/t/problems-exporting-a-sketch-on-mac/1329/10 "2019-01-24T10:47:42Z")

</div>

Solved my problem! So in case it helps others:  
The problem was the data files the sketch uses (a couple of .csv in my case) are NOT exported into the standalone applications folders. I manually moved them into the application folder and it ran without a bump.
