← Back to team overview

sikuli-driver team mailing list archive

[Bug 1398576] Re: NoClassDefFound error when trying to find or wait on 14.10

 

** Changed in: sikuli
       Status: New => Won't Fix

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

Title:
  NoClassDefFound error when trying to find or wait on 14.10

Status in Sikuli:
  Won't Fix

Bug description:
  I've been trying to get 1.1.0 to work on Ubuntu server 14.10.  I've followed all steps in the quickstart to compile both the libvisionproxy and jxgrabkeys and compiled both successfully.  I can launch the IDE, run a script with a print statement, save scripts, capture new images and perform actions without images (click()).  When I try to perform an action with an image, though like a find or wait, I get:
  [debug] Region: find: waiting 3.0 secs for 1417554698482.png to appear in R[0,0 1024x768]@S(0)
  [debug] Image: reused: 1417554698482.png (file:/home/editshare/sikuli-test.sikuli/1417554698482.png)
  [error] script [ sikuli-test ] stopped with error in line 2
  [error] java.lang.NoClassDefFoundError ( java.lang.NoClassDefFoundError: org/sikuli/natives/VisionProxyJNI )

  More info:
  editshare@ubuntusikuli:~$ dpkg -l |grep -E 'libtesseract-dev|opencv-dev|g\+\+|jdk'
  ii  g++                                 4:4.9.1-4ubuntu2                           amd64        GNU C++ compiler
  ii  g++-4.9                             4.9.1-16ubuntu6                            amd64        GNU C++ compiler
  ii  libopencv-dev                       2.4.9+dfsg-1ubuntu4                        amd64        development files for opencv
  ii  libtesseract-dev                    3.03.03-1                                  amd64        Development files for the tesseract command line OCR tool
  ii  openjdk-7-jdk:amd64                 7u71-2.5.3-0ubuntu1                        amd64        OpenJDK Development Kit (JDK)
  ii  openjdk-7-jre:amd64                 7u71-2.5.3-0ubuntu1                        amd64        OpenJDK Java runtime, using Hotspot JIT
  ii  openjdk-7-jre-headless:amd64        7u71-2.5.3-0ubuntu1                        amd64        OpenJDK Java runtime, using Hotspot JIT (headless)

  editshare@ubuntusikuli:~$ locate libopencv_core.so libtesseract.so 
  /usr/lib/libtesseract.so
  /usr/lib/libtesseract.so.3
  /usr/lib/libtesseract.so.3.0.3
  /usr/lib/x86_64-linux-gnu/libopencv_core.so
  /usr/lib/x86_64-linux-gnu/libopencv_core.so.2.4
  /usr/lib/x86_64-linux-gnu/libopencv_core.so.2.4.9

  editshare@ubuntusikuli:~/sikuli$ java -jar sikulixsetup-1.1.0.jar 
  Dec 02, 2014 3:52:56 PM java.util.prefs.FileSystemPreferences$1 run
  INFO: Created user preferences directory.
  [debug] ... starting with no args given
  ***** System Information Dump *****
  *** SystemInfo
  1.1.0(2014-11-24_01:00nightly)/Linux3.16.0-23-generic/Java7(amd64)1.7.0_65-b32
  -- listing properties --
  java.runtime.name=OpenJDK Runtime Environment
  sun.boot.library.path=/usr/lib/jvm/java-7-openjdk-amd64/jre...
  java.vm.version=24.65-b04
  java.vm.vendor=Oracle Corporation
  java.vendor.url=http://java.oracle.com/
  path.separator=:
  java.vm.name=OpenJDK 64-Bit Server VM
  file.encoding.pkg=sun.io
  user.country=US
  sun.java.launcher=SUN_STANDARD
  sun.os.patch.level=unknown
  java.vm.specification.name=Java Virtual Machine Specification
  user.dir=/home/editshare/sikuli
  java.runtime.version=1.7.0_65-b32
  java.awt.graphicsenv=sun.awt.X11GraphicsEnvironment
  java.endorsed.dirs=/usr/lib/jvm/java-7-openjdk-amd64/jre...
  os.arch=amd64
  java.io.tmpdir=/tmp
  line.separator=

  java.vm.specification.vendor=Oracle Corporation
  os.name=Linux
  sun.jnu.encoding=UTF-8
  java.library.path=/usr/java/packages/lib/amd64:/usr/lib...
  java.specification.name=Java Platform API Specification
  java.class.version=51.0
  sun.management.compiler=HotSpot 64-Bit Tiered Compilers
  os.version=3.16.0-23-generic
  user.home=/home/editshare
  user.timezone=America/New_York
  java.awt.printerjob=sun.print.PSPrinterJob
  file.encoding=UTF-8
  java.specification.version=1.7
  user.name=editshare
  java.class.path=sikulixsetup-1.1.0.jar
  java.vm.specification.version=1.7
  sun.arch.data.model=64
  java.home=/usr/lib/jvm/java-7-openjdk-amd64/jre
  sun.java.command=sikulixsetup-1.1.0.jar
  java.specification.vendor=Oracle Corporation
  user.language=en
  awt.toolkit=sun.awt.X11.XToolkit
  java.vm.info=mixed mode
  java.version=1.7.0_65
  java.ext.dirs=/usr/lib/jvm/java-7-openjdk-amd64/jre...
  sun.boot.class.path=/usr/lib/jvm/java-7-openjdk-amd64/jre...
  java.vendor=Oracle Corporation
  file.separator=/
  java.vendor.url.bug=http://bugreport.sun.com/bugreport/
  sun.cpu.endian=little
  sun.io.unicode.encoding=UnicodeLittle
  sun.cpu.isalist=
  *** System Environment
  TERM = xterm
  SHLVL = 2
  LESSCLOSE = /usr/bin/lesspipe %s %s
  COLORTERM = gnome-terminal
  MAIL = /var/mail/editshare
  PWD = /home/editshare/sikuli
  LOGNAME = editshare
  WINDOWID = 16777219
  _ = /usr/bin/java
  TERMINATOR_UUID = urn:uuid:a21b340b-9152-4a50-a8e7-a12fdf4562a0
  OLDPWD = /home/editshare
  HUSHLOGIN = FALSE
  SHELL = /bin/bash
  PATH = /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games
  DISPLAY = :0
  USER = editshare
  HOME = /home/editshare
  XAUTHORITY = /home/editshare/.Xauthority
  LESSOPEN = | /usr/bin/lesspipe %s
  XDG_SEAT = seat0
  WINDOWPATH = 7
  XDG_SESSION_ID = c1
  LS_COLORS = rs=0:di=01;34:ln=01;36:mh=00:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:su=37;41:sg=30;43:ca=30;41:tw=30;42:ow=34;42:st=37;44:ex=01;32:*.tar=01;31:*.tgz=01;31:*.arc=01;31:*.arj=01;31:*.taz=01;31:*.lha=01;31:*.lz4=01;31:*.lzh=01;31:*.lzma=01;31:*.tlz=01;31:*.txz=01;31:*.tzo=01;31:*.t7z=01;31:*.zip=01;31:*.z=01;31:*.Z=01;31:*.dz=01;31:*.gz=01;31:*.lrz=01;31:*.lz=01;31:*.lzo=01;31:*.xz=01;31:*.bz2=01;31:*.bz=01;31:*.tbz=01;31:*.tbz2=01;31:*.tz=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.war=01;31:*.ear=01;31:*.sar=01;31:*.rar=01;31:*.alz=01;31:*.ace=01;31:*.zoo=01;31:*.cpio=01;31:*.7z=01;31:*.rz=01;31:*.cab=01;31:*.jpg=01;35:*.jpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.svg=01;35:*.svgz=01;35:*.mng=01;35:*.pcx=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.m2v=01;35:*.mkv=01;35:*.webm=01;35:*.ogm=01;35:*.mp4=01;35:*.m4v=01;35:*.mp4v=01;35:*.vob=01;35:*.qt=01;35:*.nuv=01;35:*.wmv=01;35:*.asf=01;35:*.rm=01;35:*.rmvb=01;35:*.flc=01;35:*.avi=01;35:*.fli=01;35:*.flv=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*.yuv=01;35:*.cgm=01;35:*.emf=01;35:*.axv=01;35:*.anx=01;35:*.ogv=01;35:*.ogx=01;35:*.aac=00;36:*.au=00;36:*.flac=00;36:*.m4a=00;36:*.mid=00;36:*.midi=00;36:*.mka=00;36:*.mp3=00;36:*.mpc=00;36:*.ogg=00;36:*.ra=00;36:*.wav=00;36:*.axa=00;36:*.oga=00;36:*.spx=00;36:*.xspf=00;36:
  XDG_VTNR = 1
  ORBIT_SOCKETDIR = /tmp/orbit-editshare
  XDG_RUNTIME_DIR = /run/user/1000
  LANG = en_US.UTF-8
  *** Java Class Path
  0: file:/home/editshare/sikuli/sikulixsetup-1.1.0.jar
  ***** System Information Dump ***** end *****
  [debug] Setup in: /home/editshare/sikuli
  using: /home/editshare/sikuli/sikulixsetup-1.1.0.jar
  [debug] SikuliX Setup Build: 1.1.0 2014-11-24_01:00nightly
  [debug] 
  popInfo: --------------------
  Please read carefully before proceeding!!
  --------------------
  [debug] RunningSystem: Linux 3.16.0-23-generic
  [debug] parent of jar/classes: /home/editshare/sikuli
  [debug] RunningJava: Java 7 (amd64) 1.7.0_65-b32
  [debug] 
  popAsk: --------------------
  The following file(s) will be downloaded to
  /home/editshare/sikuli
  --- Native support libraries for Linux (sikulixlibs...)
  --- Package 1 ---
  1.1.0-1.jar (IDE/Scripting)
   - with Jython
  Only click NO, if you want to terminate setup now!
  Click YES even if you want to use local copies in Downloads!
  --------------------
  [debug] Download ended
  [debug] Downloads for selected options:
  1.1.0-1.jar jython-standalone-2.7-b2.jar 
  [debug] Download page: http://nightly.sikuli.de/
  [debug] 
  popAsk: --------------------
  If you want/need to build
  or have already built your own libVisionProxy.so,
  Then Click YES
  Click NO to pack the bundled libs to the jars.
  --------------------
  [debug] adding needed stuff to sikulix.jar
  [debug] renaming temp file to target jar:
  /home/editshare/sikuli/sikulix.jar
  [debug] exporting commandfiles
  [debug] Jython: Trying to run functional test: running script statements via SikuliScript

  
  editshare@ubuntusikuli:~/sikuli$ cp jxgrabkey-0.3.2/JXGrabKey/C++/dist/Release/GNU-Linux-x86/libJXGrabKey.so libs/
  editshare@ubuntusikuli:~/sikuli$ cp Sikuli-1.0.1-Supplemental-LinuxVisionProxy/dist/libVisionProxy.so libs/

  editshare@ubuntusikuli:~/sikuli$ ./runsikulix -d 3
  running SikuliX: -Xmx512M -Dfile.encoding=UTF-8 -Dsikuli.FromCommandLine
  -jar ./sikulix.jar -d 3
  [debug] locale: en_US
  [debug] Running on Java 7 (1.7.0_65-b32)
  [debug] --- Sikuli parameters ---
  [debug] 1: -d
  [debug] 2: 3
  [debug] ScriptRunner: initScriptingSupport: enter
  [debug] JythonScriptRunner: init: setting java environment python.path: 
  /home/editshare/sikuli/sikulix.jar/Lib
  [debug] ScriptRunner: initScriptingSupport: added: jython
  [debug] ScriptRunner: initScriptingSupport: exit with defaultrunner: jython (py)
  [debug] ResourceLoader: SikuliX Package Build: 1.1.0 2014-11-24_01:00nightly
  [debug] ResourceLoader: check: we are running on arch: amd64
  [debug] ResourceLoader: check: using Java at: /usr/lib/jvm/java-7-openjdk-amd64/jre/
  [debug] ResourceLoader: check: Exists libs folder at location of jar? YES: /home/editshare/sikuli/
  [debug] ResourceLoader: checkLibsDir: trying: /home/editshare/sikuli/libs
  [debug] ResourceLoader: loadLib: Now loaded: VisionProxy from: 
  /home/editshare/sikuli/libs/libVisionProxy.so
  [debug] ResourceLoader: checkLibsDir: Using libs at: /home/editshare/sikuli/libs
  [debug] Screen: initScreens: ScreenDevice 0 contains (0,0) --- will be used as primary
  [debug] Screen: initScreens: basic initialization (1 Screen(s) found)
  [debug] Screen: *** monitor configuration (primary: 0) ***
  [debug] Screen: 0: S(0)[0,0 1024x768]
  [debug] Screen: *** end monitor configuration ***
  [debug] Mouse: init
  [debug] KeyBoard: init
  [debug] IDE: Adding components to window
  [debug] [I18N] menuRecent
  [debug] IDE: creating tabbed editor
  [debug] IDE: creating message area
  [debug] EditorConsolePane: starting redirection to message area
  [debug] EditorConsolePane: redirection for jython
  [debug] EditorConsolePane: redirection success for jython
  [debug] IDE: creating combined work window
  [debug] IDE: Putting all together
  [debug] ResourceLoader: loadLib: Now loaded: JXGrabKey from: 
  /home/editshare/sikuli/libs/libJXGrabKey.so
  [info] HotkeyManager: add Capture Hotkey: CTRL+SHIFT 2 (50, 3)
  [info] HotkeyManager: add Abort Hotkey: ALT+SHIFT C (67, 9)
  [debug] IDE: doNew: create new tab at: -1
  [debug] EditorPane: EditorPane: creating new pane (constructor)
  [debug] FileManager: tempdir create:
  /tmp/Sikulix/tmp-1595929705.sikuli
  [debug] ImagePath: new BundlePath: /tmp/Sikulix/tmp-1595929705.sikuli
  [debug] EditorPane: initBeforeLoad: null
  [debug] EditorPane: updateDocumentListeners from: initBeforeLoad
  [debug] EditorPane: InitTab: (text/python)
  [debug] Sikuli-IDE startup: 2488
  [debug] MenuAction.doSaveAs
  [debug] IDE: doSaveAs requested: tmp-1595929705.sikuli
  [debug] EditorPane: saveAsBundle: /tmp/Sikulix/tmp-1595929705.sikuli/
  [debug] ScriptRunner: transferScript: /tmp/Sikulix/tmp-1595929705.sikuli/
  to: /home/editshare/sikuli-test.sikuli/
  [debug] ScriptRunner: transferScript: completed
  [debug] Image: purge: ImagePath: /tmp/Sikulix/tmp-1595929705.sikuli
  [debug] FileManager: deleteFileOrFolder: /tmp/Sikulix/tmp-1595929705.sikuli/
  [debug] ImagePath: new BundlePath: /home/editshare/sikuli-test.sikuli
  [debug] EditorPane: writeSrcFile: sikuli-test.py
  [debug] JythonScriptRunner: Convert Sikuli source code /home/editshare/sikuli-test.sikuli/ to HTML
  [debug] EditorPane: cleanBundle
  [debug] EditorPane: parseforImages: in 
  /home/editshare/sikuli-test.sikuli
  [debug] SikuliEditorKit.read
  [debug] EditorPane: updateDocumentListeners from: reparse
  [debug] Jython: sikuli: Sikuli: starting init
  [debug] Jython: requested to use as default region: R[0,0 1024x768]@S(0)
  [debug] Jython: sikuli: Sikuli: ending init
  [debug] Running Jython: 2.7b2 (default:a5bc0032cf79+, Apr 22 2014, 21:20:17) 
  [debug] Jython: requested to use as default region: R[0,0 1024x768]@S(0)
  [debug] JythonScriptRunner: runPython: running script from IDE: 
  /home/editshare/sikuli-test.sikuli
  [debug] Sikulix: cleanUp: 0
  [debug] Image: loaded: 1417553802109.png (file:/home/editshare/sikuli-test.sikuli/1417553802109.png)
  [debug] Image: cached: 1417553802109.png (30 KB) (# 1 KB 30 -- 0 % of 64 MB)
  [debug] EditorPane: writeSrcFile: sikuli-test.py
  [debug] JythonScriptRunner: Convert Sikuli source code /home/editshare/sikuli-test.sikuli/ to HTML
  [debug] EditorPane: cleanBundle
  [debug] EditorPane: parseforImages: in 
  /home/editshare/sikuli-test.sikuli
  [debug] Running Jython: 2.7b2 (default:a5bc0032cf79+, Apr 22 2014, 21:20:17) 
  [debug] Jython: requested to use as default region: R[0,0 1024x768]@S(0)
  [debug] JythonScriptRunner: runPython: running script from IDE: 
  /home/editshare/sikuli-test.sikuli
  [debug] Image: reused: 1417553802109.png (file:/home/editshare/sikuli-test.sikuli/1417553802109.png)
  [error] script [ sikuli-test ] stopped with error in line 2
  [error] java.lang.NoClassDefFoundError ( java.lang.NoClassDefFoundError: org/sikuli/natives/VisionProxyJNI )
  [debug] Sikulix: cleanUp: 0

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


References