X 1.0rc1 sikuli-script.jar not working on Linux Ubuntu 10.04 64bit
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
SikuliX |
Fix Released
|
Undecided
|
Unassigned |
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.
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.
at edu.mit.
at edu.mit.
at edu.mit.
at SikX_Test101.
Caused by: java.lang.
at com.wapmx.
at com.wapmx.
at com.wapmx.
at edu.mit.
... 4 more
-------
Java code being executed
-------
import edu.mit.
public class SikX_Test101 {
public static void main(String[] args) {
Screen s = new Screen();
try {
s.find(
} catch (FindFailed e) {
e.printStack
}
}
}
-------
Software & Libraries that are installed on Ubuntu 10.04 64Bit
-------
- Sikuli-
- OpenCV 2.1 on Ubuntu 10.04 (http://
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)
description: | updated |
summary: |
Java NullPointerException when using Sikuli-X-1.0-RC1's 'sikuli- - script.jar' with Java program on Linux Ubuntu 10.04 64bit? + script.jar' with Java program on Linux Ubuntu 10.04 64bit |
tags: |
added: jvm1.6 removed: 1.6 jvm |
tags: |
added: ubuntu10.04 removed: 10.04 ubuntu |
summary: |
- Java NullPointerException when using Sikuli-X-1.0-RC1's 'sikuli- - script.jar' with Java program on Linux Ubuntu 10.04 64bit + X 1.0rc1 sikuli-script.jar not working on Linux Ubuntu 10.04 64bit |
Changed in sikuli: | |
status: | New → Incomplete |
status: | Incomplete → Fix Released |
When using sikuli-script.jar standalone, at initialization, they now copy dyn-lib's to the java.io.tmpdir (system-property). The error occurs exactly at this point.
I just looked at the code and into the Sikuli X linux 64 zip: script. jar/META- INF/lib you only find .so files. Could be the source of the error.
They are looking for .jnilib or .dylib, but in sikuli.
Try to use an un-jar-ed version of sikuli-script.jar and rename the .so to .dylib (which I think is acceptable on Linux )
It definitely has nothing to do with java.