# Java quits when using Capture

**URL:** <https://discourse.processing.org/t/java-quits-when-using-capture/19155>\
**Category:** Libraries\
**Created:** [March 29, 2020, 8:56pm UTC](https://discourse.processing.org/t/java-quits-when-using-capture/19155 "2020-03-29T20:56:00Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![TimoL](https://avatars.discourse-cdn.com/v4/letter/t/9fc29f/32.png) [@TimoL](https://discourse.processing.org/u/TimoL)\
**Post date:** [March 29, 2020, 8:56pm UTC](https://discourse.processing.org/t/java-quits-when-using-capture/19155/1 "2020-03-29T20:56:00Z")

</div>

I’m trying to use Capture to get my MacbookPro’s webcam.

Even following a basic tutorial gives me this same error that I don’t understand.  
If I try to run the sketch again I get this prompt: “The last time you opened java, it unexpectedly quit while reopening windows. Do you want to try to reopen its windows again?”

Not sure what’s wrong ☹  
any ideas?

this is my code:

```auto
import processing.video.*;

Capture video;

void setup() {
  size(640,480);
  video = new Capture(this,640,480,30);
  video.start();
  
  
  
}

void draw() {
  video.read();
  background(0);
  image(video,0,0,mouseX,mouseY);
  
}

```

 ![Screenshot 2020-03-30 at 09.52.59](https://canada1.discourse-cdn.com/flex036/uploads/processingfoundation1/original/2X/b/b507802643781272dc67c0b9e194459f97519b9e.png)

---

<div class="post-metadata">

**Author:** ![TimoL](https://avatars.discourse-cdn.com/v4/letter/t/9fc29f/32.png) [@TimoL](https://discourse.processing.org/u/TimoL)\
**Post date:** [March 31, 2020, 10:39am UTC](https://discourse.processing.org/t/java-quits-when-using-capture/19155/2 "2020-03-31T10:39:32Z")

</div>

I’ve still had no luck with this. Even copying the example from processing, my sketch still crashes ☹

---

<div class="post-metadata">

**Author:** ![TimoL](https://avatars.discourse-cdn.com/v4/letter/t/9fc29f/32.png) [@TimoL](https://discourse.processing.org/u/TimoL)\
**Post date:** [March 31, 2020, 10:41am UTC](https://discourse.processing.org/t/java-quits-when-using-capture/19155/3 "2020-03-31T10:41:52Z")

</div>

oh geez…  
Its seems this is a Mac OS Catalina issue… [Catalina kills capture](https://github.com/processing/processing-video/issues/134)
