opencv_java430.dll not in any libs folder

Asked by Daniel de Winter

Hi,

I'm doing a hello world project in Eclipse and got this error: (see also attached screenshot)

I'm using the Sikulixapi 2.0.5

Any ideas

Kind regards,
Daniel

Exception in thread "main" java.lang.ExceptionInInitializerError
 at org.sikuli.script.Finder$FindInput2.<clinit>(Finder.java:1167)
 at org.sikuli.script.Finder.<init>(Finder.java:34)
 at org.sikuli.script.Region.doCheckLastSeenAndCreateFinder(Region.java:2907)
 at org.sikuli.script.Region.checkLastSeenAndCreateFinder(Region.java:2868)
 at org.sikuli.script.Region.doFind(Region.java:2797)
 at org.sikuli.script.Region.find(Region.java:2275)
 at test1.main(test1.java:12)
Caused by: org.sikuli.script.SikuliXception: loadlib: opencv_java430.dll not in any libs folder

link:
https://drive.google.com/file/d/1xKNVzo8oazA2fDEOU9XQRhb_51TabVMD/view?usp=sharing

Question information

Language:
English Edit question
Status:
Solved
For:
SikuliX Edit question
Assignee:
No assignee Edit question
Solved by:
Daniel de Winter
Solved:
Last query:
Last reply:
Revision history for this message
RaiMan (raimund-hocke) said :
#1

tested on Windows 10 latest:

Running a Maven project (getting the SikuliX jar from MavenCentral) I do not have any problems using

Screen screen = new Screen()
Match match = screen.exists("someImage.png")

The <appdata>/Sikulix folder is created and the OpenCV...dll is exported and found.

Revision history for this message
Daniel de Winter (daniwin82) said :
#2

Hi,

I'm still have problems with the FIND method.
please see linked picture: https://drive.google.com/file/d/1-y4cHw7itXGk8RcCohtVv1iuaReEV-nW/view?usp=sharing

- the '...430.dll' seems available
- the imported library seems valid (contains the Finder class)

I can't figure out what's going wrong. Any help would be appreciated

Kind regards,

Daniel

Revision history for this message
RaiMan (raimund-hocke) said :
#3

apparently you are running on a 32-Bit system or use a 32-Bit Java version.

SikuliX 2.0.5 must be run with a 64-Bit Java version.

Revision history for this message
Daniel de Winter (daniwin82) said :
#4
Revision history for this message
RaiMan (raimund-hocke) said :
#5

Uups, sorry for misleading --- I did not read the error message carefully enough.

May be this helps:
https://github.com/RaiMan/SikuliX1/wiki/GettingStarted-on-Windows

Revision history for this message
Daniel de Winter (daniwin82) said (last edit ):
#6

VC Redistributable 2015+ x64 is already installed. ---> was already installed, version: 14.26.28720

https://drive.google.com/file/d/1SCSaHh0OXQJAncGdAE6MEZ4NKfyGHKgH/view?usp=sharing

UPDATE:
note that running sikuli-IDE was running in the past without a problem and now raises the same error

looks like it's cause by 3rd party software I installed recently

UPDATE-2:
after deleting the sikuli folder from Roaming and starting the Sikuli-IDE at least this one worked again...

UPDATE-3
problem solved is also solved for the Eclipse.
I'll attached both roaming folders (old one and new one) to drive tomorrow. I already noticed that the files size of the .dll is different in both cases...

Revision history for this message
RaiMan (raimund-hocke) said :
#7

ok, then I cannot help you.

Something in/with your Win or Eclipse setup is not as it should be - but I have no glue.

Try to find out, which dependant libraries for the OpenCV dll are missing with some dll-scanner.

All the best.

Revision history for this message
Daniel de Winter (daniwin82) said :
#8

final clues:

dll inspection:
https://drive.google.com/file/d/1vYkB8m_JeHOxt40b9LM1cIie-eelSR1x/view?usp=sharing

Dll seems to be missing some stuff...

Roaming folders (working AND not-working):
https://drive.google.com/file/d/1aA6UThGGdG9eLomaHDQtMrR4xLgqQZrS/view?usp=sharing

anyway...everything seems to be working now. Thanks for the hints