# Creating a library, errors while building javadoc

**URL:** <https://discourse.processing.org/t/creating-a-library-errors-while-building-javadoc/38528>\
**Category:** Development\
**Created:** [August 28, 2022, 8:15am UTC](https://discourse.processing.org/t/creating-a-library-errors-while-building-javadoc/38528 "2022-08-28T08:15:03Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![f42ter](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/f42ter/32/16793_2.png) [@f42ter](https://discourse.processing.org/u/f42ter)\
**Post date:** [August 28, 2022, 8:15am UTC](https://discourse.processing.org/t/creating-a-library-errors-while-building-javadoc/38528/1 "2022-08-28T08:15:03Z")

</div>

Dear world ;-\>

As already requested a couple of weeks ago volunteers, supporters needed ;-\>

I start to build an opencv lib for processing → 4.x on Raspberry 4 using  
opencv 4.5.5 (java).

Make some progress so far, the lib works fine but I run in issues with javadoc during the build process ;-\<

The Package exist and symbols are resolved during the build process. So the library is working.

 ![packeagexist](https://canada1.discourse-cdn.com/flex036/uploads/processingfoundation1/original/3X/8/b/8b82de5bb1e5d3930ae2e205a327c805c2e1528e.png)

But during the javadoc build process I see errors?

> [jar] Building jar: /home/pi/eclipse-workspace/OPVCImage/tmp/OPVCImage/library/OPVCImage.jar  
> generate.javadoc:  
> [javadoc] Generating Javadoc  
> [javadoc] Javadoc execution  
> [javadoc] Loading source file /home/pi/eclipse-workspace/OPVCImage/tmp/OPVCImage/src/OPVCimage/OPVCImage.java…  
> [javadoc] Constructing Javadoc information…  
> [javadoc] /home/pi/eclipse-workspace/OPVCImage/tmp/OPVCImage/src/OPVCimage/OPVCImage.java:6: error: package org.opencv.core does not exist  
> [javadoc] import org.opencv.core.MatOfInt;  
> [javadoc] ^  
> [javadoc] /home/pi/eclipse-workspace/OPVCImage/tmp/OPVCImage/src/OPVCimage/OPVCImage.java:26: error: cannot find symbol  
> …  
> [javadoc] 14 errors  
> [javadoc] location: class OPVCImage  
> [javadoc] /home/pi/eclipse-workspace/OPVCImage/tmp/OPVCImage/src/OPVCimage/OPVCImage.java:5: error: package org.opencv.core does not exist  
> [javadoc] import org.opencv.core._;  
> [javadoc] ^  
> [javadoc] /home/pi/eclipse-workspace/OPVCImage/tmp/OPVCImage/src/OPVCimage/OPVCImage.java:7: error: package org.opencv.imgproc does not exist  
> [javadoc] import org.opencv.imgproc._;  
> [javadoc]

I also added the generic javadoc path

 ![javadoclocation](https://canada1.discourse-cdn.com/flex036/uploads/processingfoundation1/original/3X/2/5/257b6251c7446e9a8c43625a8e26d6ee0ff493ae.png)

But no success.

So I can either remove the javadoc part from build.xml or find a solution.  
I use the library template for processing.

I appreciate an help on this isses.  
As soon as I have some examples available I publish the lib on github.

ThX  
tom

---

<div class="post-metadata">

**Author:** ![cansik](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/cansik/32/8815_2.png) [@cansik](https://discourse.processing.org/u/cansik)\
**Post date:** [August 29, 2022, 8:18am UTC](https://discourse.processing.org/t/creating-a-library-errors-while-building-javadoc/38528/2 "2022-08-29T08:18:30Z")

</div>

Hi Tom, this is not a direct answer to your question, but maybe you could try my update of the opencv-library, it supports `arm-hf` and `arm-64`:

> **[Release Version v0.6.5 · cansik/opencv-processing](https://github.com/cansik/opencv-processing/releases/tag/v0.6.5)**
>
> This release adds haar-cascade files to the package to support face detection and it fixes the examples to work with OpenCV 4.5.

> [@OpenCV 4 Upgrade](https://discourse.processing.org/t/opencv-4-upgrade/27640):
>
> I just recently upgraded [OpenCV for Processing](https://github.com/cansik/opencv-processing) to version 4.4.0. It uses the pre-compiled binaries provided by the [javacpp](https://github.com/bytedeco/javacpp-presetsv) project and thus supports every major operating system as well as armhf & arm64. All the examples should run without adaptation, I changed just some minor things under the hood to make it working with the new OpenCV version. You can download the release here and try it out. Would be great to get some feedback (if it works on raspberry for example). If it works and is te…
