# ClassNotFound error when setting up OpenCV

**URL:** <https://forum.opencv.org/t/classnotfound-error-when-setting-up-opencv/5083>\
**Category:** Android/Java\
**Tags:** build\
**Created:** [September 6, 2021, 7:35pm UTC](https://forum.opencv.org/t/classnotfound-error-when-setting-up-opencv/5083 "2021-09-06T19:35:27Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Rockoac](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.opencv.org/rockoac/32/3180_2.png) [@Rockoac](https://forum.opencv.org/u/Rockoac)\
**Post date:** [September 6, 2021, 7:35pm UTC](https://forum.opencv.org/t/classnotfound-error-when-setting-up-opencv/5083/1 "2021-09-06T19:35:27Z")

</div>

I followed the [OpenCV: Using OpenCV Java with Eclipse](https://docs.opencv.org/master/d1/d0a/tutorial_java_eclipse.html) tutorial step by step, yet when I ran my main function I received the runtime error shown below.

 ![image_2021-09-06_123430](https://us1.discourse-cdn.com/flex020/uploads/opencv/original/2X/7/7fe9334ee015edfd448397fc4dc9467eb5462030.png)  
All of my files seem to be in the right place and it compiles fine. Any help would be appreciated!
