sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #58236
Re: [Question #701193]: Error with runnable fat jar outside of IDE
Question #701193 on SikuliX changed:
https://answers.launchpad.net/sikuli/+question/701193
Status: Open => Answered
RaiMan proposed the following answer:
That is really odd.
... and I do not understand it :-(
I cannot reproduce it here, because I only have my one dev-Win11
available, where everything works fine, including the case with the fat
jar from command line.
I do not have any Java specific environment variables set - running java
is done with a command-file, that executes the exe from Java's .../bin
folder.
This is the equivalent in SikuliX to your solution (copy to Java/bin and System.loadLibrary()):
RunTime.loadLibrary(RunTime.libOpenCV)
the add-on is the export of the libs folder to <appdata>.
And the difference is that I use System.load(<absolute-path-to-opencv-dll-in-appdata>).
For some reason this silently does not make the dll available.
For now, I cannot do anything else, but will add an early test in 2.0.6,
wether the System.load() was successful and the dll is available for
opencv.java.
One more thing:
It would be helpful for me to get the source of your failing main class.
If that is ok for you, then send it per mail: sikulix---at---outlook---dot---com.
If not, no problem.
Thanks for your time anyways.
--
You received this question notification because your team Sikuli Drivers
is an answer contact for SikuliX.