# Cannot find a class or type named “List” error

**URL:** https://discourse.processing.org/t/cannot-find-a-class-or-type-named-list-error/33783
**Category:** Libraries
**Created:** [November 27, 2021, 1:43pm UTC](https://discourse.processing.org/t/cannot-find-a-class-or-type-named-list-error/33783 "2021-11-27T13:43:49Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![Ingeneravit](https://avatars.discourse-cdn.com/v4/letter/i/e9c0ed/32.png) [@Ingeneravit](https://discourse.processing.org/u/Ingeneravit)
#### Post date: [November 27, 2021, 1:43pm UTC](https://discourse.processing.org/t/cannot-find-a-class-or-type-named-list-error/33783/1 "2021-11-27T13:43:49Z")

</div>

I’m new to processing, and I’m trying to run this bit of code:

```auto
import de.fhpotsdam.unfolding.*;
import de.fhpotsdam.unfolding.core.*;
import de.fhpotsdam.unfolding.data.*;
import de.fhpotsdam.unfolding.events.*;
import de.fhpotsdam.unfolding.geo.*;
import de.fhpotsdam.unfolding.interactions.*;
import de.fhpotsdam.unfolding.mapdisplay.*;
import de.fhpotsdam.unfolding.mapdisplay.shaders.*;
import de.fhpotsdam.unfolding.marker.*;
import de.fhpotsdam.unfolding.providers.*;
import de.fhpotsdam.unfolding.texture.*;
import de.fhpotsdam.unfolding.tiles.*;
import de.fhpotsdam.unfolding.ui.*;
import de.fhpotsdam.unfolding.utils.*;
import de.fhpotsdam.utils.*;

UnfoldingMap map;
 
void setup() {
    size(800, 600);
 
    map = new UnfoldingMap(this);
    MapUtils.createDefaultEventDispatcher(this, map);
 
    List<Feature> countries = GeoJSONReader.loadData(this, "countries.geo.json");
    List<Marker> countryMarkers = MapUtils.createSimpleMarkers(countries);
    map.addMarkers(countryMarkers);
}
 
void draw() {
    map.draw();
}

```

It’s from this Unfolding maps tutorial: [Unfolding Maps: Markers & Data](http://unfoldingmaps.org/tutorials/markers-data-geojson)

But when I run it, I get this error:

```auto
Cannot find a class or type named “List”

```

How can I get processing to recognise the List\<\> format, what am I doing wrong?

Thanks

---

<div class="post-metadata">

### Author: ![GoToLoop](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/gotoloop/32/86_2.png) [@GoToLoop](https://discourse.processing.org/u/GoToLoop)
#### Post date: [November 30, 2021, 1:47am UTC](https://discourse.processing.org/t/cannot-find-a-class-or-type-named-list-error/33783/2 "2021-11-30T01:47:53Z")

</div>

> [@Ingeneravit](#):
>
> How can I get Processing to recognize the List\<\> format,

It’s not a format but a Java built-in `interface`:

> **[implements / Reference](https://processing.org/reference/implements.html)**
>
> Implements an interface or group of interfaces. Interfaces are used to establish a protocol between classes; they establish the form for a class (method names, return types, etc.) but no…

And you need to `import` it if you need to use it:

> **[import / Reference](https://processing.org/reference/import.html)**
>
> The keyword import is used to load a library into a Processing sketch. A library is one or more classes that are grouped together to extend the capabilities of Processing. The \* characte…

`import java.util.List;`  
[docs.Oracle.com/en/java/javase/11/docs/api/java.base/java/util/List.html](http://docs.Oracle.com/en/java/javase/11/docs/api/java.base/java/util/List.html)
