# 'cannot find symbol'

**URL:** https://discourse.processing.org/t/cannot-find-symbol/27594
**Category:** Development
**Created:** [February 4, 2021, 10:44pm UTC](https://discourse.processing.org/t/cannot-find-symbol/27594 "2021-02-04T22:44:35Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Aleksi](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/aleksi/32/11065_2.png) [@Aleksi](https://discourse.processing.org/u/Aleksi)
#### Post date: [February 4, 2021, 10:44pm UTC](https://discourse.processing.org/t/cannot-find-symbol/27594/1 "2021-02-04T22:44:35Z")

</div>

I figure it’s about time to compile my own libraries.

I was able to follow the [processing library template](https://github.com/processing/processing-library-template) instructions for using eclipse to create the example `HelloLibrary` class.

It compiled. The library showed up as expected in my sketchbook `libraries` folder. The example loads and executes without a problem.

After that the nightmare began when I tried to execute a simple processing cmd in a new test method. I added the following method to the `HelloLibrary` class. Here 'tis:

```
public float getNorm(float f, float fr) {
	return norm(f/fr, 0, 1);
}

```

I get the following compiling error:

```
[javac] Compiling 1 source file to C:\Users\xxx\eclipse-workspace\asdf\processing-library-template-master\bin
[javac] warning: [options] bootstrap class path not set in conjunction with -source 8
[javac] C:\Users\xxxx\eclipse-workspace\ASDF\processing-library-template-master\tmp\ASDF\src\template\library\HelloLibrary.java:76: error: cannot find symbol
[javac] return norm(f/fr, 0.0, 1.0);
[javac] ^
[javac] symbol: method norm(float,int,int)
[javac] location: class HelloLibrary
[javac] 1 error
[javac] 1 warning

```

I’ve spent hours looking into solving this, without avail.

I’m running windows 7 pro. I downloaded the latest Eclipse (4.18) to use the latest execution environment (JavaSE-15) using the latest jdk (15.0.2). I followed the instructions. `core.jar` is added to the java build path as specified in the instructions (though the path to it is different than the instructions indicate; on my system `core.jar` is located in `C:\Program Files\processing-3.3.6\core\library`). The example java library template file contains the line `import processing.core.*;`

I’m at a loss. The last time I compiled java – in Eclipse then too – was about 15 years ago, and I don’t remember anything from back then.

Any help very appreciated!

---

<div class="post-metadata">

### Author: ![Aleksi](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/aleksi/32/11065_2.png) [@Aleksi](https://discourse.processing.org/u/Aleksi)
#### Post date: [February 5, 2021, 1:09am UTC](https://discourse.processing.org/t/cannot-find-symbol/27594/3 "2021-02-05T01:09:25Z")

</div>

I was able to read your post before it was deleted.

**D’OH!** Yes, of course you’re right!

I edited my method to the following. It compiled, and ran successfully.

```
public float getNorm(float f, float fr) {
	return processing.core.PApplet.norm(f/fr, 0, 1);
}

```

Thank you! Very much!

---

<div class="post-metadata">

### Author: ![behreajj](https://avatars.discourse-cdn.com/v4/letter/b/b5a626/32.png) [@behreajj](https://discourse.processing.org/u/behreajj)
#### Post date: [February 5, 2021, 4:23am UTC](https://discourse.processing.org/t/cannot-find-symbol/27594/4 "2021-02-05T04:23:23Z")

</div>

Hi @Aleksi,

Sure thing. Sorry about the delete: I remembered another Eclipse tool which would’ve been a better answer, but then couldn’t find it. It’s this: Go to `Window > Preferences`, then in the pop-up window, in the left column, look under `Java > Editor > Content Assist > Favorites`.

 ![contentAssistFavs](https://canada1.discourse-cdn.com/flex036/uploads/processingfoundation1/original/2X/0/0b86b4097a50701d23e08d6828b6fbd2a82749bc.png)

LIke the blurb on the top of the GUI says, it may help Eclipse fill-in Processing classes and methods that you’ll be frequently re-using.

Best,  
Jeremy
