# \[RESOLVED\] Constructor Error

**URL:** <https://discourse.processing.org/t/resolved-constructor-error/4098>\
**Category:** Libraries\
**Created:** [October 3, 2018, 8:49pm UTC](https://discourse.processing.org/t/resolved-constructor-error/4098 "2018-10-03T20:49:01Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Interalia](https://avatars.discourse-cdn.com/v4/letter/i/73ab20/32.png) [@Interalia](https://discourse.processing.org/u/Interalia)\
**Post date:** [October 3, 2018, 8:49pm UTC](https://discourse.processing.org/t/resolved-constructor-error/4098/1 "2018-10-03T20:49:01Z")

</div>

The Constructor Meter(Meter, int,int) is undefined.

```auto
import meter.*;

Meter m;

void setup(){
  
  size(500,400);
  background(0,0,0);
  //lets add a default meter
  m = new Meter(this,25,10);// here 25,10 are x,y coords.
  
}

void draw(){
  //give some random values to meter
  int value = (int)random(0,10); //generates random values
  //update the meters values
  m.updateMeter(value);
  //use delay to see the changes
  delay(1000);
  
}

```

---

<div class="post-metadata">

**Author:** ![TfGuy44](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/tfguy44/32/41_2.png) [@TfGuy44](https://discourse.processing.org/u/TfGuy44)\
**Post date:** [October 3, 2018, 10:31pm UTC](https://discourse.processing.org/t/resolved-constructor-error/4098/2 "2018-10-03T22:31:51Z")

</div>

Do you have the meter library installed?

Does it still happen after saving your sketch and restarting Processing?

---

<div class="post-metadata">

**Author:** ![Interalia](https://avatars.discourse-cdn.com/v4/letter/i/73ab20/32.png) [@Interalia](https://discourse.processing.org/u/Interalia)\
**Post date:** [October 3, 2018, 11:02pm UTC](https://discourse.processing.org/t/resolved-constructor-error/4098/3 "2018-10-03T23:02:06Z")

</div>

No, once I saved then ran it the problem went away.
