Comment 0 for bug 1182870

Revision history for this message
obiwan-92 (obiwan-92) wrote : Problem to launch script in command line for Win32

Hi,

I try to launch a Sikuli Script with the command line.
It doesn't work.

I use the 1.0.0 version of Sikuli with Java 1.6 and I try to launch my script with "sikuli-script.cmd".
My command in Windows CMD is >> "%SIKULI_HOME%sikuli-script.cmd" -r d:\Sikuli\script_test.sikuli

The error returned is :
-Xms64M -Xmx512M -Dfile.encoding=UTF-8
-r d:\Sikuli\Skl_PCC_Wrapper.sikuli
+++ using as SIKULIX_HOME: C:\Program Files\Sikuli\
+++ this Sikuli version is 32-Bit
java version "1.6.0_13"
Java(TM) SE Runtime Environment (build 1.6.0_13-b03)
Java HotSpot(TM) Client VM (build 11.3-b02, mixed mode, sharing)
+++ trying to start Sikuli Script
Exception in thread "main" java.lang.NoClassDefFoundError: org/sikuli/script/SikuliScript
Caused by: java.lang.ClassNotFoundException: org.sikuli.script.SikuliScript
        at java.net.URLClassLoader$1.run(Unknown Source)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(Unknown Source)
        at java.lang.ClassLoader.loadClass(Unknown Source)
        at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
        at java.lang.ClassLoader.loadClass(Unknown Source)
        at java.lang.ClassLoader.loadClassInternal(Unknown Source)
Could not find the main class: org.sikuli.script.SikuliScript . Program will exit.

The command <<"%SIKULI_HOME%sikuli-script.cmd" -i>> doesn't work either with the same error return.
Maybe I have made ​​a mistake
Regards.