# Problem with java

**URL:** <https://discourse.processing.org/t/problem-with-java/8084>\
**Category:** Libraries\
**Created:** [February 3, 2019, 6:07pm UTC](https://discourse.processing.org/t/problem-with-java/8084 "2019-02-03T18:07:34Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![franck](https://avatars.discourse-cdn.com/v4/letter/f/7ba0ec/32.png) [@franck](https://discourse.processing.org/u/franck)\
**Post date:** [February 3, 2019, 6:07pm UTC](https://discourse.processing.org/t/problem-with-java/8084/1 "2019-02-03T18:07:34Z")

</div>

Hello,  
I have a problem with the executable file after the export. The executable does not work.  
When launching the executable my program stops at the line “cp5 = new ControlP5 (this);”. When I compile the program (run / execute) the program works fine but I can not export it. Yet I installed Java in the directory ‘bookstore’ of the sketchbook.  
Someone can help me. Thank you.

---

<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:** [February 3, 2019, 9:04pm UTC](https://discourse.processing.org/t/problem-with-java/8084/2 "2019-02-03T21:04:21Z")

</div>

When you export the app, could you dive into the generated folder(s) and see if the _controlP5.jar_ is being copied there as well? I just tested in my machine and this file was placed in the export folder. The jar is placed in the lib folder together with other Processing jar files. This was done using Windows 10 x64. What is your OS?

Are you using external resources like pics or sound files?

Kf

---

<div class="post-metadata">

**Author:** ![Dennis](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/dennis/32/1111_2.png) [@Dennis](https://discourse.processing.org/u/Dennis)\
**Post date:** [February 3, 2019, 9:20pm UTC](https://discourse.processing.org/t/problem-with-java/8084/3 "2019-02-03T21:20:16Z")

</div>

Hi franck, I have the same problem (win8). I tried to launch 32bit and 64 but they don’t work…

---

<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:** [February 4, 2019, 4:18am UTC](https://discourse.processing.org/t/problem-with-java/8084/4 "2019-02-04T04:18:25Z")

</div>

You need to provide a stack trace to be able as this could provide a lead of the error, or at least, it will document this error properly.

You need to provide some code that reproduce this issue. Usually this is in a form of a MCVE.

I suggest you try using a demo from the provided examples form the ControlP5 library. If you are able to export the example, then the problem is likely in your code or probably your resources. This has been seen in other issues similar to this.

Kf

---

<div class="post-metadata">

**Author:** ![franck](https://avatars.discourse-cdn.com/v4/letter/f/7ba0ec/32.png) [@franck](https://discourse.processing.org/u/franck)\
**Post date:** [February 4, 2019, 9:22pm UTC](https://discourse.processing.org/t/problem-with-java/8084/5 "2019-02-04T21:22:31Z")

</div>

Hello,  
I have 10x64 widows as the operating system.  
The controlP5 file is in the lib directory.  
I use external resources: peaks and applications.  
I managed to export an example: controlP5button.  
The problem certainly comes from my code.  
I will try to find.  
I will come back if I do not find  
Thank you.
