sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #20537
Re: [Question #234917]: VisionProxyJNI.new_FindInput__SWIG_0()J
Question #234917 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/234917
Status: Open => Answered
RaiMan proposed the following answer:
1.0.1 now contains all things needed in one jar file including the
native libraries, that implement the OpenCV (image search) features.
Nevertheless, at runtime, these native libs have to be accessible in the
file system outside the jar. This is now done on the fly, by creating a
libs folder in the same directory as the jar resides in and the libs are
exported from the jar to this libs folder. So you now can even switch
between Java 32-Bit and Java 64-Bit without doing anything with Sikuli.
On Windows additionally one has to take care, that the path to this libs
folder is on system path at runtime. This is assured when using the
command files runIDE and runScript, but not when programming in Java. I
added an additional convenience feature: If on Windows it is detected,
that the libs folder is not on system path, the registry is fixed
accordingly (but one has to at least logout from Windows or even reboot,
to get this active). It is not possible with Java, to modify the system
environment at runtime and have this modification active for the same
JVM process.
So to keep your system clean and lean, it is strongly recommended, to
leave the Sikuli stuff in one place, so everything works fine after
setup and a first run of the stuff.
BTW: when programming in Java it is good practice, to only have the
stuff in your project, that you are developing. all dependency stuff
should be in a repository, assuring, that only one copy exists. Build
concepts like Maven optimally support this behavior, but even the basic
features of IDE's like Netbeans, Eclipse support dependencies by
reference and there is no need to copy dependencies around (and one
should not do it for obvious reasons).
--
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.