← Back to team overview

sikuli-driver team mailing list archive

[Bug 694771] Re: X 1.0rc1 sikuli-script.jar not working on Linux Ubuntu 10.04 64bit

 

** Changed in: sikuli
       Status: New => Incomplete

** Changed in: sikuli
       Status: Incomplete => Fix Released

-- 
You received this bug notification because you are a member of Sikuli
Drivers, which is subscribed to Sikuli.
https://bugs.launchpad.net/bugs/694771

Title:
  X 1.0rc1 sikuli-script.jar not working on Linux Ubuntu 10.04 64bit

Status in Sikuli:
  Fix Released

Bug description:
  I need your help to figure-out if 'sikuli-script.jar' from 'Sikuli X
  1.0 RC1' package is supported for Java programs running on Linux
  64bit?

  What is that I'm attempting?
  Use Sikuli-X script within Java program (JVM 1.6).

  What's the problem?
  The problem I'm facing is the below mentioned Error dump. This error occurs when executing a simple Java program which attempts to call 'Screen.find("image.png")'.

  What's working?
  The good news is "./sikuli-ide.sh" works on my Linux Ubuntu 10.04 64bit. Hence, I can only execute sikuli scripts on my linux desktop from sikuli-ide.

  -------------------------------------------------------------------
  Error dump produced when run the java code with Eclipse-IDE(Helios)
  -------------------------------------------------------------------
  Exception in thread "main" java.lang.ExceptionInInitializerError
   at edu.mit.csail.uid.Region.findNow(Region.java:554)
   at edu.mit.csail.uid.Region.wait(Region.java:257)
   at edu.mit.csail.uid.Region.find(Region.java:215)
   at SikX_Test101.main(SikX_Test101.java:11)
  Caused by: java.lang.NullPointerException
   at com.wapmx.nativeutils.jniloader.DefaultJniExtractor.extractResource(DefaultJniExtractor.java:113)
   at com.wapmx.nativeutils.jniloader.DefaultJniExtractor.extractJni(DefaultJniExtractor.java:98)
   at com.wapmx.nativeutils.jniloader.NativeLoader.loadLibrary(NativeLoader.java:43)
   at edu.mit.csail.uid.Finder.<clinit>(Finder.java:20)
   ... 4 more

  ------------------------
  Java code being executed
  ------------------------
  import edu.mit.csail.uid.*;

  public class SikX_Test101 {

   public static void main(String[] args) {

    Screen s = new Screen();

    try {

     s.find("imgs/test.png");

    } catch (FindFailed e) {
     e.printStackTrace();
    }
   }
  }

  -------------------------------------------------------------
  Software & Libraries that are installed on Ubuntu 10.04 64Bit
  -------------------------------------------------------------
  - Sikuli-X-1.0rc1-linux-x86_64.zip (For 64bit Linux)
  - OpenCV 2.1 on Ubuntu 10.04 (http://tutorial.downloadatoz.com/how-to-install-opencv-2-1-on-ubuntu-10-04.html), which includes the following libraries on my Ubuntu:
   build-essential
   libgtk2.0-dev
   libavcodec-dev
   libavformat-dev
   libjpeg62-dev
   libtiff4-dev
   cmake
   libswscale-dev
   libjasper-dev

  ------------------
  System Information
  ------------------
  Platform: Ubuntu 10.04 64Bit
  Processor: AMD Sempron 2800+
  Java version:
  java version "1.6.0_22"
  Java(TM) SE Runtime Environment (build 1.6.0_22-b04)
  Java HotSpot(TM) 64-Bit Server VM (build 17.1-b03, mixed mode)

To manage notifications about this bug go to:
https://bugs.launchpad.net/sikuli/+bug/694771/+subscriptions