← Back to team overview

sikuli-driver team mailing list archive

[Bug 1182870] [NEW] Problem to launch script in command line for Win32

 

Public bug reported:

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.

** Affects: sikuli
     Importance: Undecided
         Status: New

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

Title:
  Problem to launch script in command line for Win32

Status in Sikuli:
  New

Bug description:
  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.

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


Follow ups

References