sikulixsetup-1.1.jar throws an error during install on OS X 10.9.2 --- workaround

Asked by Jeremiah Jacquet

------ workaround -------
- use the latest sikulixsetup-1.1.jar (build 2014-05-18)

BUT BE AWARE: currently Java 7 is needed
… working on that Java 6 is sufficient.

After installing Java 7 SE: on command line you have to enter:
export JAVA_HOME=/Library/Internet\ Plug-Ins/JavaAppletPlugin.plugin/Contents/Home
runsikulix

After installing Java 7 JDK this should work:
runsikulix -j 7

-----------------------------------------------------------------------
I downloaded the newer sikulixsetup-1.1.jar and during install choosing i believe its option 3 for Java, i get the following error:

[debug (5/7/14 8:44:01 PM)] Screen: *** end monitor configuration ***
[debug (5/7/14 8:44:01 PM)] ResourceLoader: export: Trying to access package for exporting: Lib/sikuli
to: /Users/thejacquet3/Sikuli
[debug (5/7/14 8:44:01 PM)] ResourceLoader: export: from: file:/Users/thejacquet3/Sikuli/sikulixsetup-1.1.jar
[debug (5/7/14 8:44:01 PM)] ResourceLoader: export: Found 8 Files in Lib/sikuli
[error (5/7/14 8:44:01 PM)] ResourceLoader: loadLib: Fatal Error 110: loading: libVisionProxy.dylib
[error (5/7/14 8:44:01 PM)] ResourceLoader: loadLib: Since native library was found, it might be a problem with needed dependent libraries
/Users/thejacquet3/Sikuli/libs/libVisionProxy.dylib: dlopen(/Users/thejacquet3/Sikuli/libs/libVisionProxy.dylib, 1): Library not loaded: /usr/local/lib/libjpeg.8.dylib
  Referenced from: /Users/thejacquet3/Sikuli/libs/libopencv_java248.dylib
  Reason: image not found
[error (5/7/14 8:44:01 PM)] RunSetup: Problem with SikuliX libs folder - see error log
[error (5/7/14 8:44:04 PM)] Terminating SikuliX after a fatal error(110)! Sorry, but it makes no sense to continue!
If you do not have any idea about the error cause or solution, run again
with a Debug level of 3. You might paste the output to the Q&A board.
[debug (5/7/14 8:44:04 PM)] SikuliX: cleanUp: 0

This is also not allowing my sikuli to run in eclipse :
java.io.IOException: Unable to find library META-INF/lib/libMacUtil.dylib on classpath

Question information

Language:
English Edit question
Status:
Solved
For:
SikuliX Edit question
Assignee:
RaiMan Edit question
Solved by:
Jeremiah Jacquet
Solved:
Last query:
Last reply:
Revision history for this message
tombrus (tombrus) said :
#1

Bumped into the same problem.

Found a workaround:
 - the failed install left the file behind in <setupdir>libs/libjpeg.8.dylib
 - copy that one to /usr/local/lib (with sudo)

A bit crude but it worked for me.

Obviously the logic is looking in the wrong place for the dylib, I did not look into the details, probably RaiMan will know...

-Tom

Revision history for this message
tombrus (tombrus) said :
#2

Addition to previous workaround:

  Setup now asked me to install X11. Cancel stopped setup. After installing X11 setup ended without errors.

-Tom

Revision history for this message
Jeremiah Jacquet (jeremiahjacquet) said :
#3

the latest version fixes the problem after installing the latest version of java. Be sure that your machine actually see the latest install by checking java -version in your terminal. I thought I install version 7 of java and after checking it was not reflecting the latest.

Try this:

 - Download from Oracle: http://java.com/en/download/mac_download.jsp?locale=en

 - Command-Space to open Spotlight, type 'System Preferences', hit enter.

 - Click Java icon in bottom row. After the Java Control Panel opens, click 'Java' tab, 'View...', and verify that your install worked. You can see a 'Path' there.

 - Verify that the version is as you expect (sub in your path as needed):
/Library/Internet\ Plug-Ins/JavaAppletPlugin.plugin/Contents/Home/bin/java -version

 - Create link from /usr/bin/java to your new install

 - sudo ln -fs /Library/Internet\ Plug-Ins/JavaAppletPlugin.plugin/Contents/Home/bin/java /usr/bin/java

 - Sanity check your version: java -version