sikulixapi-1.1.0-Beta4.jar failing during buildJar of sikulixsetup-1.1.0-Beta4.jar

Asked by David Inman

I'm trying to get SikuliX 1.1.0 Beta 4 to run under RedHat 5.6 64-bits. I have run java -jar ./sikulixapi-1.1.0-Beta4.jar
and its log file looks like:
...
[debug (7/30/14 9:45:29 AM)] RunSetup: adding needed stuff to sikulixapi.jar
[debug (7/30/14 9:45:29 AM)] FileManager: buildJar: /davei_src/git/SikuliXAPI/sikuli-temp.jar
[debug (7/30/14 9:45:29 AM)] FileManager: buildJar: adding: /davei_src/git/SikuliXAPI/sikulixsetup-1.1.0-Beta4.jar
[error (7/30/14 9:45:29 AM)] FileManager: buildJar: /davei_src/git/SikuliXAPI/sikulixsetup-1.1.0-Beta4.jar (No such file or directory)
[error (7/30/14 9:45:29 AM)] RunSetup: Bad things happened trying to add native stuff to selected jars --- terminating!
[error (7/30/14 9:45:32 AM)] RunSetup: Adding stuff to jars did not work
[error (7/30/14 9:45:32 AM)] RunSetup: ... terminated abnormally :-(
[error (7/30/14 9:45:32 AM)] RunSetup: Something serious happened! Sikuli not useable!

This is one of several methods I have tried to use to install the program. I know this is a really old OS so I'm grateful
for any pointers of how to proceed. As a consequence of my prior installation attempts I have these compiled:
  opencv-2.4.9
  jxgrabkey-0.3.2
  tiff-4.0.3
  tesseract-3.02
  leptonica-1.69
These, because of company needs, are installed in non-standard places with rpaths built into the libs
so that they can find one another. I have build libVisionProxy.so to use them. So another problem I have is how to have SikuliX use them? Do I need to alter scripts, use LD_RUN_PATH at build, use LD_LIBRARY_PATH at build and runtime?
Oh, and I'm using java version 1.7.0_45 and have JAVA_HOME set to its non-standard location.

Thanks for the support of a really wonderful tool.
Dave Inman

Question information

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

Do you want to use the IDE or just sikulixapi.jar in Java program?

Revision history for this message
David Inman (dave-inman) said :
#2

I would like to use the IDE and be able to access Sikuli through Java.

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

I am sorry, but 1.1.0-Beta4 currently is not stable. You have to wait until tomorrow.

But you might try with the 1.0.1.

Just download setup, run it with options 1 and 4 to get the IDE-jar and the java-jar.
after that: In the libs folder replace the VisionProxy with your version and run using
java -jar sikuli-….jar

path settings as needed (if at all)

Revision history for this message
David Inman (dave-inman) said :
#4

Thanks for the pointers about VisionProxy.

I have 1.0.1 IDE running and and am not able to do the Java work I need to do.
I need to convert return values of sikuli-script api calls into Json data.
During the Gson/Json serializing of the Sikuli data structures, the serializing
hits self referencing elements and blows out the stack while looping. This
occurs on all versions of Gson from 1.6 through 2.4.4. I have hopes that
this may not occur in SikuliX 1.10.

If you think my run of sikulixapi-1.1.0-Beta4.jar failed due to something not
stable in the beta version, I understand and will try again in a day or two.

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

I just finished an upload to nightly (http://nightly.sikuli.de)

just download setup from there, run it and get a sikulixapi…jar.
replace VisinProxy in libs folder and try.

Revision history for this message
David Inman (dave-inman) said :
#6

I downloaded the nightly build, ran sikulixsetup-1.1.0-Beta4.jar. This did not complete
with success, but did get enough accomplished that I can run the resulting IDE.
I found that the API does not like my VisionProxy.so which was built under 1.0rc3.
Running a sikuli script test yields:
  Exception in thread "Thread-5" java.lang.NoClassDefFoundError: org/sikuli/natives/VisionProxyJNI

I'll see if I can figure out how to update the VisionProxy.so - remember I have to make it
reference my local versions of opencv and such in non-standard places.

Thanks for the work on the nightly build. It got me 'un-stuck'.