Exception in thread "main" java.lang.Error: Unresolved compilation problems

yea, that’s step #2, step #1 is still: link your java against opencv-java.jar