I changed the bat to
@echo off
-Dpython.path="c:\sikuli-script.jar/"
set JAVA_EXE="java"
if defined PROGRAMFILES(X86) set JAVA_EXE="%PROGRAMFILES(X86)%\Java\jre6\bin\java.exe"
%JAVA_EXE% -Xms64M -Xmx512M -Dfile.encoding=UTF-8 -Dpython.path="%~d0%~p0sikuli-script.jar/" -jar "%~d0%~p0sikuli-ide.jar" %*
as per your instructions
@echo off
-Dpython.path="c:\sikuli-script.jar/"
PATH=%PATH%;%~d0%~p0libs
set JAVA_EXE="java"
if defined PROGRAMFILES(X86) set JAVA_EXE="%PROGRAMFILES(X86)%\Java\jre6\bin\java.exe"
%JAVA_EXE% -Xms64M -Xmx512M -Dfile.encoding=UTF-8 -Dpython.path="%~d0%~p0sikuli-script.jar/" -jar "%~d0%~p0sikuli-ide.jar" %*
Fails as well in that errors are returned when launching from the bat, errors are returned when launching sikuli
'-Dpython.path' is not recognized as an internal or external command,
operable program or batch file.
[info] locale: en_US
[debug] init user preferences
Redirect stdout/stderr to console.
[debug] close all ScreenHighlighter
[info] Stopped
[info] An error occurs at line 1
[info] Error message:
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "C:\Program Files\Sikuli X\sikuli-script.jar\Lib\sikuli\Sikuli.py", line 23, in <module>
java.lang.NoClassDefFoundError: Could not initialize class org.sikuli.script.App
The following is expected
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Unknown Source)
at org.python.core.SyspathJavaLoader.loadClass(SyspathJavaLoader.java:107)
at java.lang.ClassLoader.loadClass(Unknown Source)
at org.python.core.Py.findClassEx(Py.java:817)
at org.python.core.packagecache.SysPackageManager.findClass(SysPackageManager.java:133)
at org.python.core.packagecache.PackageManager.findClass(PackageManager.java:28)
at org.python.core.packagecache.SysPackageManager.findClass(SysPackageManager.java:122)
at org.python.core.PyJavaPackage.__findattr_ex__(PyJavaPackage.java:137)
at org.python.core.PyObject.__findattr__(PyObject.java:869)
at org.python.core.imp.import_name(imp.java:771)
at org.python.core.imp.importName(imp.java:806)
at org.python.core.ImportFunction.__call__(__builtin__.java:1232)
at org.python.core.PyObject.__call__(PyObject.java:367)
at org.python.core.__builtin__.__import__(__builtin__.java:1202)
at org.python.core.imp.importFromAs(imp.java:884)
at org.python.core.imp.importFrom(imp.java:860)
at sikuli.Sikuli$py.f$0(C:\Program Files\Sikuli X\sikuli-script.jar\Lib\sikuli\Sikuli.py:183)
at sikuli.Sikuli$py.call_function(C:\Program Files\Sikuli X\sikuli-script.jar\Lib\sikuli\Sikuli.py)
at org.python.core.PyTableCode.call(PyTableCode.java:165)
at org.python.core.PyCode.call(PyCode.java:18)
at org.python.core.imp.createFromCode(imp.java:326)
at org.python.core.util.importer.importer_load_module(importer.java:109)
at org.python.modules.zipimport.zipimporter.zipimporter_load_module(zipimporter.java:161)
at org.python.modules.zipimport.zipimporter$zipimporter_load_module_exposer.__call__(Unknown Source)
at org.python.core.PyBuiltinMethodNarrow.__call__(PyBuiltinMethodNarrow.java:47)
at org.python.core.imp.loadFromLoader(imp.java:451)
at org.python.core.imp.find_module(imp.java:408)
at org.python.core.PyModule.impAttr(PyModule.java:109)
at org.python.core.imp.import_next(imp.java:637)
at org.python.core.imp.import_logic(imp.java:699)
at org.python.core.imp.import_name(imp.java:761)
at org.python.core.imp.importName(imp.java:806)
at org.python.core.ImportFunction.__call__(__builtin__.java:1232)
at org.python.core.PyObject.__call__(PyObject.java:367)
at org.python.core.__builtin__.__import__(__builtin__.java:1202)
at org.python.core.__builtin__.__import__(__builtin__.java:1185)
at org.python.core.imp.importAll(imp.java:904)
at org.python.pycode._pyx5.f$0(<string>:1)
at org.python.pycode._pyx5.call_function(<string>)
at org.python.core.PyTableCode.call(PyTableCode.java:165)
at org.python.core.PyCode.call(PyCode.java:18)
at org.python.core.Py.runCode(Py.java:1204)
at org.python.core.Py.exec(Py.java:1248)
at org.python.util.PythonInterpreter.exec(PythonInterpreter.java:172)
at org.sikuli.script.ScriptRunner.runPython(ScriptRunner.java:52)
at org.sikuli.ide.SikuliIDE$ButtonRunViz.runPython(SikuliIDE.java:1233)
at org.sikuli.ide.SikuliIDE$ButtonRun$1.run(SikuliIDE.java:1367)
java.lang.NoClassDefFoundError: java.lang.NoClassDefFoundError: Could not initialize class org.sikuli.script.App
The workarouind is not a workaround. This is a significant failure that blocks use of SIKULI X for any testing. I am reverting to the previous version. Warnings should be posted, the inability to use any python libraries prevents any useful application of Sikuli.
I'm willing to help with creating test plans and executing/writing of test cases
Fails,
I changed the bat to path="c: \sikuli- script. jar/" "%PROGRAMFILES( X86)%\Java\ jre6\bin\ java.exe" encoding= UTF-8 -Dpython. path="% ~d0%~p0sikuli- script. jar/" -jar "%~d0%~ p0sikuli- ide.jar" %*
@echo off
-Dpython.
set JAVA_EXE="java"
if defined PROGRAMFILES(X86) set JAVA_EXE=
%JAVA_EXE% -Xms64M -Xmx512M -Dfile.
as per your instructions
@echo off path="c: \sikuli- script. jar/" ;%~d0%~ p0libs "%PROGRAMFILES( X86)%\Java\ jre6\bin\ java.exe" encoding= UTF-8 -Dpython. path="% ~d0%~p0sikuli- script. jar/" -jar "%~d0%~ p0sikuli- ide.jar" %*
-Dpython.
PATH=%PATH%
set JAVA_EXE="java"
if defined PROGRAMFILES(X86) set JAVA_EXE=
%JAVA_EXE% -Xms64M -Xmx512M -Dfile.
Fails as well in that errors are returned when launching from the bat, errors are returned when launching sikuli
'-Dpython.path' is not recognized as an internal or external command,
operable program or batch file.
[info] locale: en_US
[debug] init user preferences
Redirect stdout/stderr to console.
[debug] close all ScreenHighlighter script. jar\Lib\ sikuli\ Sikuli. py", line 23, in <module> NoClassDefFound Error: Could not initialize class org.sikuli. script. App
[info] Stopped
[info] An error occurs at line 1
[info] Error message:
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "C:\Program Files\Sikuli X\sikuli-
java.lang.
The following is expected
at java.lang. Class.forName0( Native Method)
at java.lang. Class.forName( Unknown Source)
at org.python. core.SyspathJav aLoader. loadClass( SyspathJavaLoad er.java: 107)
at java.lang. ClassLoader. loadClass( Unknown Source)
at org.python. core.Py. findClassEx( Py.java: 817)
at org.python. core.packagecac he.SysPackageMa nager.findClass (SysPackageMana ger.java: 133)
at org.python. core.packagecac he.PackageManag er.findClass( PackageManager. java:28)
at org.python. core.packagecac he.SysPackageMa nager.findClass (SysPackageMana ger.java: 122)
at org.python. core.PyJavaPack age.__findattr_ ex__(PyJavaPack age.java: 137)
at org.python. core.PyObject. __findattr_ _(PyObject. java:869)
at org.python. core.imp. import_ name(imp. java:771)
at org.python. core.imp. importName( imp.java: 806)
at org.python. core.ImportFunc tion.__ call__( __builtin_ _.java: 1232)
at org.python. core.PyObject. __call_ _(PyObject. java:367)
at org.python. core.__ builtin_ _.__import_ _(__builtin_ _.java: 1202)
at org.python. core.imp. importFromAs( imp.java: 884)
at org.python. core.imp. importFrom( imp.java: 860)
at sikuli. Sikuli$ py.f$0( C:\Program Files\Sikuli X\sikuli- script. jar\Lib\ sikuli\ Sikuli. py:183)
at sikuli. Sikuli$ py.call_ function( C:\Program Files\Sikuli X\sikuli- script. jar\Lib\ sikuli\ Sikuli. py)
at org.python. core.PyTableCod e.call( PyTableCode. java:165)
at org.python. core.PyCode. call(PyCode. java:18)
at org.python. core.imp. createFromCode( imp.java: 326)
at org.python. core.util. importer. importer_ load_module( importer. java:109)
at org.python. modules. zipimport. zipimporter. zipimporter_ load_module( zipimporter. java:161)
at org.python. modules. zipimport. zipimporter$ zipimporter_ load_module_ exposer. __call_ _(Unknown Source)
at org.python. core.PyBuiltinM ethodNarrow. __call_ _(PyBuiltinMeth odNarrow. java:47)
at org.python. core.imp. loadFromLoader( imp.java: 451)
at org.python. core.imp. find_module( imp.java: 408)
at org.python. core.PyModule. impAttr( PyModule. java:109)
at org.python. core.imp. import_ next(imp. java:637)
at org.python. core.imp. import_ logic(imp. java:699)
at org.python. core.imp. import_ name(imp. java:761)
at org.python. core.imp. importName( imp.java: 806)
at org.python. core.ImportFunc tion.__ call__( __builtin_ _.java: 1232)
at org.python. core.PyObject. __call_ _(PyObject. java:367)
at org.python. core.__ builtin_ _.__import_ _(__builtin_ _.java: 1202)
at org.python. core.__ builtin_ _.__import_ _(__builtin_ _.java: 1185)
at org.python. core.imp. importAll( imp.java: 904)
at org.python. pycode. _pyx5.f$ 0(<string> :1)
at org.python. pycode. _pyx5.call_ function( <string> )
at org.python. core.PyTableCod e.call( PyTableCode. java:165)
at org.python. core.PyCode. call(PyCode. java:18)
at org.python. core.Py. runCode( Py.java: 1204)
at org.python. core.Py. exec(Py. java:1248)
at org.python. util.PythonInte rpreter. exec(PythonInte rpreter. java:172)
at org.sikuli. script. ScriptRunner. runPython( ScriptRunner. java:52)
at org.sikuli. ide.SikuliIDE$ ButtonRunViz. runPython( SikuliIDE. java:1233)
at org.sikuli. ide.SikuliIDE$ ButtonRun$ 1.run(SikuliIDE .java:1367)
java.lang. NoClassDefFound Error: java.lang. NoClassDefFound Error: Could not initialize class org.sikuli. script. App
The workarouind is not a workaround. This is a significant failure that blocks use of SIKULI X for any testing. I am reverting to the previous version. Warnings should be posted, the inability to use any python libraries prevents any useful application of Sikuli.
I'm willing to help with creating test plans and executing/writing of test cases