# Processing 4.0.2 and above giving "Cannot find a class or type named 'PApplet'" error

**URL:** https://discourse.processing.org/t/processing-4-0-2-and-above-giving-cannot-find-a-class-or-type-named-papplet-error/40110
**Category:** Coding Questions
**Created:** [December 10, 2022, 4:22pm UTC](https://discourse.processing.org/t/processing-4-0-2-and-above-giving-cannot-find-a-class-or-type-named-papplet-error/40110 "2022-12-10T16:22:04Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![mirek](https://avatars.discourse-cdn.com/v4/letter/m/8c91f0/32.png) [@mirek](https://discourse.processing.org/u/mirek)
#### Post date: [December 10, 2022, 4:22pm UTC](https://discourse.processing.org/t/processing-4-0-2-and-above-giving-cannot-find-a-class-or-type-named-papplet-error/40110/1 "2022-12-10T16:22:04Z")

</div>

I’m maintaining an open-source Processing app — [GitHub - FOSStriangulator/FOSStriangulator: A tool for making triangulated illustrations out of photos](https://github.com/FOSStriangulator/FOSStriangulator) . It used to compile just fine with every Processing version I’ve tried up until Processing 4.0.2. Now, with Processing 4.0.2 and newer versions, it won’t compile, whereas with 4.0.1, it will. With the newer versions, it’s giving me this error:

> Cannot find a class or type named “PApplet”

It’s also giving me a range of errors, from not being able to find classes like PImage, PrintWriter, IntList, etc.

 ![Screenshot 2022-12-10 at 17.21.09](https://canada1.discourse-cdn.com/flex036/uploads/processingfoundation1/original/3X/b/7/b7ef6f81331173d25768f9451edd4f4254bd2d7b.jpeg)

I looked at the [4.0.2 release notes](https://github.com/processing/processing4/releases/tag/processing-1287-4.0.2) and I can’t see any change that might be causing the issues.

Any idea of why this might be happening?

---

<div class="post-metadata">

### Author: ![josephh](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/josephh/32/210_2.png) [@josephh](https://discourse.processing.org/u/josephh)
#### Post date: [December 12, 2022, 5:15pm UTC](https://discourse.processing.org/t/processing-4-0-2-and-above-giving-cannot-find-a-class-or-type-named-papplet-error/40110/2 "2022-12-12T17:15:14Z")

</div>

Hi @mirek,

Welcome to the forum! 😉

I can confirm this behavior on Linux with Processing 4.1.1.

Reproducible command line example:

```bash
$ git clone https://github.com/FOSStriangulator/FOSStriangulator
$ processing-java --sketch=./FOSStriangulator/FOSStriangulator --run

```

```auto
FOSStriangulator.pde:0:0:0:0: Cannot find a class or type named “PApplet”

```

The issue is that the error message is not descriptive at all…

Can you try opening an issue on the [Processing GitHub repository](https://github.com/processing/processing4/issues)?

---

<div class="post-metadata">

### Author: ![mirek](https://avatars.discourse-cdn.com/v4/letter/m/8c91f0/32.png) [@mirek](https://discourse.processing.org/u/mirek)
#### Post date: [December 21, 2022, 2:13pm UTC](https://discourse.processing.org/t/processing-4-0-2-and-above-giving-cannot-find-a-class-or-type-named-papplet-error/40110/3 "2022-12-21T14:13:00Z")

</div>

Opened up a bug report on Github just now: [[v4.0.2 and above] “Cannot find a class or type named ‘PApplet’” error · Issue #626 · processing/processing4 · GitHub](https://github.com/processing/processing4/issues/626)

Thanks for your help, @josephh !
